Re: [U-Boot] [PATCH V2 01/25] mxc_i2c: fix i2c_imx_stop

2012-07-05 Thread Marek Vasut
Dear Troy Kisky, > On 7/5/2012 12:53 PM, Troy Kisky wrote: > > Instead of clearing 2 bits, all the other > > bits were set because '|=' was used instead > > of '&='. > > > > Signed-off-by: Troy Kisky > > Acked-by: Marek Vasut > > Acked-by: Stefano Babic > > > > --- > > V2: add acks > > --- >

[U-Boot] [PATCH v4] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-07-05 Thread Tetsuyuki Kobayashi
save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). Signed-off-by: Tetsuyuki Kobayashi --- Hi Tom, Albert, I rewrite them in asm language and put it to start.S. No warning now. I tested it quickly on my kzm9g board. Changes for v2: -

Re: [U-Boot] [PATCH] armv7: Fix to mistake clean the memory space

2012-07-05 Thread Albert ARIBAUD
Hi Zhong, On Thu, 5 Jul 2012 22:35:15 +0800, Zhong Hongbo wrote: > From: Zhong Hongbo > > In currently, when __bss_start is equal to __bss_end__, > The bss loop will clear all the things in memory space. > > But just only when __bss_end__ greater than __bss_start__, > we do the clear bss sect

Re: [U-Boot] [PATCH] arm/s5pxx: Fix get_timer_masked to get the time.

2012-07-05 Thread Jaehoon Chung
Hi Minkyu, I tested on trats-board. I think it's working fine. Tested-by: Jaehoon Chung Best Regards, Jaehoon Chung On 07/06/2012 11:13 AM, Minkyu Kang wrote: > Dear Jaehoon and Donghwa, > > On 5 July 2012 20:55, Zhong Hongbo wrote: >> Hi Minkyu, >> >> Could you help me to review it? >> >> T

[U-Boot] [PATCH v4] arm : Atmel : add at91sam9x5ek board support

2012-07-05 Thread Bo Shen
Add at91sam9x5ek board support, this board support the following SoCs AT91SAM9G15, AT91SAM9G25, AT91SAM9G35, AT91SAM9X25, AT91SAM9X35 Using at91sam9x5ek_nandflash to configure for the board Now only supports NAND with software ECC boot up Signed-off-by: Bo Shen --- This patch is based on git:/

Re: [U-Boot] [PATCH] arm/s5pxx: Fix get_timer_masked to get the time.

2012-07-05 Thread Minkyu Kang
Dear Jaehoon and Donghwa, On 5 July 2012 20:55, Zhong Hongbo wrote: > Hi Minkyu, > > Could you help me to review it? > > Thanks, > hongbo > > On 07/03/2012 07:50 AM, Zhong Hongbo wrote: >> From: Zhong Hongbo >> >> In general, The get_timer_masked function get the system time, >> no the number of

Re: [U-Boot] [PATCH 2/2] net: abort network initialization if the PHY driver fails

2012-07-05 Thread Tabi Timur-B04825
Nobuhiro Iwamatsu wrote: >> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c >> index eee41d7..7a3d16b 100644 >> --- a/drivers/net/fec_mxc.c >> +++ b/drivers/net/fec_mxc.c >> @@ -510,7 +510,12 @@ static int fec_open(struct eth_device *edev) >> fec_eth_phy_config(edev); >

Re: [U-Boot] [PATCH v3 6/7] tegra: nand: Add Tegra NAND driver

2012-07-05 Thread Scott Wood
On 07/04/2012 02:46 AM, Jim Lin wrote: >> -Original Message- >> From: Scott Wood [mailto:scottw...@freescale.com] >> Sent: Thursday, April 26, 2012 6:17 AM >> To: Simon Glass >> Cc: U-Boot Mailing List; Tom Warren; Stephen Warren; Jim Lin; Stephen Warren >> Subject: Re: [PATCH v3 6/7] tegr

Re: [U-Boot] [PATCH 2/2] net: abort network initialization if the PHY driver fails

2012-07-05 Thread Nobuhiro Iwamatsu
Hi, 2012/7/6 Timur Tabi : > Now that phy_startup() can return an actual error code, check for that error > code and abort network initialization if the PHY fails. > > Signed-off-by: Timur Tabi > --- > drivers/net/fec_mxc.c |7 ++- > drivers/net/fm/eth.c |9 -

