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

2012-07-31 Thread Laurence Withers
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. Laurence Withers (4

[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 lwith...@guralp.com Cc: Tom Rini tr...@ti.com Cc: Prabhakar Lad

[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 lwith...@guralp.com Cc: Tom Rini tr...@ti.com Cc: Prabhakar

[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 lwith...@guralp.com Cc: Tom Rini tr...@ti.com Cc

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

2012-07-31 Thread Laurence Withers
to understand the flow of the two separate functions. Signed-off-by: Laurence Withers lwith...@guralp.com Cc: Tom Rini tr...@ti.com Cc: Hadli, Manjunath manjunath.ha...@ti.com Cc: Heiko Schocher h...@denx.de --- Changes in v2: - Re-ordered patch series to tidy up clock IDs before tidying up users

[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 lwith...@guralp.com Cc: Prabhakar Lad prabhakar.cse

[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 lwith...@guralp.com Cc: Prabhakar Lad prabhakar.cse

[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 lwith...@guralp.com Cc: Prabhakar Lad prabhakar.cse

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

2012-07-30 Thread Laurence Withers
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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software

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). Signed-off

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

2012-07-27 Thread Laurence Withers
to understand the flow of the two separate functions. Signed-off-by: Laurence Withers lwith...@guralp.com Cc: Tom Rini tr...@ti.com Cc: Hadli, Manjunath manjunath.ha...@ti.com Cc: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm926ejs/davinci/cpu.c | 21 + 1 files changed, 13

[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 lwith...@guralp.com --- drivers/gpio/pca953x.c | 49 ++- 1 files

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

2012-07-25 Thread Laurence Withers
Signed-off-by: Laurence Withers lwith...@guralp.com --- 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

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

2012-03-06 Thread Laurence Withers
, 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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel

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

2012-03-04 Thread Laurence Withers
) \ 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 ‘f1’ was here which is pretty clear. Bye for now, -- Laurence Withers, lwith...@guralp.com

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, -- Laurence Withers

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

2012-03-03 Thread Laurence Withers
a prototype for the function, so that gcc complains with a useful error message if there's a type mismatch. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support

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

2012-02-17 Thread Laurence Withers
ever want to print are ARM, DSP and DDR. Seems way too specific for such common code. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com

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

2011-10-25 Thread Laurence Withers
be: git checkout local-branch git fetch remote git rebase remote/master Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG

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

2011-10-12 Thread Laurence Withers
-by: Laurence Withers lwith...@guralp.com Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM

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

2011-10-12 Thread Laurence Withers
joe.hershber...@gmail.com Cc: Kim Phillips kim.phill...@freescale.com Tested-by: Laurence Withers lwith...@guralp.com Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General

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

2011-10-12 Thread Laurence Withers
my board's single PHY. 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, lwith...@guralp.comhttp://www.guralp.com

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 NANDFnECC 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

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

2011-10-09 Thread Laurence Withers
, 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 Withers, lwith...@guralp.com

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

2011-10-08 Thread Laurence Withers
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 enabled? Bye for now, -- Laurence Withers

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

2011-10-08 Thread Laurence Withers
? 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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel

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
the registers. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM

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, lwith...@guralp.com

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

2011-10-04 Thread Laurence Withers
-...) will be a null pointer dereference. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM

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

2011-10-03 Thread Laurence Withers
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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries

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

2011-09-30 Thread Laurence Withers
, 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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software

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

2011-09-30 Thread Laurence Withers
and disabled etc.) with no problems at all. If you like, please feel free to add: Tested-by: Laurence Withers lwith...@guralp.com Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer

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

2011-09-30 Thread Laurence Withers
, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM ___ U-Boot mailing

[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 lwith...@guralp.com --- .gitignore |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/.gitignore b

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 lwith...@guralp.com Thanks, I have reposted v2. Please ignore the posting with the unaltered subject line; I only realised after

[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 lwith...@guralp.com --- Changes for v2: Add Signed-off-by to commit message. --- drivers/mtd/nand/davinci_nand.c | 26 +- 1 files changed, 13

[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 lwith...@guralp.com --- Changes for v2: Add Signed-off-by to commit message. --- drivers/mtd/nand/davinci_nand.c | 26 +- 1 files changed, 13

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

2011-09-29 Thread Laurence Withers
-specific peripherals */ . This was added in commit 732590b3. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG

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

2011-09-29 Thread Laurence Withers
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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643

[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 NANDFnECC 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

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

2011-08-18 Thread Laurence Withers
. 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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197

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

2011-07-18 Thread Laurence Withers
set. Many thanks, and bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM

[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 asm/gpio.h 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/dm355leopard.c

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

2011-07-16 Thread Laurence Withers
to set the pin function to GPIO. Signed-off-by: Laurence Withers lwith...@guralp.com --- Changes for v2: - None. --- arch/arm/include/asm/arch-davinci/gpio.h |8 + drivers/gpio/Makefile|1 + drivers/gpio/da8xx_gpio.c| 281 ++ 3

[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 asm/arch/gpio_defs.h to asm/arch/gpio.h and fix up all files which include it. Signed-off-by: Laurence Withers lwith...@guralp.com --- Changes for v2: - Use git format-patch -C to properly denote rename. --- .../asm/arch

[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 lwith

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

2011-07-16 Thread Laurence Withers
Signed-off-by: Laurence Withers lwith...@guralp.com --- 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

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

2011-07-16 Thread Laurence Withers
CONFIG_DRIVER_TI_EMAC is enabled. Signed-off-by: Laurence Withers lwith...@guralp.com --- 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

[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 lwith...@guralp.com --- arch/arm

[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

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, lwith...@guralp.com

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 Withers, lwith...@guralp.com

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

2011-07-15 Thread Laurence Withers
any side effects that cause problems for me. Bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries: supp...@guralp.com CMG-DCM CMG-EAM CMG-NAM

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

2011-07-15 Thread Laurence Withers
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, lwith...@guralp.comhttp

[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 lwith...@guralp.com Cc: Andy Fleming aflem

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 using strncpy() instead. My

[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 lwith...@guralp.com Cc: Andy Fleming aflem

[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 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 lwith...@guralp.com --- arch/arm

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

2011-07-15 Thread Laurence Withers
CONFIG_DRIVER_TI_EMAC is enabled. Signed-off-by: Laurence Withers lwith...@guralp.com --- 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

[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 lwith

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

2011-07-15 Thread Laurence Withers
Signed-off-by: Laurence Withers lwith...@guralp.com --- 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

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

2011-07-15 Thread Laurence Withers
This adds a generic GPIO driver fulfilling the asm/gpio.h 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 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 asm/arch/gpio_defs.h to asm/arch/gpio.h and fix up all files which include it. Signed-off-by: Laurence Withers lwith...@guralp.com --- arch/arm/include/asm/arch-davinci/gpio.h | 66 + arch

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

2011-07-15 Thread Laurence Withers
to set the pin function to GPIO. Signed-off-by: Laurence Withers lwith...@guralp.com --- 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] 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 lwith...@guralp.com Cc: Andy Fleming aflem

[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 lwith...@guralp.com Cc: Andy Fleming aflem

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

2011-03-21 Thread Laurence Withers
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/hardware.h | 29

[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 v2] DA8xx: fix LPSC numbering

2011-03-21 Thread Laurence Withers
changes. Signed-off-by: Laurence Withers lwith...@guralp.com Cc: Sandeep Paulraj s-paul...@ti.com --- 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

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

2011-03-21 Thread Laurence Withers
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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer

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

2011-03-21 Thread Laurence Withers
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, and bye for now, -- Laurence Withers, lwith...@guralp.comhttp://www.guralp.com

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

2011-03-21 Thread Laurence Withers
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, lwith...@guralp.comhttp://www.guralp.com/ Direct tel:+447753988197 or tel:+44408643 Software Engineer General support queries