[U-Boot] [PATCH 2/3] mxc_spi: change to use version config instead of soc config in mxc_spi

2012-08-14 Thread Terry Lv
In mxc_spi, we used to use soc config, e.g. CONFIG_MX35, CONFIG_MX51. In this way, we can't exlain the difference of spi in each soc and we need to modify the driver for each new soc. Thus, now it use spi version config which can be found in reference manual to diff. And new soc just need to add s

Re: [U-Boot] [PATCH 0/3] at91: atmel_nand: add PMECC(Programmable Multibit ECC controller) support

2012-08-14 Thread Josh Wu
Hi, Andreas Sorry, in these patches of current version, it still has a bug, which will fail to write with PMECC, I will send out the v2 patch soon which include this bug fix. Best Regards, Josh Wu On 8/9/2012 6:21 PM, Josh Wu wrote: This patch series will add PMECC support for atmel nand dr

Re: [U-Boot] [PATCH 1/4] spi_nor: add m25p32 spi nor driver

2012-08-14 Thread Lv Terry-R65388
Sorry for that I don't know m25p32 spi nor supported in stmicro. I've thought that this might be a new driver for new chips. That's ok. Then I'll summit mx53smd spi nor patches with stmicro. -Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Be

[U-Boot] [PATCH 3/3] mxc_spi: apply new mxc_spi version configs to other soc configs

2012-08-14 Thread Terry Lv
Apply new mxc_spi version configs to other soc configs. Signed-off-by: Terry Lv --- arch/arm/include/asm/arch-mx31/imx-regs.h |4 include/configs/efikamx.h |4 include/configs/flea3.h |3 +++ include/configs/imx31_litekit.h |5

[U-Boot] [PATCH 1/3] mx53_smd: add spi nor support

2012-08-14 Thread Terry Lv
Add spi nor support to mx53 smd, including iomux, configs, etc. To test spi nor on mx53 smd: MX53SMD U-Boot > sf probe 0:21249 JEDEC ID: 0x202016 m25p32 (4096 Kbytes) SF: Detected m25p32 with page size 0 Bytes, total 4 MiB Here, 21249 is integer of hex 0x5301. 0x01 is cs and 0x53 is active gpio nu

Re: [U-Boot] [PATCH] ARM : at91sam9x5 : Remove CONFIG_ARCH_CPU_INIT

2012-08-14 Thread Andreas Bießmann
Dear Bo Shen, On 15.08.12 04:48, Bo Shen wrote: > Remove CONFIG_ARCH_CPU_INIT, no need it anymore > > > Signed-off-by: Bo Shen > --- applied to u-boot-atmel/master, thanks! Best regards Andreas Bießmann ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] dlmalloc: remove manual reloc alias warning

2012-08-14 Thread Andreas Bießmann
Dear Simon Glass, On 15.08.12 02:15, Simon Glass wrote: > Hi, > > On Tue, Aug 14, 2012 at 1:50 AM, Andreas Bießmann > wrote: >> Dear all, >> >> On 13.08.2012 11:02, Andreas Bießmann wrote: >>> From: Andreas Bießmann >>> >>> The avr32 architecture (and some others) require manual relocation. Due

Re: [U-Boot] [PATCH] mx25: Clean up lowlevel_init

2012-08-14 Thread Matthias Weißer
Dear Benoît Am 14.08.2012 23:25, schrieb Benoît Thébaudeau: Clean up mx25 lowlevel_init: - Add comments. - Do not use write32 repeatedly with the same value in order no to increase code size. - Make register values configurable. - Use defined values instead of literal constants. -

[U-Boot] [PATCH] u-boot yaffs2: Fix compilation warnings

2012-08-14 Thread Charles Manning
Also remove yaffs_hweight and use the hweight in u-boot. Signed-off-by: Charles Manning --- fs/yaffs2/Makefile|2 +- fs/yaffs2/stdio.h |1 - fs/yaffs2/stdlib.h|1 - fs/yaffs2/string.h|4 --- fs/yaffs2/yaffs_hweight.c | 52

Re: [U-Boot] [PATCH] YAFFS2: Fix compiler errors preventing successful build

2012-08-14 Thread Charles Manning
On Wednesday 15 August 2012 08:16:22 Marek Vasut wrote: > > Signed-off-by: Marek Vasut > Cc: Charles Manning > Cc: Wolfgang Denk While I appreciate this, I would prefer the use the patch I submitted today which also gets rid of the yaffs hweight code too. -- CHarles

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-14 Thread Steve Heckman
Marek, I've been working with Jim on this. The latest u-boot code we tried (2012.07) does seem to be much faster WRT reading ext volumes from USB media. We were still able to eke out a bit more speed by removing the Test Unit Ready calls per Read/Write. In my experience, you only call Test Unit R

