Re: [U-Boot] [PATCH] fix IDE_BUS(dev) macro

2012-10-07 Thread uboot
Hi Tom, Albert, Prafulla and others, On Tue, Apr 17, 2012 at 09:06:49PM +0200, Luka Perkov wrote: > IDE_BUS assumes that each bus has two devices and thus returns the first > bus even when the second one should be probed. > > Signed-off-by: Simon Baatz > Tested-by: Luka Perkov > --- > > Simon

Re: [U-Boot] [PATCH] fix IDE_BUS(dev) macro

2012-10-07 Thread Albert ARIBAUD
Hi ub...@lukaperkov.net, On Sun, 7 Oct 2012 09:15:52 +0200, ub...@lukaperkov.net wrote: > Hi Tom, Albert, Prafulla and others, > > On Tue, Apr 17, 2012 at 09:06:49PM +0200, Luka Perkov wrote: > > IDE_BUS assumes that each bus has two devices and thus returns the first > > bus even when the secon

[U-Boot] [PATCH 0/2] cm-t3x: minor config updates and cleanups

2012-10-07 Thread Igor Grinberg
Remove OneNAND and flash related defines. Increase the MAXARGS value. Igor Grinberg (2): cm-t35: clean unused defines from config cm-t35: increase the MAXARGS include/configs/cm_t35.h | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) -- 1.7.3.4 _

[U-Boot] [PATCH 2/2] cm-t35: increase the MAXARGS

2012-10-07 Thread Igor Grinberg
Increase the MAXARGS to support more than 16 arguments. Signed-off-by: Igor Grinberg --- include/configs/cm_t35.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h index 8e28fbc..e18fb5a 100644 --- a/include/configs/cm_t

[U-Boot] [PATCH 1/2] cm-t35: clean unused defines from config

2012-10-07 Thread Igor Grinberg
Neither cm-t35, nor cm-t3730 is using OneNAND or flash. Remove the related defines from config file. Signed-off-by: Igor Grinberg --- include/configs/cm_t35.h | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-07 Thread Enric Balletbò i Serra
Hi Albert, 2012/10/5 Albert ARIBAUD : > Hi Tetsuyuki, > > On Fri, 5 Oct 2012 13:39:22 +0900, Tetsuyuki Kobayashi > wrote: > >> lowlevel_init() of rmobile badly assumed that ip register holds return >> address. >> The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this >> assumptio

[U-Boot] [PATCH] EXYNOS: EXYNOS4X12: extract Exynos4x12 IPs clock frequency

2012-10-07 Thread Chander Kashyap
Adds functions to extract clock frequency of Exynos4x12 IPs. Signed-off-by: Chander Kashyap --- arch/arm/cpu/armv7/exynos/clock.c | 163 +++-- 1 file changed, 158 insertions(+), 5 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/clock.c b/arch/arm/cpu/armv7/

Re: [U-Boot] [PATCH] fix IDE_BUS(dev) macro

2012-10-07 Thread Tom Rini
On Sun, Oct 7, 2012 at 2:28 AM, Albert ARIBAUD wrote: > Hi ub...@lukaperkov.net, > > On Sun, 7 Oct 2012 09:15:52 +0200, ub...@lukaperkov.net wrote: > >> Hi Tom, Albert, Prafulla and others, >> >> On Tue, Apr 17, 2012 at 09:06:49PM +0200, Luka Perkov wrote: >> > IDE_BUS assumes that each bus has tw

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-07 Thread Jeroen Hofstee
Hello All, On 10/07/2012 01:34 PM, Enric Balletbò i Serra wrote: Hi Albert, 2012/10/5 Albert ARIBAUD : Hi Tetsuyuki, On Fri, 5 Oct 2012 13:39:22 +0900, Tetsuyuki Kobayashi wrote: lowlevel_init() of rmobile badly assumed that ip register holds return address. The commit "63ee53a7 armv7 cpu

[U-Boot] [PATCH 00/10] IDE code cleanup

2012-10-07 Thread Pavel Herrmann
This series tries to remove all SoC-specific and board-specific code from cmd_ide. Whenever an existing hook is present, it is used instead, when no appropriate hook is present, one is created (either as a hook call or by using the weak alias technique). The aim of this series is to prepare for DM

