[U-Boot] [PATCH] armv7: s5pc1xx: don't use function pointer for clock functions

2010-12-27 Thread Minkyu Kang
Because of the bss area is cleared after relocation, we've lost pointers. This patch fixed it. Signed-off-by: Minkyu Kang mk7.k...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/cpu/armv7/s5p-common/cpu_info.c |2 - arch/arm/cpu/armv7/s5pc1xx/clock.c |

Re: [U-Boot] {Spam?} u-boot relocation

2010-12-27 Thread Albert ARIBAUD
Le 26/12/2010 22:09, Marcel a écrit : relocation Offset is: 0409e000 How is 0409e000 near top of my RAM ? How does it get this value ? This is an offset, a difference of addresses, not an absolute address. And since it is rather big, it means the original and relocated locations are far

Re: [U-Boot] [PATCH 5/5] MX5:MX53: add initial support for MX53EVK board

2010-12-27 Thread Stefano Babic
On 12/20/2010 07:52 AM, John Rigby wrote: Jason: No one is arguing about the use the plugin feature. The objection is to how you are getting the plugin bits into the u-boot image. You should use a tool to prepend the plugins to the u-boot.bin file in a similar way to how mkimage is used

Re: [U-Boot] [PATCH v2 1/3] MX5: Add initial support for MX53 processor

2010-12-27 Thread Stefano Babic
On 12/22/2010 02:23 PM, Jason Liu wrote: Add initial support for Freescale MX53 processor, - Add the iomux support and the pin definition, - Add the regs definition, clean up some unused def from mx51, - Add the low level init support, make use the freq input of setup_pll macro ---

Re: [U-Boot] [PATCH v2 3/3] MX5:MX53: add initial support for MX53EVK board

2010-12-27 Thread Stefano Babic
On 12/22/2010 02:23 PM, Jason Liu wrote: Add initial support for MX53EVK board support. FEC, SD/MMC, UART, I2C, have been support. Signed-off-by: Jason Liu r64...@freescale.com --- Changes for v2: -Address the comments from Stefano, Albert and Wolfgang, -remove the ivt.S file

Re: [U-Boot] [PATCH 1/3] mxc_gpio: add support for MX53 processor

2010-12-27 Thread Stefano Babic
On 12/22/2010 02:23 PM, Jason Liu wrote: This patch add mxc_gpio support for Freescale MX53 processor Signed-off-by: Jason Liu r64...@freescale.com --- drivers/gpio/mxc_gpio.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) Hi Jason, Please move this patch in the

[U-Boot] [PATCH RFC] armv7: fixloop: don't fixup if location is NULL

2010-12-27 Thread Minkyu Kang
There is possibility that pointers set to NULL before relocation. In this case, system is hang, because of r0 is invalid location in RAM. Signed-off-by: Minkyu Kang mk7.k...@samsung.com --- arch/arm/cpu/armv7/start.S |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: [U-Boot] [PATCH 2/3] fsl_pmic: add I2C interface support

2010-12-27 Thread Stefano Babic
On 12/22/2010 02:23 PM, Jason Liu wrote: This patch add I2C interface for fsl_pmic driver support +#ifdef CONFIG_FSL_PMIC_I2C +#include i2c.h +static int init_done; + +u32 pmic_reg(u32 reg, u32 val, u32 write) +{ + unsigned char buf[4] = { 0 }; + u32 ret_val = 0; + + if

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Wolfgang Denk
Dear Nobuhiro Iwamatsu, In message 1293433224-17341-1-git-send-email-iwama...@nigauri.org you wrote: This move linker option used by the last of u-boot in LDFLAGS_u-boot variable. And the option to use in ld uses LDFLAGS variable. Can you please explain why this would be needed? -LDFLAGS +=

Re: [U-Boot] [PATCH 3/3] imximage: Add MX53 boot image support

2010-12-27 Thread Stefano Babic
On 12/22/2010 02:23 PM, Jason Liu wrote: This patch add the MX53 boot image support This patch has been tested on Freescale MX53EVK board. Signed-off-by: Jason Liu r64...@freescale.com --- board/freescale/mx53evk/config.mk| 25 board/freescale/mx53evk/imximage.cfg | 108

