Re: [U-Boot] [PATCH v2] mxs: spl_mem_init: Align DDR2 init with FSL bootlets source

2013-03-13 Thread Stefano Babic
On 13/03/2013 17:01, Marek Vasut wrote: Apart of the fact that fixes booting old kernel, these changes affects all mx28 boards, not only mx28evk. Can we have a description about which changes are done and why they are required ? Please see [1] below, this describes the situation at hand

Re: [U-Boot] [PATCH v9 15/30] autoconfig.mk: Make it possible to define configs from other configs

2013-03-13 Thread Stefano Babic
On 13/03/2013 14:35, Benoît Thébaudeau wrote: Hi Stefano, Hi Benoît, For that, patches 1 until 9 are related to i.MX and mainly to the NAND for i.MX. They get already Scott's ACK. IMHO they are independent from the rest of the patchset and they can be merged now. My proposal is that I

Re: [U-Boot] [PULL] : Please pull u-boot-imx -- 3 build failures

2013-03-14 Thread Stefano Babic
On 13/03/2013 23:26, Albert ARIBAUD wrote: On Wed, 13 Mar 2013 13:29:55 +0100, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Stefano, Hi Albert, Regardless of applying the two patches above, there is a merge conflict between u-boot-imx/master and u-boot-arm/master between: -

Re: [U-Boot] [PATCH v2 1/2] nitrogen6x: Fix RAM size variable

2013-03-14 Thread Stefano Babic
On 13/03/2013 23:59, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Fix the following build error when buildig nitrogen6s1g: nitrogen6x.c:89:17: error: 'CONFIG_DDR_MB' undeclared (first use in this function) nitrogen6x.c:89:17: note: each undeclared identifier is

Re: [U-Boot] [PATCH v2 2/2] nitrogen: Use unsigned long to specify the total RAM size

2013-03-14 Thread Stefano Babic
On 13/03/2013 23:59, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com When building for the nitrogen boards with 2GB the following warning happens: nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow] 2GB can not fit in 32-bits, so use ulong

[U-Boot] [PATCH V3] nitrogen: Use unsigned long to specify the total RAM size

2013-03-14 Thread Stefano Babic
albert.u.b...@aribaud.net Signed-off-by: Fabio Estevam fabio.este...@freescale.com Signed-off-by: Stefano Babic sba...@denx.de --- Changes since V1: - move casting inside expression to force using unsigned long board/boundary/nitrogen6x/nitrogen6x.c |2 +- 1 file changed, 1 insertion

Re: [U-Boot] [PATCH V3] nitrogen: Use unsigned long to specify the total RAM size

2013-03-14 Thread Stefano Babic
On 14/03/2013 09:03, Stefano Babic wrote: From: fabio.este...@freescale.com fabio.este...@freescale.com When building for the nitrogen boards with 2GB the following warning happens: nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow] 2GB can not fit in 32-bits, so

[U-Boot] [PATCH V4] nitrogen: Use unsigned long to specify the total RAM size

2013-03-14 Thread Stefano Babic
albert.u.b...@aribaud.net Signed-off-by: Fabio Estevam fabio.este...@freescale.com Signed-off-by: Stefano Babic sba...@denx.de --- Changes since V2: - move casting inside expression to force using unsigned long board/boundary/nitrogen6x/nitrogen6x.c |2 +- 1 file changed, 1 insertion

Re: [U-Boot] [PULL] : Please pull u-boot-imx -- 3 build failures

2013-03-14 Thread Stefano Babic
On 13/03/2013 23:49, Eric Nelson wrote: Yes, but I used (ulong) instead. Would it be OK? Works for me... Note that Troy wanted to see DDR_MB expressed as bytes instead, which would have solved the overflow problem. Ok, I sent also a fix, but I will wait for Troy's patch. Regards,

Re: [U-Boot] [PULL] : Please pull u-boot-imx -- 3 build failures

2013-03-14 Thread Stefano Babic
On 14/03/2013 14:48, Eric Nelson wrote: On 03/14/2013 02:38 AM, Stefano Babic wrote: On 13/03/2013 23:49, Eric Nelson wrote: Yes, but I used (ulong) instead. Would it be OK? Works for me... Note that Troy wanted to see DDR_MB expressed as bytes instead, which would have solved

Re: [U-Boot] [PATCH V4] nitrogen: Use unsigned long to specify the total RAM size