[U-Boot] [PATCH 01/10] remove CONFIG_SC3 from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
There is no difference in codepath with CONFIG_SC3 enabled, so just remove it Signed-off-by: Pavel Herrmann --- common/cmd_ide.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 6e1e568..4b94e23 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide

[U-Boot] [PATCH 04/10] change all versions of input_data() and output_data() to global weak aliases

2012-10-07 Thread Pavel Herrmann
This changes input_data() and friends from static function to global symbols under weak alias, to enable board specific overrides (and therefore get rid of board-specific code in cmd_ide.c) Also declare ide_bus_offset in the header file, so other files can use ATA_CURR_BASE as well. Signed-off-by:

[U-Boot] [PATCH 03/10] split IVM power hooks from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
Move power control code from ide_reset() into IVM-specific IDE reset code. Signed-off-by: Pavel Herrmann --- board/ivm/ivm.c | 46 ++ common/cmd_ide.c | 48 2 files changed, 46 insertions(+), 48 deletio

[U-Boot] [PATCH 02/10] split mpc8xx hooks from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
move most of mpc8xx hooks from cmd_ide.c into ide_preinit() and newly created ide_init_postreset() (invoked after calling ide_reset after ide_preinit), some cleanup to make checkpatch happy, enable IDE init hooks in configs of affected boards. Confusingly, these hooks are used by more than just mpc

[U-Boot] [PATCH 05/10] split CPC45 board-specific IDE functions from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
Move input_data() and friends to board/cpc45/ide.c, as overrides for weak aliases in cmd_ide.c note: checkpatch emits warnings about using volatile Signed-off-by: Pavel Herrmann --- board/cpc45/Makefile | 2 +- board/cpc45/ide.c| 130 +++ co

[U-Boot] [PATCH 06/10] make ide_led() a weak alias

2012-10-07 Thread Pavel Herrmann
Make ide_led() a weak alias instead of global/local function/empty macro based on CONFIG_IDE_LED value and/or board-specific CONFIGs, to get rid of board-specific code in cmd_ide.c Define dummy values to get rid of compoler errors in case where ide_led() used to be an empty macro Signed-off-by: Pa

[U-Boot] [PATCH 07/10] move CPC45 ide_led to the same file as other IDE hooks

2012-10-07 Thread Pavel Herrmann
Keep all IDE-related hooks and overrides in a single file, to avoid confusion. Signed-off-by: Pavel Herrmann --- board/cpc45/cpc45.c | 15 --- board/cpc45/ide.c | 15 +++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/board/cpc45/cpc45.c b/board/cpc45/

[U-Boot] [PATCH 08/10] split AU1X00 specific code from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
Move special case of ide_swap_read() for AU1X00 SoC into SoC-specific directory. Signed-off-by: Pavel Herrmann --- arch/mips/cpu/mips32/au1x00/Makefile | 2 +- arch/mips/cpu/mips32/au1x00/au1x00_ide.c | 33 common/cmd_ide.c | 6 ++---

[U-Boot] [PATCH 09/10] split PCS440EP specific code from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
Move specific ide_input_data and friends to board-specific file. Signed-off-by: Pavel Herrmann --- board/pcs440ep/pcs440ep.c | 56 +++ common/cmd_ide.c | 18 --- 2 files changed, 56 insertions(+), 18 deletions(-) diff --git a/boar

[U-Boot] [PATCH 10/10] remove unnecessary includes from cmd_ide.c

