[U-Boot] [PATCH v2 4/4] DaVinci DA8xx: fix set_cpu_clk_info()

2012-07-31 Thread Laurence Withers
easier to understand the flow of the two separate functions. Signed-off-by: Laurence Withers Cc: Tom Rini Cc: Hadli, Manjunath Cc: Heiko Schocher --- Changes in v2: - Re-ordered patch series to tidy up clock IDs before tidying up users (set_cpu_clk_info()). --- arch/arm/cpu/arm926ejs/davinci/cp

[U-Boot] [PATCH v2 3/4] DaVinci DA8xx: replace magic number for DDR speed

2012-07-31 Thread Laurence Withers
Replace a magic number for the DDR2/mDDR PHY clock ID with a proper definition. In addition, don't request this clock ID on DA830 hardware, which does not have a DDR2/mDDR PHY (or associated PLL controller). Signed-off-by: Laurence Withers Cc: Tom Rini Cc: Prabhakar Lad --- Changes

[U-Boot] [PATCH v2 1/4] DaVinci DA8xx: tidy up clock ID definition

2012-07-31 Thread Laurence Withers
Tidy up the clock IDs defined for the DA8xx SOCs. With this new structure in place, it is clear how to define new clock IDs, and how these map to the numbers presented in the technical reference manual. Signed-off-by: Laurence Withers Cc: Tom Rini Cc: Prabhakar Lad --- Changes in v2: - Re

[U-Boot] [PATCH v2 2/4] DaVinci DA850: UART2 clock ID comes from ASYNC3

2012-07-31 Thread Laurence Withers
On the DA830, UART2's clock is derived from PLL controller 0 output 2. On the DA850, it is in the ASYNC3 group, and may be switched between PLL controller 0 or 1. Fix the definition of the ID to match. Signed-off-by: Laurence Withers Cc: Tom Rini Cc: Prabhakar Lad --- Changes in v2:

[U-Boot] [PATCH v2 0/4] DaVinci DA8xx: tidy up clock IDs

2012-07-31 Thread Laurence Withers
llows three bugs to be identified and resolved: - on the DA850, UART2's clock may come from ASYNC3, unlike the DA830; - the DA830 doesn't have a DDR2/mDDR PHY, or a PLL controller for it; - the DSP speed reported by bdinfo was not being initialised on the DA8xx family. Laur

Re: [U-Boot] [PATCH 3/3] DaVinci DA8xx: replace magic number for DDR speed

2012-07-30 Thread Laurence Withers
On Mon, Jul 30, 2012 at 04:30:15PM +, Laurence Withers wrote: > Replace a magic number for the DDR2/mDDR PHY clock ID with a proper > definition. In addition, don't request this clock ID on DA830 hardware, > which does not have a DDR2/mDDR PHY (or associated PLL controller). >

Re: [U-Boot] [PATCH] DaVinci DA8xx: fix set_cpu_clk_info()

2012-07-30 Thread Laurence Withers
s a little and added a constant for the DDR2 clock ID as you suggested. It made sense that this would be a separate set of patches: http://lists.denx.de/pipermail/u-boot/2012-July/129444.html Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197

[U-Boot] [PATCH 2/3] DaVinci DA850: UART2 clock ID comes from ASYNC3

2012-07-30 Thread Laurence Withers
On the DA830, UART2's clock is derived from PLL controller 0 output 2. On the DA850, it is in the ASYNC3 group, and may be switched between PLL controller 0 or 1. Fix the definition of the ID to match. Signed-off-by: Laurence Withers Cc: Prabhakar Lad --- arch/arm/include/asm/arch-da

[U-Boot] [PATCH 3/3] DaVinci DA8xx: replace magic number for DDR speed

2012-07-30 Thread Laurence Withers
Replace a magic number for the DDR2/mDDR PHY clock ID with a proper definition. In addition, don't request this clock ID on DA830 hardware, which does not have a DDR2/mDDR PHY (or associated PLL controller). Signed-off-by: Laurence Withers Cc: Prabhakar Lad --- arch/arm/cpu/arm926ejs/da

[U-Boot] [PATCH 1/3] DaVinci DA8xx: tidy up clock ID definition

2012-07-30 Thread Laurence Withers
Tidy up the clock IDs defined for the DA8xx SOCs. With this new structure in place, it is clear how to define new clock IDs, and how these map to the numbers presented in the technical reference manual. Signed-off-by: Laurence Withers Cc: Prabhakar Lad --- arch/arm/include/asm/arch-davinci