Re: [U-Boot] [PATCH 8/8] armv7: adapt s5pc1xx to the new cache maintenance framework

2010-12-27 Thread Aneesh V
Dear Minkyu Kang, On Monday 27 December 2010 12:55 PM, Minkyu Kang wrote: snip + +#ifndef CONFIG_SYS_NO_DCACHE +void v7_setup_outer_cache_ops(void) +{ +#ifndef CONFIG_L2_OFF + v7_outer_cache.enable = ca8_l2_cache_enable; + v7_outer_cache.disable = ca8_l2_cache_disable;

Re: [U-Boot] [PATCH] Correct chip detect logic

2010-12-27 Thread Sergei Shtylyov
Hello. On 26-12-2010 5:41, Yanjun Yang wrote: The lan91c96_detect_chip routine is not correct according to the manual. Signed-off-by: YanJun Yangyangyj...@gmail.com [...] diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c index bd6966e..2550aa2 100644 ---

Re: [U-Boot] [PATCH 1/1] MX51EVK: UART does not print out the early information

2010-12-27 Thread Stefano Babic
On 12/23/2010 12:13 PM, Jason Liu wrote: The early bootup information is not print out due to the UART pin iomux not set up correctly before board_init Add the board_early_init_f function and enable the CONFIG_BOARD_EARLY_INIT_F. Move the UART pin setting from board_init to

Re: [U-Boot] [PATCH] nios2: add gpio_is_valid

2010-12-27 Thread Sergei Shtylyov
Hello. On 27-12-2010 5:46, Thomas Chou wrote: Signed-off-by: Thomas Choutho...@wytron.com.tw [...] diff --git a/arch/nios2/include/asm/gpio.h b/arch/nios2/include/asm/gpio.h index 36a7132..4b21c8f 100644 --- a/arch/nios2/include/asm/gpio.h +++ b/arch/nios2/include/asm/gpio.h @@ -52,6

Re: [U-Boot] [PATCH 15/28] Blackfin: fix bd_t handling

2010-12-27 Thread Sergei Shtylyov
Hello. On 27-12-2010 7:48, Mike Frysinger wrote: The recent global data changes (making the size autogenerated) broke the board info handling on Blackfin ports as we were lying and lumping the bd_t size in with the gd_t size. So use the new dedicated bd_t size to setup its own address in

Re: [U-Boot] [PATCH] mpq101: initial support for Mercury Computer Systems MPQ101 board

2010-12-27 Thread Wolfgang Denk
Dear Alex Dubov, In message 25288.34605...@web37607.mail.mud.yahoo.com you wrote: Mpq101 is a RapidIO development board in AMC form factor, featuring MPC8548 processor, 512MB of hardwired DDR2 RAM and 128MB of hardwired NAND flash memory. USB controller is available, but not presently enabled.

Re: [U-Boot] [PATCH] nios2: add gpio_is_valid

2010-12-27 Thread Thomas Chou
On 12/27/2010 07:35 PM, Sergei Shtylyov wrote: Hello. On 27-12-2010 5:46, Thomas Chou wrote: Signed-off-by: Thomas Choutho...@wytron.com.tw [...] diff --git a/arch/nios2/include/asm/gpio.h b/arch/nios2/include/asm/gpio.h index 36a7132..4b21c8f 100644 --- a/arch/nios2/include/asm/gpio.h

Re: [U-Boot] [PATCH 15/28] Blackfin: fix bd_t handling

2010-12-27 Thread Mike Frysinger
On Monday, December 27, 2010 06:41:47 Sergei Shtylyov wrote: On 27-12-2010 7:48, Mike Frysinger wrote: + bd = (bd_t *) (CONFIG_SYS_BD_INFO_ADDR); Parens not needed around CONFIG_SYS_BD_INFO_ADDR. it isnt a problem to have the parens, and it keeps things sane if someone does something

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Mike Frysinger
On Monday, December 27, 2010 05:47:54 Wolfgang Denk wrote: Nobuhiro Iwamatsu wrote: This move linker option used by the last of u-boot in LDFLAGS_u-boot variable. And the option to use in ld uses LDFLAGS variable. Can you please explain why this would be needed? he explained in the

[U-Boot] Auto_complete issue with u-boot version v2010.12