2012-10-07 Thread Pavel Herrmann
mpc8xx and mpc5xxx specific includes in cmd_ide.c are not required, remove them. Signed-off-by: Pavel Herrmann --- common/cmd_ide.c | 8 1 file changed, 8 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 4f3ff54..891ce21 100644 --- a/common/cmd_ide.c +++ b/common/cmd

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-07 Thread Albert ARIBAUD
Hi Jeroen, On Sun, 07 Oct 2012 17:18:27 +0200, Jeroen Hofstee wrote: > Hello All, > > On 10/07/2012 01:34 PM, Enric Balletbò i Serra wrote: > > Hi Albert, > > > > 2012/10/5 Albert ARIBAUD : > >> Hi Tetsuyuki, > >> > >> On Fri, 5 Oct 2012 13:39:22 +0900, Tetsuyuki Kobayashi > >> wrote: > >> >

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-07 Thread Albert ARIBAUD
Hi Albert, On Sun, 7 Oct 2012 19:19:37 +0200, Albert ARIBAUD wrote: > Hi Jeroen, > > On Sun, 07 Oct 2012 17:18:27 +0200, Jeroen Hofstee > wrote: > > > Hello All, > > > > On 10/07/2012 01:34 PM, Enric Balletbò i Serra wrote: > > > Hi Albert, > > > > > > 2012/10/5 Albert ARIBAUD : > > >> Hi Te

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-07 Thread Albert ARIBAUD
Hi Albert, On Sun, 7 Oct 2012 19:21:27 +0200, Albert ARIBAUD wrote: > Hi Albert, > > On Sun, 7 Oct 2012 19:19:37 +0200, Albert ARIBAUD > wrote: > > > Hi Jeroen, > > > > On Sun, 07 Oct 2012 17:18:27 +0200, Jeroen Hofstee > > wrote: > > > > > Hello All, > > > > > > On 10/07/2012 01:34 PM, E

Re: [U-Boot] [PATCH 02/10] split mpc8xx hooks from cmd_ide.c

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > move most of mpc8xx hooks from cmd_ide.c into ide_preinit() and newly > created ide_init_postreset() (invoked after calling ide_reset after > ide_preinit), some cleanup to make checkpatch happy, enable IDE init hooks > in configs of affected boards. > Confusingly, these hook

Re: [U-Boot] [PATCH 02/10] split mpc8xx hooks from cmd_ide.c

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > move most of mpc8xx hooks from cmd_ide.c into ide_preinit() and newly > created ide_init_postreset() (invoked after calling ide_reset after > ide_preinit), some cleanup to make checkpatch happy, enable IDE init hooks > in configs of affected boards. > Confusingly, these hook

Re: [U-Boot] [PATCH 04/10] change all versions of input_data() and output_data() to global weak aliases

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > This changes input_data() and friends from static function to global > symbols under weak alias, to enable board specific overrides (and > therefore get rid of board-specific code in cmd_ide.c) > Also declare ide_bus_offset in the header file, so other files can use > ATA_CU

Re: [U-Boot] [PATCH V3 17/32] imximage.cfg: run files through C preprocessor

2012-10-07 Thread Eric Nelson
Hi Troy, On 10/03/2012 06:47 PM, Troy Kisky wrote: The '#' used as comments in the files cause the preprocessor trouble, so change to /* */. Signed-off-by: Troy Kisky --- Makefile |3 +- board/esg/ima3-mx53/imximage.cfg | 120 ++-

Re: [U-Boot] [PATCH 05/10] split CPC45 board-specific IDE functions from cmd_ide.c

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > Move input_data() and friends to board/cpc45/ide.c, as overrides for weak > aliases in cmd_ide.c > > note: checkpatch emits warnings about using volatile > > Signed-off-by: Pavel Herrmann > --- > board/cpc45/Makefile | 2 +- > board/cpc45/ide.c| 130 > +