[U-Boot] [PATCH] DaVinci DA8xx: fix set_cpu_clk_info()

2012-07-27 Thread Laurence Withers
easier to understand the flow of the two separate functions. Signed-off-by: Laurence Withers Cc: Tom Rini Cc: Hadli, Manjunath Cc: Heiko Schocher --- arch/arm/cpu/arm926ejs/davinci/cpu.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/arch/arm/cpu

[U-Boot] [PATCH 1/2] GPIO: pca953x: fix spelling in help

2012-07-25 Thread Laurence Withers
Signed-off-by: Laurence Withers --- drivers/gpio/pca953x.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index 359fdee..64c7797 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -287,7 +287,7

[U-Boot] [PATCH 2/2] GPIO: pca953x: fix error reporting

2012-07-25 Thread Laurence Withers
Use the standard CMD_RET_* constants to clearly report errors from the pca953x command. In addition, print error messages when I2C communication fails. Signed-off-by: Laurence Withers --- drivers/gpio/pca953x.c | 49 ++- 1 files changed, 35

Re: [U-Boot] [PATCH 1/3] spl: add ymodem support

2012-03-06 Thread Laurence Withers
ose following along, a program to talk to the boot ROM over the UART and download some code that the boot ROM can burn into SPI flash). What is the advantage in allowing the SPL to flash U-Boot also? Many thanks, and bye for now, -- Laurence Withers, http://www.guralp.com/ Direc

Re: [U-Boot] [WIP, PATCH] initcall: An outline of the idea

2012-03-04 Thread Laurence Withers
On Sun, Mar 04, 2012 at 11:58:27AM +, Laurence Withers wrote: > +#define INIT_FUNC(fn, init_name, deps) \ > +static int ##fn (void); \ ^^ Excuse the macro catenation operator; that shouldn't be there. Hopefully the example made it clear. Bye for now, -

Re: [U-Boot] [WIP, PATCH] initcall: An outline of the idea

2012-03-04 Thread Laurence Withers
nt x) { return x + 1; } #define INIT_FUNC(fn) \ static void fn(int) INIT_FUNC(f1); gcc immediately throws the following error: t2.c:9: error: conflicting types for ‘f1’ t2.c:1: note: previous definition of

Re: [U-Boot] [WIP, PATCH] initcall: An outline of the idea

2012-03-03 Thread Laurence Withers
ot; #init_name "}\n"; > + > +#define REPLACE_INIT(old_func, new_func) \ > + static const char __replace_init_ ## old_func[] __used \ > + __attribute__((__section__(".initfuncs"))) = \ > + "[" #old_func "," #new_func "

Re: [U-Boot] [PATCH v2 2/2] davinci: add support for printing clock frequency