Re: [U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-05 Thread Nobuhiro Iwamatsu
HI, 2012/7/5 Tetsuyuki Kobayashi : > Hello, Iwamatu-san > > I rebased u-boot-sh.git arm/rmobile branch and reworked my patches. > After this patch set, LTSI kernel can boot on KZM-A9-GT board. > > But I found it is not stable. It needs more work. > > > Tetsuyuki Kobayashi (3): > arm: rmobile: kz

Re: [U-Boot] U-boot Porting

2012-07-05 Thread Aaron Williams
Hi Zahid, I am in charge of U-Boot for OCTEON MIPS. I have not pushed the changes back upstream since the amount of code is enormous (over 430K lines of code!). Granted, a huge percentage of that is from generated register files but it is still a huge amount of code. Just the DRAM initializat

Re: [U-Boot] U-boot Porting

2012-07-05 Thread Aaron Williams
Hi Andreas, We have been shipping 2011.03 for some time and internally are planning to use 2012.07 when it is released since we are tracking the top of trunk. We have made a lot of improvements since then and added a lot of new capabilities. -Aaron On 07/05/2012 06:18 AM, Andreas Bießmann w

[U-Boot] [PATCH] rmobile: kzm9g: Fix warnin in cmp_loop function

2012-07-05 Thread Nobuhiro Iwamatsu
cmp_loop function was used from the structure of register. And for the member of this structure, volatile is defined. Since a volatile declaration of cmp_loop function is not made by argument, made warning by compiler. This fixes this problem. Signed-off-by: Nobuhiro Iwamatsu --- board/kmc/kzm9g

[U-Boot] [PATCH] arm: rmobile: Support build with gcc-4.6 or later

2012-07-05 Thread Nobuhiro Iwamatsu
Latest rmobile code was tested by using old gcc (gcc-4.4). When we use gcc-4.6 (or later), the build is made, but does not work. This solves a problem not to work by add -march=armv5 to compiple option when we built in gcc-4.6 (or later). I tested by linaro's compiler version 2012.04-20120426. Sig

[U-Boot] [PATCH] net: make net_rand.h inclusion depend on BOOTP_RANDOM_DELAY

2012-07-05 Thread Kim Phillips
commit "net: use common rand()/srand() functions" introduced the following build warning on the current u-boot-arm tree: $ ./MAKEALL MPC8313ERDB_66 Configuring for MPC8313ERDB_66 - Board: MPC8313ERDB, Options: SYS_66MHZ textdata bss dec hex filename 271988 13976 41768 3277

Re: [U-Boot] U-boot Porting

2012-07-05 Thread Daniel Schwierzeck
Hi Sayed, 2012/7/5 Andreas Bießmann : > Dear sayed zahid, > > On 05.07.2012 13:42, sayed zahid wrote: >> Hi , >> I have basic knowledge of porting u-boot to a new board. But now i have got >> a task to port u-boot on cavium mips based board. As i know that mips >> architecture is already supported

Re: [U-Boot] [PATCH v2 1/5] arm: rmobile: Add basic support for Renesas R-Mobile

2012-07-05 Thread Nobuhiro Iwamatsu
Hi, Tetsuyuki Kobayashi さんは書きました: Thank you, Iwamatu-san. But I am afraid that [PATCH v2 2/5] is missing. I didn't recieve it. This mail was blocked by Mailing List system. Size of Mail is too big. If you can show patchwork, you can get from that. http://patchwork.ozlabs.org/patch/169095/

[U-Boot] [PATCH v3] arm: rmobile: Add supoprt for KMC KZM-A9-GT board

2012-07-05 Thread Nobuhiro Iwamatsu
The KZM-A9-GT board has Renesas R-Mobile SH73A0, 512MB DDR2-SDRAM, USB, Ethernet, and more. This patch supports the following functions: - 512MB DDR2-SDRAM - 16MB NOR Flash memory - Serial console (SCIF) - Ethernet (SCIM) - I2C Signed-off-by: Nobuhiro Iwama

Re: [U-Boot] [PATCH v2 5/5] arm: rmobile: Add supoprt for KMC KZM-A9-GT board

2012-07-05 Thread Nobuhiro Iwamatsu
Hi, Thank you for your review. 2012/7/5 Tetsuyuki Kobayashi : > Hello, Iwamatsu-san > > > (2012/07/05 16:01), Nobuhiro Iwamatsu wrote: > >> diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c >> new file mode 100644 >> index 000..3f38f69 >> --- /dev/null >> +++ b/board/kmc/kzm9g/kz

Re: [U-Boot] [PATCH v8 2/4] net: use common rand()/srand() functions

2012-07-05 Thread Michael Walle
Am Donnerstag 05 Juli 2012, 20:18:12 schrieb Kim Phillips: > On Mon, 4 Jun 2012 15:10:55 -0500 > > Joe Hershberger wrote: > > On Fri, Jun 1, 2012 at 3:39 PM, Michael Walle wrote: > > > Replace rand() with the functions from lib/. The link-local network > > > code stores its own seed, derived fro

Re: [U-Boot] Please pull u-boot-staging.git/s...@denx.de

2012-07-05 Thread Albert ARIBAUD
Hi Stefan, On Thu, 5 Jul 2012 15:10:26 +0200, Stefan Roese wrote: > Hi Albert, > > as you seem to be working on U-Boot patches right now, here another short > reminder from me. ;) > > Thanks, > Stefan Can you rebase this on current uboot-arm? Sorry for the inconvenience. Amicalement, -- Alb

Re: [U-Boot] Please pull u-boot-ti/master

2012-07-05 Thread Albert ARIBAUD
Hi Tom, On Thu, 5 Jul 2012 09:18:38 -0700, Tom Rini wrote: > Hi Albert, > > The following changes since commit 863ba81c70d8ca8dc49e0c5a28a1fd0fb23ca62d: > > arm: bugfix: Move vector table before jumping relocated code (2012-07-05 > 14:01:28 +0200) > > are available in the git repository at:

Re: [U-Boot] [PATCH 1/2] Remove unused CONFIG_STACKSIZE

2012-07-05 Thread Rob Herring
Albert, On 07/05/2012 05:10 AM, Albert ARIBAUD wrote: > Hi Rob, > > On Thu, 28 Jun 2012 08:54:10 -0500, Rob Herring > wrote: >> From: Rob Herring >> >> CONFIG_STACKSIZE is not referenced anywhere except on AVR32, but >> present in most ARM boards. The IRQ and FIQ stacks are not setup in >> star

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Marek Vasut
Dear Ilya Yanok, > Hi Marek, > > On Thu, Jul 5, 2012 at 11:58 PM, Marek Vasut wrote: > > > Yep. I even thought about this but decided not to do... can't recall > > > why. Now I think it's really a good idea. > > > > > > > Maybe we should create DEFINE_ALIGNED_VARIABLE as a common.h macro? > >

[U-Boot] [PATCH 2/2] net: abort network initialization if the PHY driver fails

2012-07-05 Thread Timur Tabi
Now that phy_startup() can return an actual error code, check for that error code and abort network initialization if the PHY fails. Signed-off-by: Timur Tabi --- drivers/net/fec_mxc.c |7 ++- drivers/net/fm/eth.c |9 - drivers/net/sh_eth.c |6 ++

[U-Boot] [PATCH 1/2] phylib: phy_startup() should return an error code on failure

2012-07-05 Thread Timur Tabi
phy_startup() calls the PHY driver's startup function, but it ignores the return code from that function, and so it never returns any failures. Signed-off-by: Timur Tabi --- drivers/net/phy/phy.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/phy/phy.c b

[U-Boot] [PATCH V2 22/25] i.mx: iomux-v3.c: move to imx-common directory

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: no change --- arch/arm/cpu/armv7/imx-common/Makefile|2 +- arch/arm/cpu/armv7/{mx6 => imx-common}/iomux-v3.c |0 arch/arm/cpu/armv7/mx6/Makefile |2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename arch/arm/cpu

[U-Boot] [PATCH V2 16/25] mxc_i2c: add i2c_regs argument to i2c_imx_stop

2012-07-05 Thread Troy Kisky
This is prep work for CONFIG_I2C_MULTI_BUS. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index cbb0fff..44a04b5

[U-Boot] [PATCH V2 13/25] mxc_i2c: change slave addr if conflicts with destination.

2012-07-05 Thread Troy Kisky
The i2c controller cannot be both master and slave in the same transaction. Signed-off-by: Troy Kisky --- v2: no change --- drivers/i2c/mxc_i2c.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 1a5e379..ba2aad3 100644 --- a/drivers/i2

[U-Boot] [PATCH V2 21/25] i.mx: iomux-v3.h: move to imx-common include directory

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: no change --- arch/arm/cpu/armv7/mx6/iomux-v3.c |2 +- arch/arm/include/asm/arch-mx6/mx6x_pins.h |2 +- .../asm/{arch-mx6 => imx-common}/iomux-v3.h|0 board/freescale/mx6qarm2/mx6qarm2.c|2 +- boa

[U-Boot] [PATCH V2 15/25] mxc_i2c: add retries

2012-07-05 Thread Troy Kisky
Retry unexpected hardware errors. This will not retry a received NAK. Signed-off-by: Troy Kisky --- v2: if i2c_init_transfer_ returns no error, then return 0 --- drivers/i2c/mxc_i2c.c | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/dri

[U-Boot] [PATCH V2 20/25] iomux-v3: remove include of mx6x_pins.h

2012-07-05 Thread Troy Kisky
This include is not needed. Signed-off-by: Troy Kisky --- v2: no change --- arch/arm/cpu/armv7/mx6/iomux-v3.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/iomux-v3.c b/arch/arm/cpu/armv7/mx6/iomux-v3.c index 8785532..a0c4b15 100644 --- a/arch/arm/cpu/armv7/mx6/i

[U-Boot] [PATCH V2 24/25] imx-common: add i2c.c for bus recovery support

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: do nothing if bus is already idle print failure message if appropriate change enable_i2c_clock to enable_i2c_clk clear non-idle bus before calling bus_i2c_init. wait .2 seconds for bus to clear before returning error fix compiler warnings ---

[U-Boot] [PATCH V2 17/25] mxc_i2c: prep work for multiple busses support

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: moved global data to static ram section available before ram is initialized and removed typedef as suggested by Marek Vasut and Heiko Schocher make toggle_fn return int. --- drivers/i2c/mxc_i2c.c | 125 - 1 file

[U-Boot] [PATCH V2 23/25] i.mx53: add definition for I2C3_BASE_ADDR

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: no change --- arch/arm/include/asm/arch-mx5/imx-regs.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-mx5/imx-regs.h b/arch/arm/include/asm/arch-mx5/imx-regs.h index 4fa6658..caf5d21 100644 --- a/arch/arm/include/asm/arch-mx5/i

[U-Boot] [PATCH V2 14/25] mxc_i2c: check for arbitration lost