[U-Boot] [PATCH] ARM : at91sam9x5 : Remove CONFIG_ARCH_CPU_INIT

2012-08-14 Thread Bo Shen
Remove CONFIG_ARCH_CPU_INIT, no need it anymore Signed-off-by: Bo Shen --- include/configs/at91sam9x5ek.h |2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h index f8bd870..82f6b48 100644 --- a/include/configs/at91sam9x5ek.h ++

Re: [U-Boot] [PATCH v2] Makefile: fix HAVE_VENDOR_COMMON_LIB

2012-08-14 Thread Kim Phillips
On Tue, 14 Aug 2012 13:44:29 +0200 Daniel Schwierzeck wrote: > From: Scott Wood > > Commit 8b5a02640adf77301f943e8754992c50df004e8a ("Makefile: cosmetic: > optimize usage of LIBS-y") broke the build of boards that have a board > vendor "common" directory, by introducing a space between "LIBS-"

Re: [U-Boot] [PATCH] dlmalloc: remove manual reloc alias warning

2012-08-14 Thread Simon Glass
Hi, On Tue, Aug 14, 2012 at 1:50 AM, Andreas Bießmann wrote: > Dear all, > > On 13.08.2012 11:02, Andreas Bießmann wrote: >> From: Andreas Bießmann >> >> The avr32 architecture (and some others) require manual relocation. Due to >> the >> previous error all avr32 boards gave warnings in MAKEALL

Re: [U-Boot] Early malloc() summary

2012-08-14 Thread Marek Vasut
Dear Graeme Russ, [...] > > Third path is dm_malloc() - Although ugly, it has a few nicities... Thinking about dm_malloc() ... if it's entirely different, the semantics can be adjusted too ... say to "int dm_malloc(void **ptr, size_t size);": - return int: error code - **ptr: pointer to alloc

Re: [U-Boot] [PATCH 1/3] powerpc/fsl-corenet: remove dead variant symbols

2012-08-14 Thread Scott Wood
On 08/14/2012 04:31 PM, Kumar Gala wrote: > > On Aug 14, 2012, at 3:14 PM, Scott Wood wrote: > >> These are not supported as individual build targets, but instead >> are supported by another target. >> >> The dead p4040 defines in particular had bitrotted significantly. >> >> Signed-off-by: Scott

Re: [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)

2012-08-14 Thread Kumar Gala
On Aug 14, 2012, at 8:42 AM, Kumar Gala wrote: > > On Aug 10, 2012, at 4:46 PM, Wolfgang Denk wrote: > >> Dear Horst Kronstorfer, >> >> In message <1342097912-8652-1-git-send-email-hkron...@frequentis.com> you >> wrote: >>> Make sure that $(LDSCRIPT) is not empty before calling process_lds >>

Re: [U-Boot] [PATCH v2 3/3] Makefile: cosmetic: optimize usage of LIBS-y

2012-08-14 Thread Kumar Gala
On Aug 14, 2012, at 8:52 AM, Kumar Gala wrote: > > On Aug 10, 2012, at 4:17 PM, Wolfgang Denk wrote: > >> Dear daniel.schwierz...@gmail.com, >> >> In message <1342741198-9105-1-git-send-email-daniel.schwierz...@gmail.com> >> you wrote: >>> From: Daniel Schwierzeck >>> >>> Signed-off-by: Dan

Re: [U-Boot] [PATCH 1/3] powerpc/fsl-corenet: remove dead variant symbols

2012-08-14 Thread Kumar Gala
On Aug 14, 2012, at 3:14 PM, Scott Wood wrote: > These are not supported as individual build targets, but instead > are supported by another target. > > The dead p4040 defines in particular had bitrotted significantly. > > Signed-off-by: Scott Wood > --- > arch/powerpc/cpu/mpc85xx/Makefile

Re: [U-Boot] [PATCHv2 1/2] mpc85xx: Initial SP alignment is wrong.

2012-08-14 Thread Kumar Gala
On Jul 23, 2012, at 3:58 PM, Joakim Tjernlund wrote: > PowerPC mandates SP to be 16 bytes aligned. > Furthermore, a stack frame is added, pointing to the reset vector > which may in the way when gdb is walking the stack because > the reset vector may not accessible depending on emulator settings.

[U-Boot] [PATCH] mx25: Clean up lowlevel_init

2012-08-14 Thread Benoît Thébaudeau
Clean up mx25 lowlevel_init: - Add comments. - Do not use write32 repeatedly with the same value in order no to increase code size. - Make register values configurable. - Use defined values instead of literal constants. - Use defined macros instead of duplicating code. Signed-off-by: Benoî

Re: [U-Boot] [PATCHv2 1/2] mpc85xx: Initial SP alignment is wrong.