2012-02-17 Thread Laurence Withers
ck pointer */ > print_num("sp start ", gd->start_addr_sp); > print_num("FB base ", gd->fb_base); > + /* > + * TODO: Currently only support for davinci SOC's is added. > + * Remove this check once all the board implement this. &g

Re: [U-Boot] Syncing custodian tree (the new way) - What am I doing wrong?

2011-10-25 Thread Laurence Withers
ou cloned from. I guess a "normal" workflow would be: git checkout git fetch git rebase /master Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer Gene

Re: [U-Boot] [PATCH v2 2/3] davinci: emac: add support for more than 1 PHYs

2011-10-12 Thread Laurence Withers
I note this patch uses some constants introduced by your previous patch that Mike Frysinger has NAKed, so I guess it will require some rework once you have addressed his comments. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643

Re: [U-Boot] [PATCH v7 2/4] gpio: Modify common gpio.h to more closely match Linux

2011-10-12 Thread Laurence Withers
r > Cc: Joe Hershberger > Cc: Kim Phillips Tested-by: Laurence Withers Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM _

Re: [U-Boot] [PATCH v7 1/4] gpio: Move common gpio.h to include/asm-generic

2011-10-12 Thread Laurence Withers
On Tue, Oct 11, 2011 at 10:50:12PM -0500, Joe Hershberger wrote: > Common GPIO API used by cmd_gpio should be available to any arch > > Signed-off-by: Joe Hershberger > Cc: Joe Hershberger > Cc: Kim Phillips Tested-by: Laurence Withers Bye for now, -- Laurence Withers,

Re: [U-Boot] [PATCH v2] NAND: davinci: choose correct 1-bit h/w ECC reg

2011-10-10 Thread Laurence Withers
On Mon, Sep 26, 2011 at 04:02:30PM +, Laurence Withers wrote: > In nand_davinci_readecc(), select the correct NANDFECC register based > on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC. > This allows 1-bit hardware ECC to work with chip select other than CS2. >

Re: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled

2011-10-09 Thread Laurence Withers
working cache functions, so that DA8xx boards (and presumably other DaVinci processors) can run with Ethernet and cache enabled. There have been a few proposals floating around to do this, but I'm not sure whether they've stalled or are continuing quietly along. Bye for now, -- Laurence Withe

Re: [U-Boot] [PATCH v2 0/6] da850: add board specific functions

2011-10-08 Thread Laurence Withers
figs for the EVMs? If the latter, it might be better to change the patch subject. Otherwise it flags these patches as being relevant to anyone using the DA850 processor, which actually isn't the case from a quick read. Bye for now, -- Laurence Withers, http://www.guralp.com/ D

Re: [U-Boot] [PATCH v2 4/6] da850: revert cache disable patch

2011-10-08 Thread Laurence Withers
be better to simply drop this patch from the patch series altogether, leaving the caches explicitly disabled, until such a time as the EMAC driver is fixed (I guess we are mainly waiting to see if anyone wants to tackle cache ops for the ARM926EJS) and the code has been verified with caches enabl

Re: [U-Boot] [PATCH 13/13] Davinci: ea20: use gpio framework to access gpios

2011-10-05 Thread Laurence Withers
On Wed, Oct 05, 2011 at 03:08:24PM +0200, Stefano Babic wrote: > Drop direct access to SOC's registers and use > the function of the GPIO driver for da8xx. Dear Stefano, The da8xx GPIO driver also configures the pinmux for you. Bye for now, -- Laurence Withers,

Re: [U-Boot] [PATCH 02/12] Davinci: ea20: set GPIOs to hold MII-Phy in reset and set UART0-Switch for console

2011-10-05 Thread Laurence Withers
board/davinci/ea20/ea20.c| 30 > +- > 2 files changed, 33 insertions(+), 1 deletions(-) There are generic GPIO functions (asm/gpio.h) for DaVinci; you should probably use those instead of directly programming the registers. Bye for now, -- Laure

Re: [U-Boot] [PATCH] ubifs bad superblock bug

2011-10-04 Thread Laurence Withers
bove. If ubifs_sb is null, then free(ubis_sb->...) will be a null pointer dereference. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM

Re: [U-Boot] [PATCH 2/4] da830: emac: add support for RMII

2011-10-03 Thread Laurence Withers
eem to resolve the situation so it would appear there are some bugs in the TI EMAC driver. I also note it doesn't reset the PHY properly as if I reboot from Linux with the PHY forced to 10BASE-T then U-Boot is no longer able to get the link up. Bye for now, -- Laurence Withers,

[U-Boot] [PATCH] Tell git to ignore asm-offsets.s

2011-09-30 Thread Laurence Withers
The generated file asm-offsets.s may be found at various depths in the arch subdirectories, so simply ignore it throughout the tree. Signed-off-by: Laurence Withers --- .gitignore |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2a82cd9

Re: [U-Boot] [PATCH 4/6] da850: revert cache disable patch

2011-09-30 Thread Laurence Withers
27;t find any posted patches to fix the EMAC driver (though I would be very glad if I was wrong about this!). If so, we haven't actually "fixed EMAC issue with cache coherency" - the driver is still broken if caches are enabled, and the commit message should reflect that. Th

Re: [U-Boot] [PATCH 1/4] davinci: emac: add new features to autonegotiate for EMAC

2011-09-30 Thread Laurence Withers
ike, please feel free to add: Tested-by: Laurence Withers Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM _

Re: [U-Boot] [PATCH 3/4] davinci: emac: add support for more than 1 PHYs

2011-09-30 Thread Laurence Withers
nfigurable with a #define, as it would seem wasteful to allocate memory for 31 phy_t structures when I doubt there are any boards that could truly take advantage of that). Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643

Re: [U-Boot] [PATCH] ignore soc asm-offsets.s

2011-09-29 Thread Laurence Withers
committed) # # arch/arm/cpu/arm926ejs/davinci/asm-offsets.s nothing added to commit but untracked files present (use "git add" to track) We could ignore all files named asm-offsets.s , or perhaps all files under arch ? Bye for now, -- Laurence Withers, http://w

Re: [U-Boot] [PATCH] arm, davinci: add missing LSPC define for MMC/SD1

2011-09-29 Thread Laurence Withers
look a few lines further down, under /* DA850-specific peripherals */ . This was added in commit 732590b3. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queri