2013-03-14 Thread Stefano Babic
On 14/03/2013 14:15, Albert ARIBAUD wrote: Hi Stefano, On Thu, 14 Mar 2013 09:09:21 +0100, Stefano Babic sba...@denx.de wrote: From: fabio.este...@freescale.com fabio.este...@freescale.com When building for the nitrogen boards with 2GB the following warning happens: nitrogen6x.c:89:38

[U-Boot] [PULL] : Please pull u-boot-imx

2013-03-15 Thread Stefano Babic
mxs: Fix iomux.h to not break build during assembly stage mx23_olinuxino: Add support for status LED mx23evk: Enable USB support mx23_olinuxino: Enable USB support mx23_olinuxino: Add ethernet support mx23_olinuxino: Fix warning for implicit declaration Stefano

Re: [U-Boot] [PATCH v4] Add initial support for Wandboard dual lite and solo.

2013-03-15 Thread Stefano Babic
supply. I understand that less redundant information is better, but this is very important info and it cannot be used only if DEBUG is set. IMHO we should let it as it is - it helps us when something bad happens. Best regards, Stefano Babic

Re: [U-Boot] [PATCH v2] net: Improve the speed of netconsole

2012-08-10 Thread Stefano Babic
initialized between them. It will still behave the same old way for all other network operations and any time another network operation happens between netconsole operations. Hi Joe, Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Stefano Babic sba...@denx.de --- common

Re: [U-Boot] [PATCH] mxc_spi: Round up clock divider

2012-08-11 Thread Stefano Babic
...@advansee.com Cc: Wolfgang Denk w...@denx.de Cc: Stefano Babic sba...@denx.de --- .../drivers/spi/mxc_spi.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git u-boot-4d3c95f.orig/drivers/spi/mxc_spi.c u-boot-4d3c95f/drivers/spi/mxc_spi.c