2012-08-14 Thread Scott Wood
On 08/14/2012 03:55 PM, Joakim Tjernlund wrote: > Ping? > >> >> PowerPC mandates SP to be 16 bytes aligned. >> Furthermore, a stack frame is added, pointing to the reset vector >> which may in the way when gdb is walking the stack because >> the reset vector may not accessible depending on emulato

[U-Boot] [PATCH 3/3] mx35: Clean up lowlevel_init

2012-08-14 Thread Benoît Thébaudeau
Clean up mx35 lowlevel_init: - Indent with tabs. - Fix comments. - Use defined values instead of literal constants. - Use defined macros instead of duplicating code. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arm/include/asm/arch-mx35/lowlevel_macro.S | 153

[U-Boot] [PATCH 2/3] mx35: Define MAX and AIPS registers

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/asm-offsets.c| 33 - .../arch/arm/include/asm/arch-mx35/imx-regs.h | 52 2 files changed, 84 insertions(+), 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch/ar

[U-Boot] [PATCH 1/3] mx35: Remove duplicate GPIO3_BASE_ADDR

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/imx-regs.h |1 - 1 file changed, 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/imx-regs.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/imx-regs.h index 3146006..5cb

Re: [U-Boot] [PATCHv2 2/2] powerpc: Stack Pointer not properly aligned

2012-08-14 Thread Joakim Tjernlund
Ping? > > The code first aligns the SP to 16 then subtract 8, making it > 8 bytes aligned. Furthermore the initial stack frame not > quite correct either. > > Signed-off-by: Joakim Tjernlund > --- > > v2 - Address Scott Wood's comments > > arch/powerpc/lib/board.c |5 ++--- > 1 files chang

Re: [U-Boot] [PATCHv2 1/2] mpc85xx: Initial SP alignment is wrong.

2012-08-14 Thread Joakim Tjernlund
Ping? > > PowerPC mandates SP to be 16 bytes aligned. > Furthermore, a stack frame is added, pointing to the reset vector > which may in the way when gdb is walking the stack because > the reset vector may not accessible depending on emulator settings. > Also use a temp register so gdb doesn't pic

[U-Boot] [PATCH 1/1] lib, panic: don't call do_reset in SPL (debug).

2012-08-14 Thread Jeroen Hofstee
Several omap boards won't build when DEBUG is defined, SPL build error: "vsprintf.c:791: undefined reference to `do_reset'", since SPL has no commands. Therefore don't call do_reset in SPL. SPL panic will end in an endless loop or call hang if CONFIG_PANIC_HANG is defined. cc: Tom Rini Signed-of

Re: [U-Boot] [PATCH v2] arm: omap: Fix switching back to nandecc sw.

2012-08-14 Thread Jeroen Hofstee
Orjan Friberg wrote at [1]: "For the beagleboard, ecc.size is not explicitly set when doing 'nandecc sw'. If it's not set for the NAND_ECC_SOFT case in nand_scan_tail, it's set to 256 bytes. When doing 'nandecc hw', ecc.size is set to 512 bytes. Hence, when changing back to 'nandecc sw' ecc.size

[U-Boot] [PATCH 0/1] fix some SPL debug builds.