2012-07-05 Thread Troy Kisky
No need to continue waiting if arbitration lost. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index ba2aad3..093a73f 100644 --- a/drivers/i2c

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Ilya Yanok
Hi Marek, On Thu, Jul 5, 2012 at 11:58 PM, Marek Vasut wrote: > > > > > Yep. I even thought about this but decided not to do... can't recall why. > > Now I think it's really a good idea. > > > > Maybe we should create DEFINE_ALIGNED_VARIABLE as a common.h macro? > Like what's in common.h -- ALLO

Re: [U-Boot] [PATCH V2 01/25] mxc_i2c: fix i2c_imx_stop

2012-07-05 Thread Troy Kisky
On 7/5/2012 12:53 PM, Troy Kisky wrote: Instead of clearing 2 bits, all the other bits were set because '|=' was used instead of '&='. Signed-off-by: Troy Kisky Acked-by: Marek Vasut Acked-by: Stefano Babic --- V2: add acks --- drivers/i2c/mxc_i2c.c |2 +- 1 file changed, 1 insertion(

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Marek Vasut
Dear Ilya Yanok, > Hi Marek, > > On Thu, Jul 5, 2012 at 12:24 AM, Marek Vasut wrote: > > > -static struct QH qh_list __attribute__((aligned(32))); > > > +static char __qh_list[ALIGN(sizeof(struct QH), USB_DMA_MINALIGN)] > > > + __attribute__((aligned(USB_DMA_MINALIGN))); > >

[U-Boot] [PATCH V2 12/25] mxc_i2c: don't disable controller after every transaction

2012-07-05 Thread Troy Kisky
This helps in a multiple bus master environment which is why I also added a wait for bus idle. Signed-off-by: Troy Kisky --- v2: no change --- drivers/i2c/mxc_i2c.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drive

[U-Boot] [PATCH V2 03/25] mxc_i2c: create tx_byte function

2012-07-05 Thread Troy Kisky
Use tx_byte function instead of having 3 copies of the code. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack change ret to integer from unsigned --- drivers/i2c/mxc_i2c.c | 82 +++-- 1 file changed, 24 insertions(+), 58 deletions(-)

[U-Boot] [PATCH V2 01/25] mxc_i2c: fix i2c_imx_stop

2012-07-05 Thread Troy Kisky
Instead of clearing 2 bits, all the other bits were set because '|=' was used instead of '&='. Signed-off-by: Troy Kisky Acked-by: Marek Vasut Acked-by: Stefano Babic --- V2: add acks --- drivers/i2c/mxc_i2c.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/

[U-Boot] [PATCH V2 11/25] mxc_i2c: place i2c_reset code inline

2012-07-05 Thread Troy Kisky
imx_reset is only referenced once so move to that location. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 9efa9

[U-Boot] [PATCH V2 09/25] mxc_i2c: remove redundant read

2012-07-05 Thread Troy Kisky
wait_for_sr_state returns i2sr on success so no need to read again. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 01a6408..83c2fab 100644 --- a/

[U-Boot] [PATCH V2 25/25] mx6qsabrelite: add i2c multi-bus support

2012-07-05 Thread Troy Kisky
This includes bus recovery support. Signed-off-by: Troy Kisky --- v2: no change --- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 50 +++-- include/configs/mx6qsabrelite.h |6 +-- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/board/fre

[U-Boot] [PATCH V2 05/25] mxc_i2c: create i2c_init_transfer

2012-07-05 Thread Troy Kisky
Initial code of i2c_read and i2c_write is identical, move to subroutine. Signed-off-by: Troy Kisky Acked-by: Marek Vasut Acked-by: Stefano Babic --- v2: add ack --- drivers/i2c/mxc_i2c.c | 44 ++-- 1 file changed, 18 insertions(+), 26 deletions(-) di

[U-Boot] [PATCH V2 02/25] mxc_i2c: remove ifdef of CONFIG_HARD_I2C

2012-07-05 Thread Troy Kisky
This is always selected when CONFIG_I2C_MXC is selected, so it adds no value. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c inde

[U-Boot] [PATCH V2 10/25] mxc_i2c: place imx_start code inline

2012-07-05 Thread Troy Kisky
imx_start is only referenced once so move to that location. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack --- drivers/i2c/mxc_i2c.c | 53 +++-- 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c

[U-Boot] [PATCH V2 18/25] mxc_i2c: add bus recovery support

2012-07-05 Thread Troy Kisky
Add support for calling a function that will toggle the SCL line to return the bus to idle condition. The actual toggling function is added in a later patch. Signed-off-by: Troy Kisky --- v2: commit log change, global data in sram section. make toggle_i2c return int --- drivers/i2c/mxc_i2c.c |

[U-Boot] [PATCH V2 07/25] mxc_i2c.c: code i2c_probe as a 0 length i2c_write

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky Acked-by: Marek Vasut Acked-by: Stefano Babic --- v2: add acks change comment --- --- drivers/i2c/mxc_i2c.c | 25 - 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 55a688a..62

[U-Boot] [PATCH V2 06/25] mxc_i2c: call i2c_imx_stop on error in i2c_read/i2c_write

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- drivers/i2c/mxc_i2c.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 4ce695a..55a688a 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -337,8 +337,10 @@ int i2c_rea

[U-Boot] [PATCH V2 19/25] mxc_i2c: finish adding CONFIG_I2C_MULTI_BUS support

2012-07-05 Thread Troy Kisky
Signed-off-by: Troy Kisky --- v2: global data in sram section --- drivers/i2c/mxc_i2c.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 41849d3..2017399 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@

[U-Boot] [PATCH V2 08/25] mxc_i2c: combine i2c_imx_bus_busy and i2c_imx_trx_complete into wait_for_sr_state

2012-07-05 Thread Troy Kisky
Not using udelay gives a more accurate timeout. The current implementation of udelay in imx-common does not seem to wait at all for a udelay(1). Signed-off-by: Troy Kisky Acked-by: Marek Vasut V2: Added WATCHDOG_RESET as suggested by Marek Vasut add error message when stop fails mxc_i2c:

[U-Boot] [PATCH V2 04/25] mxc_i2c: clear i2sr before waiting for bit

2012-07-05 Thread Troy Kisky
Let's clear the sr register before waiting for bit to be set, instead of clearing it after hardware sets it. No real operational difference here, but allows combining of i2c_imx_trx_complete and i2c_imx_bus_busy in later patches. Signed-off-by: Troy Kisky Acked-by: Marek Vasut --- v2: add ack a

[U-Boot] [PATCH 11/11 v2] snowball: Adding board specific cache cleanup routine

2012-07-05 Thread mathieu . poirier
From: "Mathieu J. Poirier" Following ARM's reference manuel for initializing the cache - the kernel won't boot otherwise. Signed-off-by: Mathieu Poirier Signed-off-by: John Rigby --- Changes for v2: - Using correct I/O access function. - Added cache controller address offsets for clarity

[U-Boot] [PATCH 02/11 v2] u8500: Moving prcmu to cpu directory

2012-07-05 Thread mathieu . poirier
From: "Mathieu J. Poirier" This is to allow the prcmu functions to be used by multiple u8500-based processors. Signed-off-by: Mathieu Poirier Signed-off-by: John Rigby --- Changes for v2: - Fixed white space errors. --- arch/arm/cpu/armv7/u8500/Makefile |2 +- arch/arm/cpu/armv7/

[U-Boot] [PATCH 05/11 v2] snowball: Moving to ux500.v2 addess scheme for PRCMU access

2012-07-05 Thread mathieu . poirier
From: "Mathieu J. Poirier" Addresses between ux500.v1 and ux500.v2 have changed slightly, hence mandating a review of the PRCMU access methods. Signed-off-by: Mathieu Poirier Signed-off-by: John Rigby --- Changes for v2: - Refactored to apply cleanly over previous v2 changes. --- arch/arm/

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Marek Vasut
Dear Ilya Yanok, > Hi Tom, > > On Thu, Jul 5, 2012 at 9:15 PM, Tom Rini wrote: > > On Wed, Jul 04, 2012 at 05:03:59PM +0400, Ilya Yanok wrote: > > ` > > > > > From: Tom Rini > > > > > > The USB spec says that 32 bytes is the minimum required alignment. > > > However on some platforms we have

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Ilya Yanok
Hi Marek, On Thu, Jul 5, 2012 at 12:24 AM, Marek Vasut wrote: > > > -static struct QH qh_list __attribute__((aligned(32))); > > +static char __qh_list[ALIGN(sizeof(struct QH), USB_DMA_MINALIGN)] > > + __attribute__((aligned(USB_DMA_MINALIGN))); > > +static struct QH *qh_list

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Ilya Yanok
Hi Tom, On Thu, Jul 5, 2012 at 9:15 PM, Tom Rini wrote: > On Wed, Jul 04, 2012 at 05:03:59PM +0400, Ilya Yanok wrote: > ` > > From: Tom Rini > > > > The USB spec says that 32 bytes is the minimum required alignment. > > However on some platforms we have a larger minimum requirement for cache >

Re: [U-Boot] [PATCH v8 2/4] net: use common rand()/srand() functions

2012-07-05 Thread Kim Phillips
On Mon, 4 Jun 2012 15:10:55 -0500 Joe Hershberger wrote: > On Fri, Jun 1, 2012 at 3:39 PM, Michael Walle wrote: > > Replace rand() with the functions from lib/. The link-local network code > > stores its own seed, derived from the MAC address. Thus making it > > independent from calls to srand()

Re: [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash

2012-07-05 Thread Fabio Estevam
Hi Michael, On Thu, Jul 5, 2012 at 6:09 AM, Hornung, Michael wrote: > Hi Fabio, > > thank you very much for your reply. > >> With these values you can create a correct imximage.cfg file for mx35pdk. > > Thank you, I'll try my best. > >>> $ ./tools/mkimage -n ./board/freescale/mx35pdk/imximage.cfg

Re: [U-Boot] [PATCH v3 00/11] updates for Keymile Marvell boards

2012-07-05 Thread Prafulla Wadaskar
> -Original Message- > From: Holger Brunck [mailto:holger.bru...@keymile.com] > Sent: 05 July 2012 20:35 > To: u-boot@lists.denx.de > Cc: Holger Brunck; Valentin Longchamp; Prafulla Wadaskar > Subject: [PATCH v3 00/11] updates for Keymile Marvell boards > > Changes for v3 in general: >

Re: [U-Boot] [PATCH v4] arm/km: add kmnusa board support

2012-07-05 Thread Prafulla Wadaskar
> -Original Message- > From: Holger Brunck [mailto:holger.bru...@keymile.com] > Sent: 05 July 2012 21:08 > To: u-boot@lists.denx.de > Cc: Holger Brunck; Valentin Longchamp; Gerlando Falauto; Prafulla > Wadaskar > Subject: [PATCH v4] arm/km: add kmnusa board support > > This board is simi

[U-Boot] Pull request for u-boot-marvell.git

2012-07-05 Thread Prafulla Wadaskar
Dear Albert, Please pull The following changes since commit 863ba81c70d8ca8dc49e0c5a28a1fd0fb23ca62d: Tetsuyuki Kobayashi (1): arm: bugfix: Move vector table before jumping relocated code are available in the git repository at: u-boot-marvell.git master branch. Holger Brunck (6):

Re: [U-Boot] [PATCH] armv7: Fix infinite loop for the spl boot

2012-07-05 Thread Albert ARIBAUD (by way of Albert ARIBAUD
Hi Zhong Hongbo, On Thu, 05 Jul 2012 19:53:46 +0800, Zhong Hongbo wrote: > Hi Albert, > > Could you applied the patch to the arm tree? > > Thanks, > hongbo > On 07/03/2012 07:46 AM, Zhong Hongbo wrote: > > From: Zhong Hongbo > > > > In the spl booting step, When __bss_start is equal to __bss_

Re: [U-Boot] [PATCH v4 0/3] AM335x: Add USB support in u-boot.

2012-07-05 Thread Tom Rini
On 07/04/2012 05:29 PM, Marek Vasut wrote: > Dear Tom Rini, > > [...] > This is as per my understanding. It could also cause confusions to some due to name. maybe :) >>> >>> I'm no omap guru, Tom is. Tom? >> >> I think what we need to do is take a shot at converting am35x.c and >> am335

Re: [U-Boot] [PATCH] ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment

2012-07-05 Thread Tom Rini
On Wed, Jul 04, 2012 at 05:03:59PM +0400, Ilya Yanok wrote: ` > From: Tom Rini > > The USB spec says that 32 bytes is the minimum required alignment. > However on some platforms we have a larger minimum requirement for cache > coherency. In those cases, use that value rather than the USB spec >

Re: [U-Boot] [PATCH v3] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-07-05 Thread Albert ARIBAUD
Hi Tom, On Thu, 5 Jul 2012 09:18:28 -0700, Tom Rini wrote: > On Thu, Jul 05, 2012 at 01:57:26PM +0200, Albert ARIBAUD wrote: > > Hi Tetsuyuki, > > > > On Fri, 29 Jun 2012 18:36:21 +0900, Tetsuyuki Kobayashi > > wrote: > > > save_boot_params_default() in cpu.c accesses uninitialized stack area >

[U-Boot] Please pull u-boot-ti/master

2012-07-05 Thread Tom Rini
Hi Albert, The following changes since commit 863ba81c70d8ca8dc49e0c5a28a1fd0fb23ca62d: arm: bugfix: Move vector table before jumping relocated code (2012-07-05 14:01:28 +0200) are available in the git repository at: git://git.denx.de/u-boot-ti master for you to fetch changes up to 5af86f

Re: [U-Boot] [PATCH v3] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-07-05 Thread Tom Rini
On Thu, Jul 05, 2012 at 01:57:26PM +0200, Albert ARIBAUD wrote: > Hi Tetsuyuki, > > On Fri, 29 Jun 2012 18:36:21 +0900, Tetsuyuki Kobayashi > wrote: > > save_boot_params_default() in cpu.c accesses uninitialized stack area > > when it compiled with -O0 (not optimized). > > > > Signed-off-by: Tet

Re: [U-Boot] [PATCH] armv7: Fix to mistake clean the memory space

2012-07-05 Thread Andreas Bießmann
On 05.07.2012 17:38, Andreas Bießmann wrote: >> -clbss_l:str r2, [r0]/* clear loop...*/ >> +clbss_l: >> +cmp r1, r0 >> +bls clbss_end >> +str r2, [r0]/* clear loop...*/ >> add r0, r0, #4 >> -

Re: [U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Marek Vasut
Dear Gerlando Falauto, > On 07/05/2012 05:38 PM, Marek Vasut wrote: > > Dear Gerlando Falauto, > > > >> Some boards might be equipped with different SDRAM configurations. > >> When that is the case, CPU CS Window Size Register (CS[0]n Size) should > >> be set to the biggest value through board.cf

Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

2012-07-05 Thread Holger Brunck
On 07/05/2012 03:48 PM, Prafulla Wadaskar wrote: >> >> And if I resend the remaining eleven patches in the same order as >> beneath >> these are: >> [U-Boot,v2,01/14] arm/km: add kmnusa board support >> [U-Boot,v2,02/14] arm/km: add kmcoge5un board support >> [U-Boot,v2,03/14] arm/km: convert mgcog

Re: [U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Gerlando Falauto
On 07/05/2012 05:38 PM, Marek Vasut wrote: Dear Gerlando Falauto, Some boards might be equipped with different SDRAM configurations. When that is the case, CPU CS Window Size Register (CS[0]n Size) should be set to the biggest value through board.cfg file; then its value can be fixed at runtime

Re: [U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Marek Vasut
Dear Gerlando Falauto, > Some boards might be equipped with different SDRAM configurations. > When that is the case, CPU CS Window Size Register (CS[0]n Size) should > be set to the biggest value through board.cfg file; then its value > can be fixed at runtime according to the detected SDRAM size.

Re: [U-Boot] [PATCH] armv7: Fix to mistake clean the memory space

2012-07-05 Thread Andreas Bießmann
Dear Zhong Hongbo, this is arm related and should therefore apply to all the different arch/arm/cpu/*/start.S (as long as they have SPL support). On 05.07.2012 16:35, Zhong Hongbo wrote: > From: Zhong Hongbo > > In currently, when __bss_start is equal to __bss_end__, > The bss loop will clear a

[U-Boot] [PATCH v4] arm/km: add kmnusa board support

2012-07-05 Thread Holger Brunck
This board is similar to portl2, but it has the u-boot environment in a SPI NOR flash and not in an i2c eeprom like portl2 have. Some other details: - IVM EEPROM is at adress: pca9547:70:9 - PCI is enabled - PIGGY4 is connected via MV88E6352 simple switch. There is no phy between the simple

Re: [U-Boot] ARM CONFIG_OF_CONTROL status

2012-07-05 Thread Stephen Warren
On 07/04/2012 12:02 AM, Michal Simek wrote: ... > What is the problem to add the latest dtc? To really make use of device tree you need a recent dtc, but we've had pushback requiring a recent dtc because people may not have it installed. I asked Wolfgang a while back whether we could just put a co

Re: [U-Boot] USB detection

2012-07-05 Thread Marek Vasut
Dear Albert ARIBAUD, > Hi Manukumar, > > On Thu, 05 Jul 2012 15:57:49 +0530, Manukumar > > wrote: > > Hello, > > > > I have connected USB hard disk to P1020RB > > Which board is this? Neither "git grep -i P1020RB" nor "find . iname > '*P1020RB*'" yield any result. Ain't it P1020RDB? > > and

Re: [U-Boot] [PATCH v2] arm: cm4008, cm41xx: Fix ROM relocation

2012-07-05 Thread Andreas Bießmann
Dear Yann Vernier, On 05.07.2012 15:22, Yann Vernier wrote: > Changed CONFIG_SYS_TEXT_BASE to actual address (required for > board_init_f) and moved it into cm4008.h, along with a warning that it > must match CONFIG_SYS_FLASH_BASE (since lowlevel_init relocates there). > lowlevel_init now uses CON

[U-Boot] [PATCH v3 11/11] arm/km: remove calls to kw_gpio_* in board_early_init_f

2012-07-05 Thread Holger Brunck
These functions tried to access two static tables before relocation (board_early_init_f is executed before relocation). But these static tables lie in the bss section which is not valid before relocation. These accesses then overwrote some parts of u-boot binary before it was relocated. For the kmn

[U-Boot] [PATCH v3 08/11] arm/km: skip FPGA config when already configured

2012-07-05 Thread Holger Brunck
From: Valentin Longchamp In order to be able to perform board resets without interrupting the traffic, the configuration of an already properly configured FPGA is skipped. This is because some PCIe FPGAs embed some other function that must continue to work over reset. It is then the responsibil

[U-Boot] [PATCH v3 02/11] arm/km: add kmcoge5un board support

2012-07-05 Thread Holger Brunck
For u-boot this board is similar to mgcoge3un. But some differences are present. We have a different SDRAM on it and therefore a new SDRAM config file. Additionaly this board has a direct MAC/MAC connection from the kirkwood to a marvell simple switch without a phy inbetween, this needs a new confi

[U-Boot] [PATCH v3 00/11] updates for Keymile Marvell boards

2012-07-05 Thread Holger Brunck
Changes for v3 in general: - remove the managed switch driver as requested on the ML cc: Holger Brunck cc: Valentin Longchamp cc: Prafulla Wadaskar Holger Brunck (6): arm/km: add kmnusa board support arm/km: add kmcoge5un board support arm/km: convert mgcoge3un target to km_kirkwood a

[U-Boot] [PATCH v3 01/11] arm/km: add kmnusa board support

2012-07-05 Thread Holger Brunck
This board is similar to portl2, but it has the u-boot environment in a SPI NOR flash and not in an i2c eeprom like portl2 have. Some other details: - IVM EEPROM is at adress: pca9547:70:9 - PCI is enabled - PIGGY4 is connected via MV88E6352 simple switch. There is no phy between the simple

[U-Boot] [PATCH v3 09/11] arm/km: support the 2 PCIe fpga resets

2012-07-05 Thread Holger Brunck
From: Valentin Longchamp The PCIe FPGAs now have to support 2 resets: one for the non traffic affecting part (PCIe) and one for the traffic affecting part. When the FPGA is not reconfigured, we only reset the PCIe part. Signed-off-by: Valentin Longchamp --- changes for v2 and v3: simply rebase

[U-Boot] [PATCH v3 06/11] arm/km: cleanup km_kirkwood boards

2012-07-05 Thread Holger Brunck
Remove config options from boards.cfg and simply add one switch per board and differ afterwards in km_kirkwood.h between the features. More boards are upcoming and therefore it's easier to have this at one place. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto

[U-Boot] [PATCH v3 05/11] arm/km: enable BOCO2 FPGA download support

2012-07-05 Thread Holger Brunck
From: Valentin Longchamp This adds a first support of the FPGA download for a PCIe FPGA based on the BOCO2 CPLD. This takes place in 3 steps, all done accessing the SPICTRL reg of the BOCO2: 1) start the FPGA config with an access to the FPGA_PROG bit 2) later in the boot sequence, wait for the

[U-Boot] [PATCH v3 10/11] arm/km: add implementation for read_dip_switch

2012-07-05 Thread Holger Brunck
From: Thomas Herzmann Add a function to read the dip_switch on kmcoge5un. If the switch is set the actual_bank is set to 0 and this SW is booted. Signed-off-by: Thomas Herzmann Signed-off-by: Holger Brunck --- changes for v2 and v3: rebased board/keymile/km_arm/km_arm.c | 14 +-

[U-Boot] [PATCH v3 04/11] arm/km: remove portl2.h and use km_kirkwood instead

2012-07-05 Thread Holger Brunck
The additional headerfile is unneeded here, we can use the generic km_kirkwood.h instead. And we can use the better config option KM_PIGGY4_88E6061 for the specific features for boards with this design in km_arm.c. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Fala

[U-Boot] [PATCH v3 03/11] arm/km: convert mgcoge3un target to km_kirkwood

2012-07-05 Thread Holger Brunck
Use the generic header km_kirkwood.h and get rid of the board specific header. changes for v2: rebased because of changes in other patches Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- changes for v2 and v3: rebased because of ch

[U-Boot] [PATCH v3 07/11] arm/km: redefine piggy 4 reg names to avoid conflicts

2012-07-05 Thread Holger Brunck
From: Valentin Longchamp Some very similar #defines for reg addresses are used in a later patch (managed_switch support for km_arm). Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- changes for v2 and v3: simply rebased board/keymile/km_arm/km_arm.c | 22 +

Re: [U-Boot] [PATCH v2] arm: cm4008, cm41xx: use common cfi_flash support

2012-07-05 Thread Andreas Bießmann
Dear Yann Vernier, a simple small change request. On 05.07.2012 15:11, Yann Vernier wrote: > This change allows use of other flash chips than the two supported by > the cm4008 flash.c. Tested with Micrel KSZ8695X demo board. > --- > Changes for v2: >- Update cm41xx also >- Remove unused b

Re: [U-Boot] [PATCH v2] arm: cm4008, cm41xx: set gd->ram_size in dram_init

2012-07-05 Thread Andreas Bießmann
On 05.07.2012 14:11, Yann Vernier wrote: > Leave dram_init_banksize to set up the bank info data. > ram_size was previously uninitialized. Also, generalize > lowlevel assembly to support more RAM options. > > Signed-off-by: Yann Vernier > --- > Changes for v2: >- Update to use CONFIG_SYS_SDRA

[U-Boot] [PATCH] armv7: Fix to mistake clean the memory space

2012-07-05 Thread Zhong Hongbo
From: Zhong Hongbo In currently, when __bss_start is equal to __bss_end__, The bss loop will clear all the things in memory space. But just only when __bss_end__ greater than __bss_start__, we do the clear bss section operation. Signed-off-by: Hongbo Zhong --- arch/arm/cpu/armv7/start.S |

[U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Gerlando Falauto
Some boards might be equipped with different SDRAM configurations. When that is the case, CPU CS Window Size Register (CS[0]n Size) should be set to the biggest value through board.cfg file; then its value can be fixed at runtime according to the detected SDRAM size. Therefore, implement kw_sdram_

[U-Boot] [PATCH 2/2] km_arm: enable SDRAM window size fixup

2012-07-05 Thread Gerlando Falauto
Size of the SDRAM chips might differ between any two (otherwise identical) instances of the same board. So change board_early_init_f() to use km_sdram_bs_set(), in order to fixup the window size register at runtime, according to the detected SDRAM size. Signed-off-by: Gerlando Falauto Cc: Valent

[U-Boot] Building U-Boot image with predefined environment

2012-07-05 Thread trh178
I am taking over a project originally done by somebody else and not documented at all. I am not very familiar with U-Boot in general, so I am effectively starting from scratch. My current issue is this: I have a U-Boot image that I can load onto my board that, upon start, says it is autobooting a

Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un target to km_kirkwood

2012-07-05 Thread Prafulla Wadaskar
> -Original Message- > From: Holger Brunck [mailto:holger.bru...@keymile.com] > Sent: 05 July 2012 19:14 > To: Prafulla Wadaskar > Cc: Wolfgang Denk; u-boot@lists.denx.de; Valentin Longchamp > Subject: Re: [U-Boot] [PATCH v2 03/14] arm/km: convert mgcoge3un > target to km_kirkwood > > On

  1   2   >