[U-Boot] [PATCH] NAND: davinci: choose correct 1-bit h/w ECC reg

2011-09-29 Thread Laurence Withers
with ECC intact) would always fail. With this fix, the ECC is written and verified correctly. Signed-off-by: Laurence Withers --- Changes for v2: Add Signed-off-by to commit message. --- drivers/mtd/nand/davinci_nand.c | 26 +- 1 files changed, 13 insertions(+), 13

[U-Boot] [PATCH v2] NAND: davinci: choose correct 1-bit h/w ECC reg

2011-09-29 Thread Laurence Withers
with ECC intact) would always fail. With this fix, the ECC is written and verified correctly. Signed-off-by: Laurence Withers --- Changes for v2: Add Signed-off-by to commit message. --- drivers/mtd/nand/davinci_nand.c | 26 +- 1 files changed, 13 insertions(+), 13

Re: [U-Boot] [PATCH] NAND: davinci: choose correct 1-bit h/w ECC reg

2011-09-29 Thread Laurence Withers
On Wed, Sep 28, 2011 at 12:58:45PM +0400, Sergei Shtylyov wrote: >You need to sign off your patch. Add this line to the changelog: > > Signed-off-by: Laurence Withers Thanks, I have reposted v2. Please ignore the posting with the unaltered subject line; I only realised after sendi

[U-Boot] [PATCH] NAND: davinci: choose correct 1-bit h/w ECC reg

2011-09-27 Thread Laurence Withers
In nand_davinci_readecc(), select the correct NANDFECC register based on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC. This allows 1-bit hardware ECC to work with chip select other than CS2. Note this now matches the usage in nand_davinci_enable_hwecc(), which already had the

Re: [U-Boot] [PATCH v3 1/8] da850: indicate cache usage disable in config file

2011-08-18 Thread Laurence Withers
respect to the cache, although I have not attempted that change myself. I have seen some patches start to flow that make changes in drivers to work correctly with caches enabled, such as http://lists.denx.de/pipermail/u-boot/2011-August/098484.html . Bye for now, -- Laurence Withers,

Re: [U-Boot] [PATCH 01/12] da850: indicate cache usage disable in config file

2011-08-02 Thread Laurence Withers
ver issues are the reason for disabling the caches then the commit message should reflect this. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: CMG-DCM CMG-EAM C

Re: [U-Boot] [PATCH 4/4] DA8xx: fix LPSC constants

2011-07-18 Thread Laurence Withers
dated patch set. Many thanks, and bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM ___ U-B

Re: [U-Boot] [PATCH 1/2] DaVinci: rename gpio_defs.h to gpio.h

2011-07-16 Thread Laurence Withers
On Sat, Jul 16, 2011 at 11:11:15AM +0200, Albert ARIBAUD wrote: > This is a rename, so use 'git mv...' and 'git format-patch -C' to let > git and readers know it is. Hi Albert, Thanks for the tip. I reposted a v2 with this. Bye for now, -- Laurence Wit

Re: [U-Boot] [PATCH 0/4] DaVinci/DA8xx cleanups

2011-07-16 Thread Laurence Withers
On Sat, Jul 16, 2011 at 11:06:50AM +0200, Albert ARIBAUD wrote: > Maybe as it touches at least indirectly DA8x boards you could CC: the > board maintainers? Hi Albert, Thanks for the pointer, I have reposted with CCs in place. Bye for now, -- Laurence Withers,

[U-Boot] [PATCH 0/4] DaVinci/DA8xx cleanups

2011-07-16 Thread Laurence Withers
Some general cleanup patches for the DaVinci/DA8xx CPUs made in preparation for porting to a new board based on the DA850. This is an unchanged repost from my original, with DaVinci/DA8xx board maintainers CCed. Laurence Withers (4): DaVinci EMAC: declare function for all DA8xx CPUs DA8xx

[U-Boot] [PATCH 4/4] DA8xx: fix LPSC constants

2011-07-16 Thread Laurence Withers
Some of the LPSC constants were incorrect, and some were missing. This commit fixes the incorrect constants (which were not used anywhere in the tree) and adds all constants for both DA830 and DA850, as per the TI datasheets. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci

[U-Boot] [PATCH 1/4] DaVinci EMAC: declare function for all DA8xx CPUs