2012-08-14 Thread Jeroen Hofstee
Some boards with SPL fail to build with DEBUG defined. This patch should fix the "undefined reference to `do_reset'". before with -DDEBUG - SUMMARY Boards compiled: 303 Boards with errors: 44 ( da850_am18xxevm da850evm spear300 spear300_nand spear3

[U-Boot] [PATCH v2] arm: omap: Fix switching back to nandecc sw.

2012-08-14 Thread Jeroen Hofstee
version 2: Updated the commit message to include the explanation from the original thread. For cosmetic reasons, move the added line 2 lines down, so it is similiar to the hw case. Add original author and maintainer on cc. Jeroen Hofstee (1): arm: omap2+: Fix switching bac

[U-Boot] [PATCH 1/3] powerpc/fsl-corenet: remove dead variant symbols

2012-08-14 Thread Scott Wood
These are not supported as individual build targets, but instead are supported by another target. The dead p4040 defines in particular had bitrotted significantly. Signed-off-by: Scott Wood --- arch/powerpc/cpu/mpc85xx/Makefile |3 -- arch/powerpc/include/asm/config_mpc85xx.h | 68

[U-Boot] [PATCH 7/7] mx35: Add cpu_mmc_init()

2012-08-14 Thread Benoît Thébaudeau
Add cpu_mmc_init() function to make it easy to init a single eSDHC instance. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c| 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch

[U-Boot] [PATCH 6/7] mx35: Fix eSDHC clocks

2012-08-14 Thread Benoît Thébaudeau
Each eSDHC instance has a dedicated clock. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c| 14 -- .../arch/arm/include/asm/arch-mx35/clock.h |4 +++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --g

[U-Boot] [PATCH 5/7] mx35: Fix clock dividers

2012-08-14 Thread Benoît Thébaudeau
The clock dividers that were used do not match at all the reference manual. They were either completely broken, or came from an early silicon revision incompatible with the current one. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c|

[U-Boot] [PATCH 4/7] mx35: Add definitions for clock gate values

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/crm_regs.h |6 ++ 1 file changed, 6 insertions(+) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/crm_regs.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/crm_regs.h index e903c

[U-Boot] [PATCH 3/7] mx35: Fix decode_pll

2012-08-14 Thread Benoît Thébaudeau
The MFN bit-field of the PLL registers represents a signed value. See the reference manual. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c|9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git u-boot-4d3c95f.orig

[U-Boot] [PATCH 2/7] mx35: Remove declaration of non-existing function

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/clock.h |2 -- 1 file changed, 2 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/clock.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/clock.h index 5dc53ba..e94f124

[U-Boot] [PATCH 1/7] mx35: Move clock enums to clock.h

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c|4 +-- .../arch/arm/include/asm/arch-mx35/clock.h | 28 +++- .../arch/arm/include/asm/arch-mx35/imx-regs.h | 26 -- 3 files changed, 29

Re: [U-Boot] [PATCH] COMMON: Fix HAVE_VENDOR_COMMON_LIB mistake

2012-08-14 Thread Marek Vasut
Dear Daniel Schwierzeck, > Hi Marek, > > 2012/8/14 Marek Vasut : > > The conditional clause assigning HAVE_VENDOR_COMMON_LIB generated > > " y" instead of "y", causing the vendor lib not being built. This > > in turn made some spear boards and nvidia boards broken. > > > > Signed-off-by: Marek V

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Marek Vasut
Dear Michal Simek, > On 08/14/2012 08:19 PM, Joe Hershberger wrote: > > Hi Michal, [...] CUT! > Marek: I believe you are going to change all timer drivers. Are you going > to move all of them to generic location? I'm not moving timer drivers in the first wave, so hacking on them should be safe

[U-Boot] [PATCH] YAFFS2: Fix compiler errors preventing successful build

2012-08-14 Thread Marek Vasut
These warnings still persist: yaffs_guts.c: In function ‘yaffs_check_chunk_erased’: yaffs_guts.c:324:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ‘yaffs_verify_chunk_written’: yaffs_guts.c:352:6: warning: variable ‘result’ set but not used

[U-Boot] [PATCH 3/3] powerpc/fsl-corenet: work around erratum A004510

2012-08-14 Thread Scott Wood
Erratum A004510 says that under certain load conditions, modified cache lines can be discarded, causing data corruption. To work around this, several CCSR and DCSR register updates need to be made in a careful manner, so that there is no other transaction in corenet when the update is made. The u

[U-Boot] [PATCH 2/3] powerpc/85xx: clear out TLB on boot

2012-08-14 Thread Scott Wood
Instead of just shooting down the entry that covers CCSR, clear out every TLB entry that isn't the one that we're executing out of. Signed-off-by: Scott Wood --- arch/powerpc/cpu/mpc85xx/start.S | 76 +++--- arch/powerpc/include/asm/mmu.h |4 ++ arch/p

Re: [U-Boot] [PATCH] COMMON: Fix HAVE_VENDOR_COMMON_LIB mistake

2012-08-14 Thread Daniel Schwierzeck
Hi Marek, 2012/8/14 Marek Vasut : > The conditional clause assigning HAVE_VENDOR_COMMON_LIB generated > " y" instead of "y", causing the vendor lib not being built. This > in turn made some spear boards and nvidia boards broken. > > Signed-off-by: Marek Vasut > Cc: Wolfgang Denk > Cc: Daniel Sch

[U-Boot] [PATCH] mx35 timer: Switch to 32-kHz source

2012-08-14 Thread Benoît Thébaudeau
Switch the mx35 timer driver to the 32-kHz clock source to avoid calling mxc_get_clock() again and again, and to be consistent with the timer drivers of other i.MX SoCs. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/timer.c | 43

[U-Boot] [PATCH 6/6] mx35: Use default pin initializers

2012-08-14 Thread Benoît Thébaudeau
Use the newly created mx35 default pin initialization functions in mx35 board files. Note that this disables the init of i2c1 pins on flea3 because i2c1 is not enabled in flea3.h. This should not be an issue if the kernel sets up pins properly. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic

[U-Boot] [PATCH 5/6] mx35: Add default pin initializers

2012-08-14 Thread Benoît Thébaudeau
Create default pin initialization functions for the default iomux function assignments of the main peripherals. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/generic.c| 206 .../arch/arm/include/asm/arch-mx35/sys_proto.h

[U-Boot] [PATCH 4/6] mx35: Remove declaration of non-existing function

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/sys_proto.h |1 - 1 file changed, 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/sys_proto.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/sys_proto.h index 422eb52..9

[U-Boot] [PATCH 3/6] mx35: Fix broken pin definitions

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/mx35_pins.h |3 --- .../board/CarMediaLab/flea3/flea3.c|4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/mx

[U-Boot] [PATCH 2/6] mx35 gpio: Homogenize register naming

2012-08-14 Thread Benoît Thébaudeau
mxc_gpio.c uses a 'gpio_' prefix for the dr and dir registers, so use it for the other gpio registers too. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx35/gpio.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --g

[U-Boot] [PATCH 1/6] mx35 iomux: Remove unused macro

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx35/iomux.c |2 -- 1 file changed, 2 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/arm1136/mx35/iomux.c u-boot-4d3c95f/arch/arm/cpu/arm1136/mx35/iomux.c index f93191d..a302575 100644 --

[U-Boot] [PATCH] COMMON: Fix HAVE_VENDOR_COMMON_LIB mistake

2012-08-14 Thread Marek Vasut
The conditional clause assigning HAVE_VENDOR_COMMON_LIB generated " y" instead of "y", causing the vendor lib not being built. This in turn made some spear boards and nvidia boards broken. Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Daniel Schwierzeck --- Makefile |2 +- 1 file change

Re: [U-Boot] [PATCH 1/1] USB: Fix strict aliasing in ohci-hcd

2012-08-14 Thread Marek Vasut
Dear Troy Kisky, > On 8/14/2012 10:33 AM, Marek Vasut wrote: > > Dear Troy Kisky, > > > >> commit 5f6aa03fda2a0a79940765865c1e4266be8a75f8 > >> > >> USB: Fix complaints about strict aliasing in OHCI-HCD > >> > >> tried to fix this, but gcc4.4 still complains. So, this > >> patch basically

Re: [U-Boot] [PATCH 03/10] mx5 clocks: Add and use CCSR definitions

2012-08-14 Thread Marek Vasut
Dear Benoît Thébaudeau, > Dear Marek Vasut, > > > Dear Benoît Thébaudeau, > > > > > This fixes config_pll_clk(), which used 0x20 instead of 0x200 for > > > PLL4_CLOCK. > > > > > > Signed-off-by: Benoît Thébaudeau > > > Cc: Stefano Babic > > > --- > > > > > > .../arch/arm/cpu/armv7/mx5/clock

Re: [U-Boot] [PATCH 3/3] Makefile: cosmetic: optimize usage of LIBS-y

2012-08-14 Thread Marek Vasut
Dear Daniel Schwierzeck, > Signed-off-by: Daniel Schwierzeck > --- > Makefile | 18 +++--- > 1 file changed, 7 insertions(+), 11 deletions(-) > > diff --git a/Makefile b/Makefile > index 2bde73c..cf3c56d 100644 > --- a/Makefile > +++ b/Makefile > @@ -225,15 +225,15 @@ endif > > OB

Re: [U-Boot] [PATCH 03/10] mx5 clocks: Add and use CCSR definitions

2012-08-14 Thread Benoît Thébaudeau
Dear Marek Vasut, > Dear Benoît Thébaudeau, > > > This fixes config_pll_clk(), which used 0x20 instead of 0x200 for > > PLL4_CLOCK. > > > > Signed-off-by: Benoît Thébaudeau > > Cc: Stefano Babic > > --- > > .../arch/arm/cpu/armv7/mx5/clock.c | 34 > > +--- ...

Re: [U-Boot] [PATCH 02/10] mx5: Use explicit clock gate names

2012-08-14 Thread Benoît Thébaudeau
Dear Marek Vasut, > Dear Benoît Thébaudeau, > > > Use clock gate definitions having names showing clearly the gated > > clock > > instead of names giving only a register field index. > > > > This change reveals that the USB PHY clock functions were broken on > > i.MX51, > > so this patch fixes t

Re: [U-Boot] [PATCH 03/10] mx5 clocks: Add and use CCSR definitions

2012-08-14 Thread Marek Vasut
Dear Benoît Thébaudeau, > This fixes config_pll_clk(), which used 0x20 instead of 0x200 for > PLL4_CLOCK. > > Signed-off-by: Benoît Thébaudeau > Cc: Stefano Babic > --- > .../arch/arm/cpu/armv7/mx5/clock.c | 34 > +--- .../arch/arm/include/asm/arch-mx5/crm_regs

Re: [U-Boot] [PATCH 02/10] mx5: Use explicit clock gate names

2012-08-14 Thread Marek Vasut
Dear Benoît Thébaudeau, > Use clock gate definitions having names showing clearly the gated clock > instead of names giving only a register field index. > > This change reveals that the USB PHY clock functions were broken on i.MX51, > so this patch fixes those too. Expanding CC /wrt this mx51 us

Re: [U-Boot] [PATCH 1/1] USB: Fix strict aliasing in ohci-hcd

2012-08-14 Thread Troy Kisky
On 8/14/2012 10:33 AM, Marek Vasut wrote: Dear Troy Kisky, commit 5f6aa03fda2a0a79940765865c1e4266be8a75f8 USB: Fix complaints about strict aliasing in OHCI-HCD tried to fix this, but gcc4.4 still complains. So, this patch basically reverts the above and does a simpler fix. also, the abo

Re: [U-Boot] [PATCH 2/3] Makefile: replace LIBS by LIBS-y

2012-08-14 Thread Marek Vasut
Dear Wolfgang Denk, > Dear Daniel Schwierzeck, > > In message <1340901921-9868-3-git-send-email-daniel.schwierz...@gmail.com> > you wrote: > > Synchronize with ALL-y handling and code in spl/Makefile. > > > > Signed-off-by: Daniel Schwierzeck > > --- > > > > Makefile | 134 > >

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Michal Simek
On 08/14/2012 08:19 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 12:39 PM, Michal Simek wrote: On 08/14/2012 07:15 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: On 08/14/2012 06:41 PM, Joe Hershberger wrote: Hi Michal, On

[U-Boot] [PATCH] Fix mx31_decode_pll

2012-08-14 Thread Benoît Thébaudeau
The MFN bit-field of the PLL registers represents a signed value. See the reference manual. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm1136/mx31/generic.c|8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git u-boot-4d3c95f.orig/

Re: [U-Boot] Redundant Env

2012-08-14 Thread Sridhar Addagada
opps! defined DEVICE2_OFFSET as #define DEVICE2_OFFSET    DEVICE1_OFFSET+ENV1_SIZE Thanks S From: Sridhar Addagada To: "u-boot@lists.denx.de" Sent: Tuesday, August 14, 2012 11:09 PM Subject: Redundant Env When enabling HAVE_REDUND in uboot-tools, will it

[U-Boot] [PATCH] mx31: Add more CCM access macros

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx31/imx-regs.h | 10 ++ 1 file changed, 10 insertions(+) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx31/imx-regs.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx31/imx-regs.h index

[U-Boot] [PATCH] mx31: Fix PDR0_CSI_PODF

2012-08-14 Thread Benoît Thébaudeau
The CSI PODF bit-field used by the previous code for the i.MX31 CCM PDR0 register is actually composed of two bit-fields: one pre-divider and one post-divider. This patch fixes the CCM access macros and the code using them accordingly. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 12:39 PM, Michal Simek wrote: > On 08/14/2012 07:15 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: >>> >>> On 08/14/2012 06:41 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14

[U-Boot] [PATCH 10/10] mx5 clocks: Fix MXC_FEC_CLK

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/armv7/mx5/clock.c u-boot-4d3c95f/arch/arm/cpu/armv7/mx5/clock.c index a0339f6..df

[U-Boot] [PATCH 09/10] mx5 clocks: Fix eSDHC clock

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/imx-common/speed.c |6 --- .../arch/arm/cpu/armv7/mx5/clock.c | 52 .../arch/arm/include/asm/arch-mx5/clock.h |4 ++ 3 files changed, 56 insertions(+), 6

[U-Boot] [PATCH 08/10] mx5 clocks: Simplify imx_get_cspiclk()

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 26 +++- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/armv7/mx5/clock.c u-boot-4d3c95f/arch/arm/cpu/armv7/mx5/clock.c in

[U-Boot] [PATCH 07/10] mx5 clocks: Fix get_uart_clk()

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 45 1 file changed, 27 insertions(+), 18 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/armv7/mx5/clock.c u-boot-4d3c95f/arch/arm/cpu/armv7/mx5/clock.c i

[U-Boot] [PATCH 06/10] mx5 clocks: Fix get_ipg_per_clk()

2012-08-14 Thread Benoît Thébaudeau
This fixes the "IPG PERCLK" frequency printed by the clocks command. It also fixes i2c support. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git u-boot-4d3c9

[U-Boot] [PATCH 05/10] mx5 clocks: Fix get_periph_clk()

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 42 ++-- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/armv7/mx5/clock.c u-boot-4d3c95f/arch/arm/cpu/armv7/mx5/clock.c i

[U-Boot] [PATCH 04/10] mx5 clocks: Fix get_lp_apm()

2012-08-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 24 +++- .../arch/arm/include/asm/arch-mx5/crm_regs.h | 13 +++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch/arm/

[U-Boot] [PATCH 03/10] mx5 clocks: Add and use CCSR definitions

2012-08-14 Thread Benoît Thébaudeau
This fixes config_pll_clk(), which used 0x20 instead of 0x200 for PLL4_CLOCK. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/armv7/mx5/clock.c | 34 +--- .../arch/arm/include/asm/arch-mx5/crm_regs.h | 17 ++ 2 files cha

[U-Boot] [PATCH 02/10] mx5: Use explicit clock gate names

2012-08-14 Thread Benoît Thébaudeau
Use clock gate definitions having names showing clearly the gated clock instead of names giving only a register field index. This change reveals that the USB PHY clock functions were broken on i.MX51, so this patch fixes those too. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic Cc: Marek Va

[U-Boot] [PATCH 01/10] mx5: Undeclare imx_decode_pll()

2012-08-14 Thread Benoît Thébaudeau
The imx_decode_pll() function does not exist for mx5, so remove its declaration. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/include/asm/arch-mx5/clock.h |2 -- 1 file changed, 2 deletions(-) diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx5/cloc

[U-Boot] [PATCH 00/10] mx5: Fix clocks

2012-08-14 Thread Benoît Thébaudeau
Hi all, This series fixes the mx5 clocks. The previous code was full of bugs and missing parts. There is nothing special to say for each patch. Everything comes from the reference manuals. Best regards, Benoît ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-14 Thread Steve Heckman
Marek, That looks good to me. Jim? Thanks, Steve On Tue, Aug 14, 2012 at 1:50 PM, Marek Vasut wrote: > Dear Jim Shimer, > > > Hi Marek, > > > > Here's a patch. > > > > -Jim > [...] > > I applied modified patch, please check u-boot-usb.git if you agree. > > btw please read http://www.denx.de/wi

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-14 Thread Marek Vasut
Dear Jim Shimer, > Hi Marek, > > Here's a patch. > > -Jim [...] I applied modified patch, please check u-boot-usb.git if you agree. btw please read http://www.denx.de/wiki/U-Boot/Patches Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-14 Thread Marek Vasut
Dear Steve Heckman, > Marek, > > I've been working with Jim on this. > > The latest u-boot code we tried (2012.07) does seem to be much faster > WRT reading ext volumes from USB media. We were still able to eke > out a bit more speed by removing the Test Unit Ready calls per Read/Write. > In my

[U-Boot] Redundant Env

2012-08-14 Thread Sridhar Addagada
When enabling HAVE_REDUND in uboot-tools, will it work if i have the redundant partition in the same sector #define DEVICE1_NAME  "/dev/mtd1" #define DEVICE2_NAME  "/dev/mtd1" #define DEVICE1_OFFSET    0x0 #define ENV1_SIZE 0x1 #define DEVICE1_ESIZE 0x2 #define DE

Re: [U-Boot] smc911x and CONFIG_NET_MULTI

2012-08-14 Thread Mike Frysinger
On Tuesday 14 August 2012 12:25:34 Dimitar Penev wrote: > We have developed a custom blackfin board having two LAN9218 chips on > board. Is the available smc911x driver tested with multiple network chips > on board? all net drivers have been converted to net multi a long time ago. > The base addr

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Michal Simek
On 08/14/2012 07:15 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: On 08/14/2012 06:41 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote: On 08/14/2012 05:36 PM, Joe Hershberger wrote: Hi Michal, On

Re: [U-Boot] [PATCH 1/1] USB: Fix strict aliasing in ohci-hcd

2012-08-14 Thread Marek Vasut
Dear Troy Kisky, > commit 5f6aa03fda2a0a79940765865c1e4266be8a75f8 > USB: Fix complaints about strict aliasing in OHCI-HCD > > tried to fix this, but gcc4.4 still complains. So, this > patch basically reverts the above and does a simpler fix. > > also, the above commit incorrectly changed >

Re: [U-Boot] [PATCH v2 1/1] USB: EHCI: Initialize multiple USB controllers at once

2012-08-14 Thread Marek Vasut
Dear Stephen Warren, > On 08/13/2012 10:22 PM, Jim Lin wrote: > > Marek Vasut wrote at Sunday, August 12, 2012 7:47 AM: > >> Dear Jim Lin, > >> > >>> Add support for command line "usb reset" or "usb start" to initialize > >>> , "usb stop" to stop multiple USB controllers at once. > >>> Other comm

Re: [U-Boot] [PATCH v2 1/1] USB: EHCI: Initialize multiple USB controllers at once

2012-08-14 Thread Marek Vasut
Dear Jim Lin, > >-Original Message- > >From: Marek Vasut [mailto:ma...@denx.de] > >Sent: Sunday, August 12, 2012 7:47 AM > >To: Jim Lin > >Cc: u-boot@lists.denx.de; Wolfgang Denk; Tom Warren > >Subject: Re: [U-Boot] [PATCH v2 1/1] USB: EHCI: Initialize multiple USB > >controllers at once >

Re: [U-Boot] [PATCH 1/4] serial: Add Dragonfire serial driver

2012-08-14 Thread Michal Simek
On 08/14/2012 06:45 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek wrote: On 08/14/2012 04:09 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: The driver is used on Xilinx Zynq platform. Signed-off-by: Micha

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 12:11 PM, Michal Simek wrote: > On 08/14/2012 06:41 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote: >>> >>> On 08/14/2012 05:36 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14

Re: [U-Boot] [PATCH 3/4] arm: Support new Xilinx Zynq platform

2012-08-14 Thread Michal Simek
On 08/14/2012 06:41 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 11:28 AM, Michal Simek wrote: On 08/14/2012 05:36 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: Add timer driver. Signed-off-by: Michal Simek --- arch/arm/c

Re: [U-Boot] [PATCH 2/4] net: Add driver for Zynq Gem IP

2012-08-14 Thread Michal Simek
Hi Joe, On 08/14/2012 04:59 PM, Joe Hershberger wrote: Hi Michal, On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: Device driver for Zynq Gem IP. Signed-off-by: Michal Simek CC: Joe Hershberger --- drivers/net/Makefile |1 + drivers/net/xilinx_gem.c | 514 ++

Re: [U-Boot] [PATCH] snowball: Adding architecture dependent initialisation

2012-08-14 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/14/2012 07:11 AM, mathieu.poir...@linaro.org wrote: > From: "Mathieu J. Poirier" > > Enabling timers and clocks in PRCMU and cleaning up mailbox. > > Signed-off-by: Mathieu Poirier > Signed-off-by: John Rigby --- Changes for > v2: - Remove

[U-Boot] [PATCH 1/7] powerpc/85xx: add support for FM2 DTSEC5

2012-08-14 Thread Timur Tabi
Unlike previous SOCs, the Freescale P5040 has a fifth DTSEC on the second Fman, so add the Fman and SerDes macros for that DTSEC. Signed-off-by: Timur Tabi --- arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c |6 ++ arch/powerpc/include/asm/fsl_serdes.h |1 + arch/powerpc/includ

[U-Boot] [PATCH 6/7] powerpc/85xx: update P4080DS MDIO bus multiplexer support

2012-08-14 Thread Timur Tabi
The Freescale P4080DS has a complex multiplexed MDIO bus, where the muxing varies per SerDes protocol. This is because the protocol determines in which PCI slot the various SGMII and XGMII interface cards belong, as well as whether the RGMII ports are enabled. The Freescale SDK includes support f

[U-Boot] [PATCH 3/7] [v2] powerpc/85xx: introduce function serdes_device_from_fm_port()

2012-08-14 Thread Timur Tabi
In order to figure out which SerDes lane a given Fman port is connected to, we need a function that maps the fm_port namespace to the srds_prtcl namespace. Signed-off-by: Timur Tabi --- board/freescale/common/fman.c | 31 +++ board/freescale/common/fman.h |2 ++

[U-Boot] [PATCH 4/7] fm-eth: use fdt_status_disabled() function in ft_fixup_port()

2012-08-14 Thread Timur Tabi
We have a dedicated function for setting the node status now, so use it. Also improve a comment and fix the type of the phandle variable. Signed-off-by: Timur Tabi --- drivers/net/fm/init.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/fm/init.c b

[U-Boot] [PATCH 2/7] fm-eth: add function fm_info_get_phy_address()

2012-08-14 Thread Timur Tabi
Function fm_info_get_phy_address() returns the PHY address for a given Fman port. This is handy when the MDIO code needs to fixup the Ethernet nodes in the device tree to point to PHY nodes for a specific PHY address. Signed-off-by: Timur Tabi --- drivers/net/fm/init.c | 16

[U-Boot] [PATCH 5/7] powerpc/85xx: get rid of enum board_slots in P4080 MDIO driver

2012-08-14 Thread Timur Tabi
enum board_slots contained six values, where SLOT1 == 1, SLOT2 == 2, and so on. This is pointless, so remove it. Also move the lane_to_slot[] array to the top of the file so that it can be used by other functions. Signed-off-by: Timur Tabi --- board/freescale/corenet_ds/eth_p4080.c | 59

Re: [U-Boot] [PATCH 1/4] serial: Add Dragonfire serial driver

2012-08-14 Thread Joe Hershberger
Hi Michal, On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek wrote: > On 08/14/2012 04:09 PM, Joe Hershberger wrote: >> >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 6:42 AM, Michal Simek wrote: >>> >>> The driver is used on Xilinx Zynq platform. >>> >>> Signed-off-by: Michal Simek >>> --- >>> dri

  1   2   3   >