Re: [U-Boot] [PATCH 07/10] move CPC45 ide_led to the same file as other IDE hooks

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > Keep all IDE-related hooks and overrides in a single file, to avoid > confusion. > > Signed-off-by: Pavel Herrmann > --- [...] > + > +void ide_led(uchar led, uchar status) > +{ > + u_char val; > + /* We have one PCMCIA slot and use LED H4 for the IDE Interface */

Re: [U-Boot] ELDK4.2 build failures for highbank, omap4_panda and omap4_sdp4430 (was: [PATCH] yaffs2: Fix GCC 4.6 compile warnings)

2012-10-07 Thread Tom Rini
On Sat, Oct 06, 2012 at 01:02:49PM +0200, Albert ARIBAUD wrote: > Hi All, > > With Anatolij's fix in, ELDK4.2 still fails to build three boards: > highbank, omap4_panda and omap4_sdp4430 (maintainers CCed). > > Build logs are weird for the two omap boards: > > Configuring for omap4_panda board.

Re: [U-Boot] [PATCH 00/10] IDE code cleanup

2012-10-07 Thread Marek Vasut
Dear Pavel Herrmann, > This series tries to remove all SoC-specific and board-specific code from > cmd_ide. Whenever an existing hook is present, it is used instead, when no > appropriate hook is present, one is created (either as a hook call or by > using the weak alias technique). The aim of thi

[U-Boot] [PATCH] arm: armv7: omap3: Fix restore sequence in lowlevel_init

2012-10-07 Thread Albert ARIBAUD
The restore sequence in lowlevel_init was in the wrong order, causing lr to lose its original value and be set equal to ip instead. Signed-off-by: Albert ARIBAUD --- arch/arm/cpu/armv7/omap3/lowlevel_init.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7

[U-Boot] [PULL] u-boot-usb/next

2012-10-07 Thread Marek Vasut
NOTE: I get a few more size issues with ELDK 4.2 on IXP (that big-endian ARM) after this patchset is applied. I wonder if we shouldn't just throw these away, since they're dead code mostly. The following changes since commit c7ee66a8222660b565e9240775efa4c82cb348c2: Merge branch 'next' of git

[U-Boot] [PATCH V2] arm: armv7: omap3: Fix restore sequence in lowlevel_init

2012-10-07 Thread Albert ARIBAUD
The restore sequence in lowlevel_init was in the wrong order, causing lr to lose its original value and be set equal to ip instead. Also, its use of the stack clashes with that of s_init, so move the s_init call after the restore and turn it into a tail-optimized branch. Signed-off-by: Albert ARI

[U-Boot] sram overflowed

2012-10-07 Thread Grant
When I try to boot the 3.6 kernel on my Beaglebone it hangs at "Starting kernel". I read that I should try the latest version of u-boot: git clone git://arago-project.org/git/projects/u-boot-am33x.git But I get this when I try to make: ld: u-boot-spl section `.data' will not fit in region `.sra

Re: [U-Boot] [PATCH V2] arm: armv7: omap3: Fix restore sequence in lowlevel_init

2012-10-07 Thread Jeroen Hofstee
On 10/07/2012 09:24 PM, Albert ARIBAUD wrote: The restore sequence in lowlevel_init was in the wrong order, causing lr to lose its original value and be set equal to ip instead. Also, its use of the stack clashes with that of s_init, so move the s_init call after the restore and turn it into a t

Re: [U-Boot] [PATCH V3 21/32] mx6q_4x_mt41j128.cfg: skip initiailizing non-existent memory

2012-10-07 Thread Eric Nelson
Hi Troy, On 10/03/2012 06:47 PM, Troy Kisky wrote: Sabrelite does not have memory associated with CS1 Signed-off-by: Troy Kisky --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |5 - 1 file changed, 5 deletions(-) diff --git a/board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg b/board/fr

Re: [U-Boot] sram overflowed

2012-10-07 Thread Wolfgang Denk
Dear Grant, In message you wrote: > When I try to boot the 3.6 kernel on my Beaglebone it hangs at > "Starting kernel". I read that I should try the latest version of > u-boot: > > git clone git://arago-project.org/git/projects/u-boot-am33x.git This is definitely NOT what you want to use when

[U-Boot] [PATCH v2] tegra: nand: make ONFI detection work

2012-10-07 Thread Lucas Stach
Add the missing bits to the Tegra NAND driver to make ONFI detection work properly. Also add it to the Tegra default config, as it seems to be a reasonable thing to have it available on all boards that use any kind of NAND. Signed-off-by: Lucas Stach --- v2: use puts instead of printf --- drive

[U-Boot] [PATCH v3] tegra: add Colibri T20 board support

2012-10-07 Thread Lucas Stach
This adds board support for the Toradex Colibri T20 module. Working functions: - SD card boot - USB boot - Network - NAND environment Signed-off-by: Lucas Stach --- v2: - rename .dts file to match board name v3: - make comments more meaningful - split into module and carrier board specific part