2011-07-16 Thread Laurence Withers
. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/davinci_misc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/include/asm/arch-davinci/davinci_misc.h b/arch/arm/include/asm/arch-davinci/davinci_misc.h index 347aa89..211b769 100644 --- a

[U-Boot] [PATCH 2/4] DA8xx: add MMC/SD controller addresses

2011-07-16 Thread Laurence Withers
Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/hardware.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h index df3f549..d5d4211 100644 --- a/arch/arm

[U-Boot] [PATCH 3/4] DA8xx: switch an enum to defines for consistency

2011-07-16 Thread Laurence Withers
There are two main sets of LPSC constants, depending on the processor family. The DA8xx constants were given in an enum whereas the non-DA8xx constants were preprocessor defines. This commit switches the DA8xx constants to defines for consistency. Signed-off-by: Laurence Withers --- arch/arm

[U-Boot] [PATCH v2 1/2] DaVinci: rename gpio_defs.h to gpio.h

2011-07-16 Thread Laurence Withers
In preparation for a generic GPIO driver for the DA8xx processors, rename to and fix up all files which include it. Signed-off-by: Laurence Withers --- Changes for v2: - Use git format-patch -C to properly denote rename. --- .../asm/arch-davinci/{gpio_defs.h => gpio.h} |0 bo

[U-Boot] [PATCH v2 2/2] DA8xx: add generic GPIO driver

2011-07-16 Thread Laurence Withers
function to GPIO. Signed-off-by: Laurence Withers --- Changes for v2: - None. --- arch/arm/include/asm/arch-davinci/gpio.h |8 + drivers/gpio/Makefile|1 + drivers/gpio/da8xx_gpio.c| 281 ++ 3 files changed, 290 insertions

[U-Boot] [PATCH v2 0/2] DA8xx: add generic GPIO driver

2011-07-16 Thread Laurence Withers
This adds a generic GPIO driver fulfilling the interface for the TI DaVinci DA8xx CPU. Laurence Withers (2): DaVinci: rename gpio_defs.h to gpio.h DA8xx: add generic GPIO driver .../asm/arch-davinci/{gpio_defs.h => gpio.h} |8 + board/davinci/dm355leopard/dm355leopar

[U-Boot] [PATCH 2/2] DA8xx: add generic GPIO driver

2011-07-15 Thread Laurence Withers
function to GPIO. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/gpio.h |8 + drivers/gpio/Makefile|1 + drivers/gpio/da8xx_gpio.c| 281 ++ 3 files changed, 290 insertions(+), 0 deletions(-) create

[U-Boot] [PATCH 1/2] DaVinci: rename gpio_defs.h to gpio.h

2011-07-15 Thread Laurence Withers
In preparation for a generic GPIO driver for the DA8xx processors, rename to and fix up all files which include it. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/gpio.h | 66 + arch/arm/include/asm/arch-davinci/gpio_defs.h | 66

[U-Boot] [PATCH 0/2] DA8xx: add generic GPIO driver

2011-07-15 Thread Laurence Withers
This adds a generic GPIO driver fulfilling the interface for the TI DaVinci DA8xx CPU. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 2/4] DA8xx: add MMC/SD controller addresses

2011-07-15 Thread Laurence Withers
Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/hardware.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h index df3f549..d5d4211 100644 --- a/arch/arm

[U-Boot] [PATCH 3/4] DA8xx: switch an enum to defines for consistency

2011-07-15 Thread Laurence Withers
There are two main sets of LPSC constants, depending on the processor family. The DA8xx constants were given in an enum whereas the non-DA8xx constants were preprocessor defines. This commit switches the DA8xx constants to defines for consistency. Signed-off-by: Laurence Withers --- arch/arm

[U-Boot] [PATCH 1/4] DaVinci EMAC: declare function for all DA8xx CPUs

2011-07-15 Thread Laurence Withers
. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci/davinci_misc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/include/asm/arch-davinci/davinci_misc.h b/arch/arm/include/asm/arch-davinci/davinci_misc.h index 347aa89..211b769 100644 --- a

[U-Boot] [PATCH 4/4] DA8xx: fix LPSC constants

2011-07-15 Thread Laurence Withers
Some of the LPSC constants were incorrect, and some were missing. This commit fixes the incorrect constants (which were not used anywhere in the tree) and adds all constants for both DA830 and DA850, as per the TI datasheets. Signed-off-by: Laurence Withers --- arch/arm/include/asm/arch-davinci