2010-12-27 Thread Михаил
Hi, I found that config_auto_complete feature have no correct functional since this version (version v2010.09 is ok). Some part of my board's header file: ... #define CONFIG_AUTO_COMPLETE #define CONFIG_SYS_HUSH_PARSER #define CONFIG_EXTRA_ENV_SETTING \ _kernel=tf uImage; er FE00 +$filesize;

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Wolfgang Denk
Dear Mike Frysinger, In message 201012271146.22205.vap...@gentoo.org you wrote: Nobuhiro Iwamatsu wrote: This move linker option used by the last of u-boot in LDFLAGS_u-boot variable. And the option to use in ld uses LDFLAGS variable. Can you please explain why this would be needed?

Re: [U-Boot] Auto_complete issue with u-boot version v2010.12

2010-12-27 Thread Wolfgang Denk
Dear =?KOI8-R?B?7cnIwcnM?=, In message aanlktikac=ck_6pmqehhhp5zgn_jq4jeflpuvzeku...@mail.gmail.com you wrote: I found that config_auto_complete feature have no correct functional since this version (version v2010.09 is ok). ... Can anyone confirm this malfunction? It is expected

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Mike Frysinger
On Monday, December 27, 2010 13:58:08 Wolfgang Denk wrote: Mike Frysinger wrote: Nobuhiro Iwamatsu wrote: This move linker option used by the last of u-boot in LDFLAGS_u-boot variable. And the option to use in ld uses LDFLAGS variable. Can you please explain why this would be

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Wolfgang Denk
Dear Mike Frysinger, In message 201012271511.54110.vap...@gentoo.org you wrote: Nobuhiro Iwamatsu wrote: This move linker option used by the last of u-boot in LDFLAGS_u-boot variable. And the option to use in ld uses LDFLAGS variable. Can you please explain why this would

[U-Boot] [PATCH] OMAP[34]: fix broken timer

2010-12-27 Thread John Rigby
As implemented now the timer used to implement __udelay counts to 0x and then gets stuck there because the the programmed reload value is 0x. This value is not only wrong but illegal according to the reference manual. One can reproduce the bug by leaving a board at the u-boot

[U-Boot] [RFC PATCH 0/8] Add nand_spl support for TI OMAP Beagle

2010-12-27 Thread John Rigby
This patch series adds the ability to boot a beagle board from nand without x-loader. A future addition will add mmc boot support. John Rigby (8): NAND: nand_spl/nand_boot.c: add 16-bit and readid support armv7: add nand_spl support OMAP3: and nand_spl support OMAP3: add dram timing

[U-Boot] [RFC PATCH 1/8] NAND: nand_spl/nand_boot.c: add 16-bit and readid support

2010-12-27 Thread John Rigby
Some platforms read the nand type to make configuration choices. For example, some versions of OMAP3 Beagle use the NAND type as a hint of the DRAM type. Turn readid support on with CONFIG_SYS_NAND_BOOT_READID Add 16-bit nand support. Turn it on with CONFIG_SYS_NAND_BUSWIDTH_16 Signed-off-by:

[U-Boot] [RFC PATCH 2/8] armv7: add nand_spl support

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org --- arch/arm/cpu/armv7/start.S | 45 +++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S index 684f2d2..17b86e1 100644 ---

[U-Boot] [RFC PATCH 4/8] OMAP3: add dram timing constants from x-loader

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org --- arch/arm/include/asm/arch-omap3/mem.h | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/mem.h b/arch/arm/include/asm/arch-omap3/mem.h index f165949..970e8b4

[U-Boot] [RFC PATCH 5/8] NAND: omap_gpmc.c: add nand_spl support

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org CC: Scott Wood scootw...@freescale.com --- drivers/mtd/nand/omap_gpmc.c | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c index

[U-Boot] [RFC PATCH 6/8] omap3_beagle: add nand_spl support

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org --- board/ti/beagle/beagle_nand_spl.c | 250 +++ boards.cfg |1 + include/configs/omap3_beagle.h | 39 ++ nand_spl/board/ti/beagle/Makefile | 138 +++

[U-Boot] [RFC PATCH 7/8] mkimage: Add OMAP boot image support

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org --- common/image.c|1 + include/image.h |1 + tools/Makefile|2 + tools/mkimage.c |2 + tools/omapimage.c | 226 + tools/omapimage.h | 50 6 files