Re: [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init

2012-08-11 Thread Stefano Babic
aflem...@gmail.com Cc: Stefano Babic sba...@denx.de Cc: Kim Phillips kim.phill...@freescale.com --- .../drivers/mmc/fsl_esdhc.c|3 +++ 1 file changed, 3 insertions(+) diff --git u-boot-4d3c95f.orig/drivers/mmc/fsl_esdhc.c u-boot-4d3c95f/drivers/mmc/fsl_esdhc.c

Re: [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init

2012-08-11 Thread Stefano Babic
On 11/08/2012 16:39, Benoît Thébaudeau wrote: Hi Stefano, Hi, fsl_esdhc_mmc_init() exists, so it should give access to all features. This was left for compatibility with PowerPC SOCs. Moreover, it's shorter to #define a config option than to create custom fsl_esdhc_mmc init functions

Re: [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command

2012-08-11 Thread Stefano Babic
this issue, and I have never update the status of my patch. Is ther estill some interest on this or have I missed something and now is the behavior in shell as in your example ? Best regards, Stefano Babic -- = DENX Software Engineering

Re: [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init

2012-08-11 Thread stefano babic
for CONFIG_MX* results clear for us today, but nobody will remember after some times and if the checked CONFIG_MX* will be changed, it will have drawbacks not so evident on MMC. I prefer the first solution, adding an entry to imx-regs.h. Best regards, Stefano Babic

Re: [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init

2012-08-12 Thread Stefano Babic
somewhere. can I ask you which kind of problems you have seen on a i.MX35 ? I was curious after your e-amil and I enabled the FSL_ESDHC driver on a mx35pdk - it seems working out of the box, I have not changed the driver. Best regards, Stefano Babic

Re: [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7

2012-08-13 Thread Stefano Babic
On 09/08/2012 18:01, Tom Rini wrote: Hey all, Hi Tom, As Allen Martin noted, on tegra platforms a bug is exposed when using certain toolchains that currently calls to lowlevel_init must be calls to another assembly function as the stack is not explicitly setup / saved and thus register

Re: [U-Boot] [PATCH 2/2] fsl_esdhc: Remove cache snooping for i.MX

2012-08-13 Thread Stefano Babic
if fsl_esdhc_mmc_init() were used for an i.MX board. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Andy Fleming aflem...@gmail.com Cc: Stefano Babic sba...@denx.de Cc: Kim Phillips kim.phill...@freescale.com --- .../board/efikamx/efikamx.c|4

Re: [U-Boot] [PATCH 2/2] fsl_esdhc: Remove cache snooping for i.MX

2012-08-13 Thread Stefano Babic
On 13/08/2012 16:39, Benoît Thébaudeau wrote: Why don't you get rid of no_snoop at all ? Using ARCH_IMX is not needed anymore. Because I didn't know if disabling cache snooping could be a useful option or not for architectures other than i.MX, so I preferred to leave it just in case,

Re: [U-Boot] [PATCH v2 3/4] mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h

2012-08-14 Thread Stefano Babic
MX28 include asm/arch/regs-clkctrl-mx28.h #else #ifdef MX23 include asm/arch/regs-clkctrl-mx23.h Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office

Re: [U-Boot] [PATCH 01/13] mxc nand: Merge mtd and spl register definitions

2012-08-14 Thread Stefano Babic
On 13/08/2012 22:48, Benoît Thébaudeau wrote: This patches fixes the TODO to use same register definitions in mtd mxc_nand and nand_spl fsl nfc drivers. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Scott Wood scottw...@freescale.com Cc: Stefano Babic sba...@denx.de

Re: [U-Boot] [PATCH 02/13] mxc nand: cosmectic: Light cleanup

2012-08-14 Thread Stefano Babic
On 13/08/2012 22:48, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Scott Wood scottw...@freescale.com Cc: Stefano Babic sba...@denx.de --- .../drivers/mtd/nand/mxc_nand.c|9 +++-- .../include/fsl_nfc.h

Re: [U-Boot] [PATCH 08/13] mtd mxc nand: Use _mxc_nand_enable_hwecc()

2012-08-14 Thread Stefano Babic
On 13/08/2012 22:50, Benoît Thébaudeau wrote: Use _mxc_nand_enable_hwecc() instead of duplicating its code. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Scott Wood scottw...@freescale.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, +#ifdef

Re: [U-Boot] [PATCH 03/13] spl mxc nand: Merge duplicated code

2012-08-14 Thread Stefano Babic
On 13/08/2012 22:48, Benoît Thébaudeau wrote: Merge duplicated code into functions, which is better for SPL size too. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Scott Wood scottw...@freescale.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../nand_spl

Re: [U-Boot] [PATCH 11/13] mxc nand: Let driver detect IP revision

2012-08-14 Thread Stefano Babic
: Scott Wood scottw...@freescale.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../include/configs/flea3.h|1 - .../include/configs/mx35pdk.h |1 - .../include/configs/tx25.h |1 - .../include/fsl_nfc.h

Re: [U-Boot] [PATCH 01/13] mxc nand: Merge mtd and spl register definitions

2012-08-14 Thread Stefano Babic
increase the number of boards using nand_spl. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49

Re: [U-Boot] [PATCH v2 3/4] mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h

2012-08-14 Thread Stefano Babic
by another patch later. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142

Re: [U-Boot] [PATCH 01/13] mxc nand: Merge mtd and spl register definitions

2012-08-14 Thread Stefano Babic
On 14/08/2012 13:13, Benoît Thébaudeau wrote: Hi Stefano, Hi Benoît, We have currently only two boards supporting this mechanismus, using MX25 (karo tx25) and MX31. Both MX25 and MX31 have an internal RAM (128KB) that is is suitable for installing the SPL. Note that TI SOCs have less RAM

Re: [U-Boot] [PATCH 2/2] apx4devkit: Turn on caches

2012-08-15 Thread Stefano Babic
-boot-imx, thanks. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49

Re: [U-Boot] [PATCH 1/2] m28evk: Turn on caches

2012-08-15 Thread Stefano Babic
On 05/08/2012 18:17, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Turn on data and instruction caches. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic

Re: [U-Boot] [PATCH v2 1/4] mxs: Remove not required explicit iomux-mx28.h include

2012-08-15 Thread Stefano Babic
asm/io.h -#include asm/arch/iomux-mx28.h #include asm/arch/imx-regs.h #include asm/arch/sys_proto.h #include asm/gpio.h Applied to u-boot-imx (the whole series), thanks. Best regards, Stefano Babic -- = DENX Software

Re: [U-Boot] [PATCH 6/6] davinci: ea20: add some configs and default environmet variables

2012-08-15 Thread Stefano Babic
On 10/08/2012 09:26, Bastian Ruppert wrote: Signed-off-by: Bastian Ruppert bastian.rupp...@sewerin.de CC: Tom Rini tr...@ti.com CC: Stefano Babic sba...@denx.de --- include/configs/ea20.h | 106 ++-- 1 files changed, 66 insertions(+), 40

Re: [U-Boot] [PATCH 5/6] da850/omap-l138: davinci_emac: Suppress auto negotiation if needed

2012-08-15 Thread Stefano Babic
) + defined(CONFIG_MACH_DAVINCI_DA850_EVM) \ + !defined(CONFIG_DRIVER_TI_EMAC_RMII_NONEG) for (i = 0; i num_phy; i++) { if (phy[i].is_phy_connected(i)) phy[i].auto_negotiate(i); Acked-by: Stefano Babic sba...@denx.de Best

Re: [U-Boot] [PATCH 1/6] davinci: ea20: reorganisation LCD startup

2012-08-15 Thread Stefano Babic
On 10/08/2012 09:26, Bastian Ruppert wrote: Signed-off-by: Bastian Ruppert bastian.rupp...@sewerin.de CC: Tom Rini tr...@ti.com CC: Stefano Babic sba...@denx.de --- board/davinci/ea20/ea20.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git

Re: [U-Boot] [PATCH 2/6] davinci: ea20: the console is always set to the serial line

2012-08-15 Thread Stefano Babic
On 10/08/2012 09:26, Bastian Ruppert wrote: Do not allow to overwrite it when video is enabled. Signed-off-by: Bastian Ruppert bastian.rupp...@sewerin.de CC: Tom Rini tr...@ti.com CC: Stefano Babic sba...@denx.de --- Acked-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic

Re: [U-Boot] [PATCH 01/13] mxc nand: Merge mtd and spl register definitions

2012-08-16 Thread Stefano Babic
On 15/08/2012 20:11, Benoît Thébaudeau wrote: Hi Stefano, Hi Benoît, I understand this part as the mx35 goes on to copy the whole image, depending on the size set into the header, to the address specified in the table itself. There is no limitation. Exactly in the same way it works on

Re: [U-Boot] [PATCH 00/17]: ARM: SPL: Make more generic, merge DaVinci and OMAP

2012-08-16 Thread Stefano Babic
On 15/08/2012 23:30, Tom Rini wrote: Hey all, Hi Tom, The following patch series merges the davinci and omap-common SPL frameworks into a single framework, CONFIG_SPL_FRAMEWORK along with a few small cleanups to the code to make it a little smaller and more flexible. The end result is

Re: [U-Boot] [PATCH 03/17] ARM: SPL: Move the omap SPL framework to arch/arm/lib

2012-08-16 Thread Stefano Babic
On 15/08/2012 23:30, Tom Rini wrote: Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the arch/arm/lib SPL framework, enable on all of the previously using boards. Signed-off-by: Tom Rini tr...@ti.com --- Hi Tom, README |5 +

Re: [U-Boot] [PATCH 01/17] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT

2012-08-16 Thread Stefano Babic
== MMCSD_MODE_FAT) { debug(boot mode - FAT\n); mmc_load_image_fat(mmc); +#endif } else { puts(spl: wrong MMC boot mode\n); hang(); Right, this should be done ! Acked-by: Stefano Babic sba...@denx.de Regards, Stefano

Re: [U-Boot] [PATCH 08/17] ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c

2012-08-16 Thread Stefano Babic
On 15/08/2012 23:30, Tom Rini wrote: This detection code doesn't (and can't) do anything currently, so remove. Signed-off-by: Tom Rini tr...@ti.com --- arch/arm/cpu/armv7/omap3/board.c |3 --- arch/arm/include/asm/omap_common.h |1 - arch/arm/lib/spl_nand.c| 13

Re: [U-Boot] [PATCH 09/17] ARM: SPL: Only call mem_malloc_init if configured

2012-08-16 Thread Stefano Babic
On 15/08/2012 23:30, Tom Rini wrote: We can only attempt to setup a malloc pool if CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it. Make the call depend on the define. Signed-off-by: Tom Rini tr...@ti.com --- arch/arm/lib/spl.c |2 ++ 1 file changed, 2

Re: [U-Boot] [PATCH 14/17] ARM: SPL: Move gpmc_init() to spl_board_init()

2012-08-16 Thread Stefano Babic
On 15/08/2012 23:30, Tom Rini wrote: This is an OMAP/related-specific function, move calling it to spl_board_init() and turn on CONFIG_SPL_BOARD_INIT on the boards that enabled NAND and didn't enable this already. Signed-off-by: Tom Rini tr...@ti.com ---

Re: [U-Boot] [PATCH 1/1] iomux: move IOMUX_GPR13_xxx defines

2012-08-16 Thread Stefano Babic
/io.h #include asm/arch/clock.h #include asm/arch/imx-regs.h +#include asm/arch/iomux.h #include asm/arch/mx6x_pins.h #include asm/errno.h #include asm/gpio.h Acked-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic

Re: [U-Boot] [PATCH 03/17] ARM: SPL: Move the omap SPL framework to arch/arm/lib

2012-08-17 Thread Stefano Babic
On 16/08/2012 16:38, Tom Rini wrote: On 08/16/2012 12:45 AM, Stefano Babic wrote: On 15/08/2012 23:30, Tom Rini wrote: Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the arch/arm/lib SPL framework, enable on all of the previously using boards. Signed-off-by: Tom Rini tr...@ti.com --- Hi

Re: [U-Boot] [PATCH 1/1] mx51/mx53/mx6: add watchdog

2012-08-17 Thread Stefano Babic
idea to have a watchdog driver in drivers/watchdog. Feel free to add a driver here and replacing the i.MX31 stuff. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235

Re: [U-Boot] [PATCH 1/2] MX28: config: Allow different target generation in elftosb call

2012-08-17 Thread Stefano Babic
Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49

Re: [U-Boot] [PATCH 2/2] MX28: Move regs-base.h include after SoC type configuration

2012-08-17 Thread Stefano Babic
for apx4devkit, I have added it, but you get here my: Acked-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office

Re: [U-Boot] [PATCH 2/3] fec_mxc: use phy_connect_by_mask

2012-08-17 Thread Stefano Babic
without documentation. Can you add an entry into the README file (I know, a lot of CONFIG_ are missing, but we can at least avoid to add hidden features..). Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD

Re: [U-Boot] [PATCH V4 1/3] imx-common/cmd_bmode.c: add imx bmode (bootmode) command

2012-08-17 Thread Stefano Babic
{ + const char *name; + unsigned cfg_val; +}; + +void add_board_boot_modes(const struct boot_mode *p); +void boot_mode_apply(unsigned cfg_val); +extern const struct boot_mode soc_boot_modes[]; +#endif Acked-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic

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

2012-08-17 Thread Stefano Babic
to use it. You can set it to 0x5301 (better write as in your comment, (GPIO 8) + CS) and sf probe will take it automatically. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB

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

2012-08-17 Thread Stefano Babic
regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba

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

2012-08-17 Thread Stefano Babic
CSPI3_BASE_ADDR These are not configurable. If a board is a MX5, they are fixed from imx-regs.h. See also my previous answer to Patch 2/3. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev

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

2012-08-17 Thread Stefano Babic
On 15/08/2012 19:11, Tom Rini wrote: On Tue, Aug 14, 2012 at 10:40:50PM +0200, Jeroen Hofstee wrote: 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

Re: [U-Boot] [PATCH 1/2] MX28: Drop the cp15 reconfiguration from SPL

2012-08-17 Thread Stefano Babic
as well. [1] http://git.bfuser.eu/?p=marex/mxsldr.git;a=summary Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mx28/start.S | 42 --- 1 file changed, 42

Re: [U-Boot] [PATCH 2/2] MX28: Shuffle around the power management code

2012-08-17 Thread Stefano Babic
On 06/08/2012 23:34, Marek Vasut wrote: Move some function calls to a more appropriate place, so they're called only when needed. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mx28

Re: [U-Boot] [PATCH] mx25: Enable dcache

2012-08-17 Thread Stefano Babic
On 14/08/2012 15:17, Benoît Thébaudeau wrote: Now that the main i.MX features work fine with dcache enabled, enabled it by default if CONFIG_SYS_DCACHE_OFF is not defined. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../arch/arm/cpu

Re: [U-Boot] [PATCH] mx5: Enable dcache

2012-08-17 Thread Stefano Babic
On 14/08/2012 15:17, Benoît Thébaudeau wrote: Now that the main i.MX features work fine with dcache enabled, enabled it by default if CONFIG_SYS_DCACHE_OFF is not defined. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../arch/arm/cpu

Re: [U-Boot] [PATCH] mx35: Fix typo on EDIO

2012-08-17 Thread Stefano Babic
On 14/08/2012 15:28, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../arch/arm/include/asm/arch-mx35/crm_regs.h |4 ++-- .../board/CarMediaLab/flea3/flea3.c|2 +- .../board

Re: [U-Boot] [PATCH] mx3: Fix typo on IPU_CONF_CSI_EN

2012-08-17 Thread Stefano Babic
On 14/08/2012 15:33, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../arch/arm/include/asm/arch-mx31/imx-regs.h |2 +- .../arch/arm/include/asm/arch-mx35/imx-regs.h |2 +- 2 files changed, 2

Re: [U-Boot] [PATCH] mx5 iomux: Fix GPIO with SION

2012-08-17 Thread Stefano Babic
-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, to my understanding. The SION bit is used to set a predefined function, independently from the value of the iomux. So I have the choice to set the SION bit or I select the function I want, including

Re: [U-Boot] [PATCH v2 1/4] mx5: cosmetic: Clean up lowlevel_init

2012-08-17 Thread Stefano Babic
On 14/08/2012 17:18, Benoît Thébaudeau wrote: Coding style cleanup: - Remove useless parentheses. - Use tabs for indentations and alignments. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Changes for v2: - Make patch description

Re: [U-Boot] [PATCH] mx5/6: Fix cpu_mmc_init() return value

2012-08-17 Thread Stefano Babic
On 14/08/2012 17:30, Benoît Thébaudeau wrote: Do not pretend to have initialized mmc successfully if CONFIG_FSL_ESDHC is not defined. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../arch/arm/cpu/armv7/imx-common/cpu.c

Re: [U-Boot] [PATCH] mx5/6 timer: Use defined CONFIG_SYS_MX*_CLK32

2012-08-17 Thread Stefano Babic
On 14/08/2012 17:01, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../arch/arm/cpu/armv7/imx-common/timer.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git u

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

2012-08-17 Thread Stefano Babic
: Stefano Babic sba...@denx.de --- Hi Benoît, just some minor points: .../arch/arm/cpu/arm1136/mx35/timer.c | 43 .../include/configs/flea3.h|1 + .../include/configs/mx35pdk.h |1 + 3 files changed, 27

Re: [U-Boot] [PATCH] mx5/6 timer: Round up tick_to_time() value

2012-08-17 Thread Stefano Babic
benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../arch/arm/cpu/armv7/imx-common/timer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git u-boot-4d3c95f.orig/arch/arm/cpu/armv7/imx-common/timer.c u-boot-4d3c95f/arch/arm/cpu/armv7/imx-common

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

2012-08-17 Thread Stefano Babic
On 14/08/2012 23:03, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- .../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

Re: [U-Boot] [PATCH] mx5 iomux: Fix GPIO with SION

2012-08-17 Thread Stefano Babic
regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba

Re: [U-Boot] [PATCH 1/2] mx5: Add default pin initializers

2012-08-17 Thread Stefano Babic
On 14/08/2012 17:46, Benoît Thébaudeau wrote: Create default pin initialization functions for the default iomux function assignments of the main peripherals. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../arch/arm/cpu

Re: [U-Boot] [PATCH] mx5/6 timer: Use defined CONFIG_SYS_MX*_CLK32

2012-08-17 Thread Stefano Babic
On 17/08/2012 21:52, Benoît Thébaudeau wrote: Hi Stefano, On 14/08/2012 17:01, Benoît Thébaudeau wrote: Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Hi Benoît, .../arch/arm/cpu/armv7/imx-common/timer.c |6 +- 1

Re: [U-Boot] [PATCH 2/2] mx5: Use default pin initializers

2012-08-17 Thread Stefano Babic
idiot doing something wrong. We all know that this is impossible because idiots are very creative ;-) Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich

Re: [U-Boot] [PATCH] mx5/6 timer: Use defined CONFIG_SYS_MX*_CLK32

2012-08-17 Thread Stefano Babic
On 17/08/2012 23:03, Benoît Thébaudeau wrote: OK, then for mx25/35/5/6, would you like in timer.c something like: #ifdef CONFIG_SYS_MX{*}_CLK32 #define CLK_32KHZ CONFIG_SYS_MX{*}_CLK32 #else #define CLK_32KHZ 32768 #endif {*}: 25, 35, 5 or 6 In that way, this

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

2012-08-17 Thread Stefano Babic
On 17/08/2012 22:43, Benoît Thébaudeau wrote: Add cpu_mmc_init() function to make it easy to init a single eSDHC instance. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic sba...@denx.de --- Changes for v2: - Do not define cpu_mmc_init

Re: [U-Boot] [PATCH v2] mx5/6: Fix cpu_mmc_init() return value

2012-08-17 Thread Stefano Babic
On 17/08/2012 22:42, Benoît Thébaudeau wrote: Do not pretend to have initialized mmc successfully if CONFIG_FSL_ESDHC is not defined. Instead, only implement a custom cpu_mmc_init() when it does something. Signed-off-by: Benoît Thébaudeau benoit.thebaud...@advansee.com Cc: Stefano Babic

Re: [U-Boot] [PATCH 2/2] spi: fix mxs_spi_slave structure allocation to clear memory

2012-08-18 Thread stefano babic
Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49

Re: [U-Boot] [PATCH 1/2] spi: fix mxc_spi_slave structure allocation to clear memory

2012-08-18 Thread stefano babic
); if (!mxcs) { puts(mxc_spi: SPI Slave not allocated !\n); return NULL; Agree, the structure must be zeroed. Acked-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software

Re: [U-Boot] [PATCH] mx5: add iomux-mx51.h include

2012-08-18 Thread Stefano Babic
), + MX51_PAD_GPIO1_8__SD2_CD= IOMUX_PAD(0x814, 0x3e8, 6, __NA_, 0, MX51_ESDHC_PAD_CTRL), +}; + +#endif /* __IOMUX_MX51_H__ */ Ok, good, this is the same as in kernel. Best regards, Stefano Babic -- = DENX Software

[U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX

2012-08-18 Thread Stefano Babic
Each i.MX has its own gpio.h, defining the same structure. The internal GPIO controller has the same layout (at least for the register used by u-boot) and can be shared. Signed-off-by: Stefano Babic sba...@denx.de CC: Matt Sealey m...@genesi-usa.com CC: Marek Vasut ma...@denx.de CC: Benoit

Re: [U-Boot] [PATCH 2/4] efikamx: remove drive strength hack from early_init_f and move it to the DCD

2012-08-18 Thread Stefano Babic
? I think you should add only yours. # Copyright (C) 2010 Marek Vasut marek.va...@gmail.com -# -# BASED ON: imx51evk +# Copyright (C) 2009-2012 Genesi USA, Inc. # # (C) Copyright 2009 # Stefano Babic DENX Software Engineering sba...@denx.de. @@ -43,48 +43,44 @@ BOOT_FROM spi

Re: [U-Boot] [PATCH 3/4] efikamx: update to Efika MX Smarttop and Smartbook boards

2012-08-18 Thread Stefano Babic
and disadvantages. Anyway, who will maintain the efikas in future ? Marek, do you hold it, or Matt will take this job ? In last case I would like to see a patch for the MAINTAINER file. Best regards, Stefano Babic -- = DENX Software

Re: [U-Boot] [PATCH] rtc: add support of mx27 rtc

2012-08-18 Thread stefano babic
-by: Stefano Babic sba...@denx.de Best regards. Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0

Re: [U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX

2012-08-18 Thread stefano babic
Am 18/08/2012 21:25, schrieb Benoît Thébaudeau: #define MXC_GPIO_PORT_TO_NUM(port, bit) (((port - 1) 5) + (bit 0x1f)) Keeping this is also useless. GPIO_NUMBER() from the new asm/imx-common/gpio.h can be used instead everywhere needed. That is right - I drop it. -/* GPIO

Re: [U-Boot] [PATCH 3/4] efikamx: update to Efika MX Smarttop and Smartbook boards

2012-08-18 Thread stefano babic
Am 18/08/2012 23:02, schrieb Matt Sealey: On Sat, Aug 18, 2012 at 10:50 AM, Stefano Babic sba...@denx.de wrote: On 17/08/2012 20:19, Matt Sealey wrote: Anyway, who will maintain the efikas in future ? Marek, do you hold it, or Matt will take this job ? I can't test every patch everyone

Re: [U-Boot] [PATCH 2/4] efikamx: remove drive strength hack from early_init_f and move it to the DCD

2012-08-18 Thread stefano babic
and it is not common i.MX code - I can't only make a review because it is difficult to read it. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5

Re: [U-Boot] [PATCH] mx5: add iomux-mx51.h include

2012-08-18 Thread stefano babic
Am 18/08/2012 23:18, schrieb Matt Sealey: I will, for now it's the top of Linus' tree, but this code is going to get removed from the Linux kernel soon, so I understand, we need to figure out where it will last forever (probably linux-stable@3.5) so we can always reference it. Right. Add

Re: [U-Boot] [PATCH v2 1/2] MX28: config: Allow different target generation in elftosb call

2012-08-18 Thread stefano babic
Am 19/08/2012 00:28, schrieb Otavio Salvador: On Sat, Aug 18, 2012 at 7:06 PM, Marek Vasut ma...@denx.de wrote: Dear Otavio Salvador, On Sat, Aug 18, 2012 at 3:03 PM, Marek Vasut marek.va...@gmail.com wrote: I think we should try and see if the mx28 and mx23 .bd can't be converged together

Re: [U-Boot] [PATCH 2/4] efikamx: remove drive strength hack from early_init_f and move it to the DCD

2012-08-18 Thread stefano babic
Am 19/08/2012 00:29, schrieb Marek Vasut: Dear Matt Sealey, On Sat, Aug 18, 2012 at 10:34 AM, Stefano Babic sba...@denx.de wrote: On 17/08/2012 20:19, Matt Sealey wrote: The i.MX Boot ROM lets us set up certain registers before U-Boot even gets executed. Rather than setting up DDR, putting

Re: [U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX

2012-08-19 Thread stefano babic
Am 19/08/2012 00:59, schrieb Fabio Estevam: Hi Stefano, On Sat, Aug 18, 2012 at 12:26 PM, Stefano Babic sba...@denx.de wrote: +#define GPIO_NUMBER(port, index) port)-1)*32)+((index)31)) What about calling this macro IMX_GPIO_NR instead? This way we can have

Re: [U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX

2012-08-19 Thread Stefano Babic
On 19/08/2012 02:25, Benoît Thébaudeau wrote: Hi Stefano, #define MXC_GPIO_PORT_TO_NUM(port, bit) (((port - 1) 5) + (bit 0x1f)) Keeping this is also useless. GPIO_NUMBER() from the new asm/imx-common/gpio.h can be used instead everywhere needed. That is right - I drop it. I

[U-Boot] [PATCH v2] MX: Set a common gpio.h for all i.MX

2012-08-19 Thread Stefano Babic
Signed-off-by: Stefano Babic sba...@denx.de --- Changes in v2: - call the macro IMX_GPIO_NR as in kernel (Fabio Estevam) - change psr in gpio_psr (Benoit Thebaudeau) - drop MXC_GPIO_PORT_TO_NUM and use common macro (Benoit Thebaudeau) arch/arm/include/asm/arch-mx25/gpio.h |5

Re: [U-Boot] [PATCH 1/2] mx28evk: Remove unneeded 'undef'

2012-08-19 Thread Stefano Babic
CONFIG_ENV_IS_IN_SPI_FLASH #ifdef CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_SYS_REDUNDAND_ENVIRONMENT #define CONFIG_ENV_SIZE 0x1000 /* 4KB */ Acked-by: Stefano Babic sba...@denx.de Regards, Stefano

[U-Boot] [PATCH v3] MX: Set a common gpio.h for all i.MX

2012-08-19 Thread Stefano Babic
Signed-off-by: Stefano Babic sba...@denx.de --- Changes in v2: - please ignore this version, it is broken Changes in v3: - call the macro IMX_GPIO_NR as in kernel (Fabio Estevam) - change psr in gpio_psr (Benoit Thebaudeau) - drop MXC_GPIO_PORT_TO_NUM and use common macro (Benoit Thebaudeau

Re: [U-Boot] [PATCH v3] MX: Set a common gpio.h for all i.MX

2012-08-19 Thread stefano babic
Am 19/08/2012 15:30, schrieb Benoît Thébaudeau: Hi Stefano, Your detailed description from v1 is gone. I will add it again Signed-off-by: Stefano Babic sba...@denx.de Your Cc's from v1 are gone. This is ok - I used patman this time, and CC are automatically handled by the tool

[U-Boot] [PATCH v4] MX: Set a common gpio.h for all i.MX

2012-08-20 Thread Stefano Babic
Each i.MX has its own gpio.h, defining the same structure. The internal GPIO controller has the same layout (at least for the register used by u-boot) and can be shared. Signed-off-by: Stefano Babic sba...@denx.de --- Changes in v2: - please ignore this version, it is broken Changes in v3

Re: [U-Boot] [PATCH 1/2] MX28: Drop the cp15 reconfiguration from SPL

2012-08-20 Thread Stefano Babic
as well. [1] http://git.bfuser.eu/?p=marex/mxsldr.git;a=summary Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic

Re: [U-Boot] [PATCH 2/2] MX28: Shuffle around the power management code

2012-08-20 Thread Stefano Babic
On 06/08/2012 23:34, Marek Vasut wrote: Move some function calls to a more appropriate place, so they're called only when needed. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mx28

Re: [U-Boot] [PATCH] rtc: add support of mx27 rtc

2012-08-20 Thread Stefano Babic
regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba

<    1   2   3   4   5   6   7   8   9   10   >