[U-Boot] [PATCH 0/4] DaVinci/DA8xx cleanups

2011-07-15 Thread Laurence Withers
Some general cleanup patches for the DaVinci/DA8xx CPUs made in preparation for porting to a new board based on the DA850. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3] miiphy: use strncpy() not sprintf()

2011-07-15 Thread Laurence Withers
In miiphy_register() the new device's name was initialised by passing a string parameter as the format string to sprintf(). As this would cause problems if it ever contained a '%' symbol, switch to using strncpy() instead. Signed-off-by: Laurence Withers Cc: Andy Fleming ---

Re: [U-Boot] [PATCH] miiphy: use strncpy() not sprintf()

2011-07-15 Thread Laurence Withers
On Fri, Jul 15, 2011 at 09:21:45AM +, Laurence Withers wrote: > In miiphy_register() the new device's name was initialised by passing a > string parameter as the format string to sprintf(). As this would cause > problems if it ever contained a '%' symbol, switch to u

[U-Boot] [PATCH] miiphy: use strncpy() not sprintf()

2011-07-15 Thread Laurence Withers
In miiphy_register() the new device's name was initialised by passing a string parameter as the format string to sprintf(). As this would cause problems if it ever contained a '%' symbol, switch to using strncpy() instead. Signed-off-by: Laurence Withers Cc: Andy Fleming ---

Re: [U-Boot] [PATCH] miiphy: use strcpy() not sprintf()

2011-07-15 Thread Laurence Withers
code did have a check for the name overflowing but BUG_ON() is IMO clearer so I switched to using it instead. I kept strncpy() in v3, rather than just strcpy(), because it makes the code robust against future edits. Thanks for the feedback. Bye for now, -- Laurence Withers,

Re: [U-Boot] [PATCH 1/2] integratorap: disable dcache

2011-07-15 Thread Laurence Withers
h, but turning of dcache doesn't really have any side effects that cause problems for me. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General suppo

[U-Boot] [PATCH v2] miiphy: use strncpy() not sprintf()

2011-07-14 Thread Laurence Withers
In miiphy_register() the new device's name was initialised by passing a string parameter as the format string to sprintf(). As this would cause problems if it ever contained a '%' symbol, switch to using strncpy() instead. Signed-off-by: Laurence Withers Cc: Andy Fleming ---

[U-Boot] [PATCH] miiphy: use strcpy() not sprintf()

2011-07-14 Thread Laurence Withers
In miiphy_register() the new device's name was initialised by passing a string parameter as the format string to sprintf(). As this would cause problems if it ever contained a '%' symbol, switch to using strcpy() instead. Signed-off-by: Laurence Withers Cc: Andy Fleming --- comm

Re: [U-Boot] [PATCH] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
arious Davinci LPSC modules as much as possible. I'm willing to give this a go, but I am unable to physically test the results on any of the Davinci family except the DA850. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+444086

Re: [U-Boot] [PATCH] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
e.g.: DAVINCI_LPSC_MMC_SD,/* actually MMC_SD0 on DA8xx */ DAVINCI_LPSC_MMC_SD1, It seems a little inconsistent to me, but I'm happy to do it if preferred. Or, I can do what I have done, and change only the DA8xx names. Which is the preferred option? Or something else entirely? Many thanks, an

Re: [U-Boot] [PATCH] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
h were not used anywhere in the code. I also verified that a "./MAKEALL -s davinci" gave the same results before and after. Many thanks for the feedback, and bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643

[U-Boot] [PATCH v2] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
changes. Signed-off-by: Laurence Withers Cc: Sandeep Paulraj --- Changes for v2: - Fixed formatting of commit message. --- arch/arm/include/asm/arch-davinci/hardware.h | 29 +- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/arch/arm/include/asm/arch

[U-Boot] [PATCH] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
The DA8xx chips have two modules PSC0 and PSC1 for the local power and sleep controllers (LPSC). Each LPSC has up to 32 submodules over which it has control, which are enumerated by the DAVINCI_LPSC_* symbols. This commit fixes the definitions of a number of symbols to be consistent with both the

[U-Boot] [PATCH] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
a reply to this mail I've attached my first attempt at a patch for u-boot, which addresses this issue. Any feedback (esp. wrt formatting and use of the git tools etc.) is gratefully received. Laurence Withers (1): DA8xx: fix LPSC numbering arch/arm/include/asm/arch-davinci/ha