[U-Boot] [RFC PATCH 8/8] OMAP3: Add ift target to top level Makefile

2010-12-27 Thread John Rigby
Signed-off-by: John Rigby john.ri...@linaro.org --- Makefile |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 9055028..baf11b3 100644 --- a/Makefile +++ b/Makefile @@ -289,8 +289,13 @@ LDPPFLAGS += \ ifeq ($(CONFIG_NAND_U_BOOT),y)

Re: [U-Boot] [PATCH] Add LDFLAGS-u-boot variable and move some linker option to this

2010-12-27 Thread Mike Frysinger
On Monday, December 27, 2010 18:23:17 Wolfgang Denk wrote: And I see no trace of any $(XFLAGS_$(@F)) there. it's fairly obvious that the X is for you to replace as a matching char -mike signature.asc Description: This is a digitally signed message part.

Re: [U-Boot] [PATCH] mpq101: initial support for Mercury Computer Systems MPQ101 board

2010-12-27 Thread Alex Dubov
+phys_size_t +initdram (int board_type) +{ ... +    dram_size = setup_ddr_tlbs(1ull (CONFIG_SYS_SDRAM_SIZE_LOG - 20)); + +    puts(    DDR: ); + +    return dram_size 20; You should use get_ram_size(). I still need to call setup_ddr_tlbs because get_ram_size won't do it for

Re: [U-Boot] [PATCH] mpq101: initial support for Mercury Computer Systems MPQ101 board

2010-12-27 Thread Alex Dubov
+CONFIG_SYS_TEXT_BASE = 0xfffc0800 +LDFLAGS += --section-start=.ppcenv=$(CONFIG_ENV_ADDR) Please mode defines to board config file and get rid of config.mk And another question: how am I supposed to specify linker flags in the board config file (I suppose, you mean boards.cfg). There's

Re: [U-Boot] [RFC PATCH 0/8] Add nand_spl support for TI OMAP Beagle

2010-12-27 Thread Aneesh V
Hello John, On Tuesday 28 December 2010 06:17 AM, John Rigby wrote: This patch series adds the ability to boot a beagle board from nand without x-loader. A future addition will add mmc boot support. I had been working on something similar for OMAP4. Basically, I have an SPL ready for MMC on

[U-Boot] [PATCH] fsl_esdhc: Fix esdhc disabled problem on some platforms

2010-12-27 Thread Chenhui Zhao
Some platform's esdhc pins don't share with other function. The eSDHC shouldn't be disabled, even if esdhc isn't defined in hwconfig env variable. Use CONFIG_FSL_ESDHC_PIN_MUX to fix this problem. The problem was introduced by this commit: commit b33433a63fe08c9e723ea15a7c7c7143bf527c6d Author:

Re: [U-Boot] [RFC PATCH 6/8] omap3_beagle: add nand_spl support

2010-12-27 Thread Aneesh V
Hello John, On Tuesday 28 December 2010 06:17 AM, John Rigby wrote: snip +LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds +LDFLAGS = -Bstatic -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_NAND_SPL_TEXT_BASE) $(PLATFORM_LDFLAGS) +AFLAGS += -DCONFIG_PRELOADER

Re: [U-Boot] [PATCH v2 3/3] MX5:MX53: add initial support for MX53EVK board

2010-12-27 Thread Jason Liu
Hi, Stefano, 2010/12/27 Stefano Babic sba...@denx.de: On 12/22/2010 02:23 PM, Jason Liu wrote: Add initial support for MX53EVK board support. FEC, SD/MMC, UART, I2C, have been support. Signed-off-by: Jason Liu r64...@freescale.com --- Changes for v2: -Address the comments from Stefano,

Re: [U-Boot] [RFC PATCH 6/8] omap3_beagle: add nand_spl support

2010-12-27 Thread Dirk Behme
On 28.12.2010 07:50, Aneesh V wrote: Hello John, On Tuesday 28 December 2010 06:17 AM, John Rigby wrote: snip +LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds +LDFLAGS = -Bstatic -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_NAND_SPL_TEXT_BASE) $(PLATFORM_LDFLAGS) +AFLAGS