Re: [U-Boot] [PATCH v3 1/3] EXYNOS: EXYNOS4X12: Populate Exynos4x12 register addresses

2012-12-26 Thread Minkyu Kang
On 26/12/12 15:13, Minkyu Kang wrote: > From: Chander Kashyap > > This patch populates base addresses of Exynos4x12 registers. > > Signed-off-by: Chander Kashyap > Signed-off-by: Minkyu Kang > --- > Changes since v2: > - rebased, add SPI and I2S addresses. > > arch/arm/include/asm/arch

Re: [U-Boot] [PATCH v3 2/3] EXYNOS: EXYNOS4X12: Add clock structure for EXYNOS4X12

2012-12-26 Thread Minkyu Kang
On 26/12/12 15:13, Minkyu Kang wrote: > From: Chander Kashyap > > This patch adds clock structure for Exynos4x12. > > Signed-off-by: Chander Kashyap > Signed-off-by: Minkyu Kang > --- > Changes since v2: > - None > > arch/arm/include/asm/arch-exynos/clock.h | 276 > ++

Re: [U-Boot] [PATCH v3 3/3] EXYNOS: EXYNOS4X12: Add gpio structure for EXYNOS4X12

2012-12-26 Thread Minkyu Kang
On 26/12/12 15:13, Minkyu Kang wrote: > From: Chander Kashyap > > This patch adds gpio structure for Exynos4x12. > > Signed-off-by: Chander Kashyap > Signed-off-by: Minkyu Kang > --- > Changes since v2: > - None > > arch/arm/include/asm/arch-exynos/gpio.h | 85 >

Re: [U-Boot] [PATCH 0/5 v3] Add DT based ethernet driver for SMDK5250

2012-12-26 Thread Minkyu Kang
On 11/12/12 19:52, Hatim Ali wrote: > This patch series enables the DT support on SMDK5250. > Ethernet is the first driver whose discovery is based on DT node. > More DT based drivers to be added subsequently > > Changes since v1: > - Renamed the smdk5250.h file to exynos5250-dt.h to create

Re: [U-Boot] [PATCH v2] mx35pdk: Allow booting of a device tree kernel

2012-12-26 Thread Stefano Babic
On 25/12/2012 21:20, Fabio Estevam wrote: > From: Fabio Estevam > > Select CONFIG_OF_LIBFDT, so that a dt kernel can be launched. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH 1/9] mx28evk: We shouldn't hardcode a rootfs filesystem type

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > For a generic environment, we shouldn't have a fixed rootfs filesystem > so we drop it from env. > > Signed-off-by: Otavio Salvador > --- Hi Otavio, > include/configs/mx28evk.h |7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > >

Re: [U-Boot] [PATCH 2/9] mx53loco: We shouldn't hardcode a rootfs filesystem type

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > For a generic environment, we shouldn't have a fixed rootfs filesystem > so we drop it from env. > > Signed-off-by: Otavio Salvador > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- =

Re: [U-Boot] [PATCH 3/9] mx53loco: Change default loadaddr to 0x72000000

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > This allow use of mainline and Freescale BSP Linux kernel with same > environment. > > Signed-off-by: Otavio Salvador > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic --

Re: [U-Boot] [PATCH 4/9] mx6qsabrelite: Change default loadaddr to 0x12000000

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > This allow use of mainline and Freescale BSP Linux kernel with same > environment. > > Signed-off-by: Otavio Salvador > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH 5/9] mx6qsabre_common: Change default loadaddr to 0x12000000

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > This allow use of mainline and Freescale BSP Linux kernel with same > environment. > > Signed-off-by: Otavio Salvador > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH 6/9] mx28evk: Add support to dynamically choose between ftd use or not

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > Signed-off-by: Otavio Salvador > --- Hi Otavio, > include/configs/mx28evk.h | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h > index 3cc0726..5c1c052 1

Re: [U-Boot] [PATCH 7/9] mx53loco: Add support to dynamically choose between ftd use or not

2012-12-26 Thread Stefano Babic
On 21/12/2012 17:59, Otavio Salvador wrote: > Signed-off-by: Otavio Salvador > --- > include/configs/mx53loco.h | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) > Hi Otavio, > diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h > index 4cfdc0b..505957

Re: [U-Boot] [PATCH v3 1/3] EXYNOS: EXYNOS4X12: Populate Exynos4x12 register addresses

2012-12-26 Thread Chander Kashyap
Thanks for applying. On 26 December 2012 15:37, Minkyu Kang wrote: > On 26/12/12 15:13, Minkyu Kang wrote: >> From: Chander Kashyap >> >> This patch populates base addresses of Exynos4x12 registers. >> >> Signed-off-by: Chander Kashyap >> Signed-off-by: Minkyu Kang >> --- >> Changes since v2:

Re: [U-Boot] [PATCH 1/1] omap4: use plain text env file instead boot scripts

2012-12-26 Thread Wolfgang Denk
Dear Javier, In message you wrote: > > I think this change makes sense not only to be consistent with the > OMAP3 Beagle board boot sequence but also to make it easier for > developers to modify U-Boot environment variables. I wasn't aware that Beagle implemented such a change (otherwise I wou

Re: [U-Boot] [PATCH 1/1] omap4: use plain text env file instead boot scripts

2012-12-26 Thread Javier Martinez Canillas
On Wed, Dec 26, 2012 at 12:40 PM, Wolfgang Denk wrote: > Dear Javier, > Hello Wolfgang, > In message > you > wrote: >> >> I think this change makes sense not only to be consistent with the >> OMAP3 Beagle board boot sequence but also to make it easier for >> developers to modify U-Boot enviro

Re: [U-Boot] [PATCH 04/16] EXYNOS5: FDT : Decode peripheral id

2012-12-26 Thread Minkyu Kang
Dear Rajeshwari Shinde, On 14/12/12 20:56, Rajeshwari Shinde wrote: > Api is added to decode peripheral id based on the interrupt number > of the peripheral. > > Signed-off-by: Rajeshwari Shinde > Acked-by; Simon Glass > --- > Changes in V1: > -Rebased on latest u-boot-samsung > arch/arm

Re: [U-Boot] [PATCH 05/16] I2C: Driver changes for FDT support

2012-12-26 Thread Minkyu Kang
Dear Rajeshwari Shinde, On 14/12/12 20:56, Rajeshwari Shinde wrote: > Functions added to get the I2C bus number and reset I2C bus using > FDT node. > > Signed-off-by: Rajeshwari Shinde > Acked-by: Simon Glass > Acked-by: Heiko Schocher > --- > Changes in V1: > -Rebased on latest u-boot-s

Re: [U-Boot] [PATCH 16/16] SPI: EXYNOS: Add FDT support to driver.

2012-12-26 Thread Minkyu Kang
Dear Rajeshwari Shinde, On 14/12/12 20:56, Rajeshwari Shinde wrote: > This patch adds FDT support to the SPI driver. > > Signed-off-by: Simon Glass > Signed-off-by: Rajeshwari Shinde > Acked-by: Simon Glass > --- > Changes in V1: > -Rebased on latest u-boot-samsung > drivers/spi/exynos_

Re: [U-Boot] [PATCH 11/16] Sound: WM8994: Add FDT support to codec

2012-12-26 Thread Minkyu Kang
Dear Rajeshwari Shinde, On 14/12/12 20:56, Rajeshwari Shinde wrote: > This patch adds FDT support to the codec. > > Signed-off-by: Rajeshwari Shinde > Acked-by: Simon Glass > --- > Changes in V1: > -Rebased on latest u-boot-samsung > drivers/sound/wm8994.c | 76

Re: [U-Boot] [PATCH 11/16] Sound: WM8994: Add FDT support to codec

2012-12-26 Thread Rajeshwari Birje
Hi Minkyu Kang, Thank you for comments.Will correct them On Wed, Dec 26, 2012 at 5:25 PM, Minkyu Kang wrote: > Dear Rajeshwari Shinde, > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > This patch adds FDT support to the codec. > > > > Signed-off-by: Rajeshwari Shinde > > Acked-by: Simon Glas

Re: [U-Boot] [PATCH 04/16] EXYNOS5: FDT : Decode peripheral id

2012-12-26 Thread Rajeshwari Birje
Hi Minkyu Kang, Thank you for comments On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > Dear Rajeshwari Shinde, > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > Api is added to decode peripheral id based on the interrupt number > > of the peripheral. > > > > Signed-off-by: Rajeshwari Sh

Re: [U-Boot] [PATCH 05/16] I2C: Driver changes for FDT support

2012-12-26 Thread Rajeshwari Birje
Hi Minkyu Kang, Thank you for comments.Will correct them On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > Dear Rajeshwari Shinde, > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > Functions added to get the I2C bus number and reset I2C bus using > > FDT node. > > > > Signed-off-by: Rajes

Re: [U-Boot] [PATCH 16/16] SPI: EXYNOS: Add FDT support to driver.

2012-12-26 Thread Rajeshwari Birje
Hi Minkyu Kang, Thank you for comments.Will correct them. On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > Dear Rajeshwari Shinde, > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > This patch adds FDT support to the SPI driver. > > > > Signed-off-by: Simon Glass > > Signed-off-by: Rajes

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

2012-12-26 Thread Minkyu Kang
On Sunday, October 7, 2012, Chander Kashyap wrote: > Adds functions to extract clock frequency of Exynos4x12 IPs. > > Signed-off-by: Chander Kashyap > > --- > arch/arm/cpu/armv7/exynos/clock.c | 163 > +++-- > 1 file changed, 158 insertions(+), 5 deletions(-) > >

Re: [U-Boot] [PATCH 05/16] I2C: Driver changes for FDT support

2012-12-26 Thread Rajeshwari Birje
Hi Minkyu Kang, On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > Dear Rajeshwari Shinde, > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > Functions added to get the I2C bus number and reset I2C bus using > > FDT node. > > > > Signed-off-by: Rajeshwari Shinde > > Acked-by: Simon Glass >

Re: [U-Boot] [PATCH 7/9] mx53loco: Add support to dynamically choose between ftd use or not

2012-12-26 Thread Fabio Estevam
On Wed, Dec 26, 2012 at 9:31 AM, Stefano Babic wrote: > Only to remark that this is the correct behavior. The kernel with fdt is > booted independently if this is wanted or not, but if the fdt file is > loaded successfully from MMC or network. This can have some drawback > effects if, for example

Re: [U-Boot] [PATCH 05/16] I2C: Driver changes for FDT support

2012-12-26 Thread Minkyu Kang
On 26 December 2012 21:33, Rajeshwari Birje wrote: > Hi Minkyu Kang, > > On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > > > Dear Rajeshwari Shinde, > > > > On 14/12/12 20:56, Rajeshwari Shinde wrote: > > > Functions added to get the I2C bus number and reset I2C bus using > > > FDT node. >

Re: [U-Boot] [PATCH 5/5] cm-t35: add support for loading splash image from NAND

2012-12-26 Thread Jeroen Hofstee
Hello Nikita, On 12/25/2012 09:56 AM, Nikita Kiryanov wrote: fyi, I noticed that my board compiled with gcc 4.7.3 from ELDK 5.3 will trap if the bitmap is not aligned. Aligned is a bit tricky though since the bitmap has the signature, e.g. "BM" prepended and is thereafter 32 bit aligned (or

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
Robert, On Thu, Dec 20, 2012 at 8:04 PM, Robert Nelson wrote: > Hi Fabio, > > It looks like we need one more fixup after commit c73368150 on the > first run/older (non R, Dialog, bug wired extra Capacitor) version of > this board.. Do you happen to have any in your lab? > > U-Boot 2013.01-rc2-d

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
On Wed, Dec 26, 2012 at 1:02 PM, Fabio Estevam wrote: > With the new PMIC framework: is it safe to call the PMIC API from > board_init function? Calling it from board_late_init fixes the issue for me. Will send the patch soon. Regards, Fabio Estevam ___

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
Robert, On Wed, Dec 26, 2012 at 1:07 PM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 1:02 PM, Fabio Estevam wrote: > >> With the new PMIC framework: is it safe to call the PMIC API from >> board_init function? > > Calling it from board_late_init fixes the issue for me. > > Will send the patch

Re: [U-Boot] [PATCH 04/16] EXYNOS5: FDT : Decode peripheral id

2012-12-26 Thread Simon Glass
Hi, On Wed, Dec 26, 2012 at 4:00 AM, Rajeshwari Birje wrote: > Hi Minkyu Kang, > > Thank you for comments > > On Wed, Dec 26, 2012 at 5:24 PM, Minkyu Kang wrote: > >> Dear Rajeshwari Shinde, >> >> On 14/12/12 20:56, Rajeshwari Shinde wrote: >> > Api is added to decode peripheral id based on the

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
On Wed, Dec 26, 2012 at 1:51 PM, Robert Nelson wrote: > Interesting, I'm still only getting this far on the old Dialog board.. > > U-Boot 2013.01-rc2-00173-gd781d95-dirty (Dec 26 2012 - 09:42:43) > > Board: MX53 LOCO > I2C: ready > DRAM: 1 GiB I tested with 2 mx53loco boards here: one with FS

[U-Boot] [PATCH] mx53loco: Call PMIC related functions from board_late_init()

2012-12-26 Thread Fabio Estevam
From: Fabio Estevam Since commit c733681 (pmic: Extend PMIC framework to support multiple instances of PMIC devices) mx53loco fails to allocate the memory for PMIC: U-Boot 2013.01-rc2-dirty (Dec 20 2012 - 15:55:01) Board: MX53 LOCO I2C: ready DRAM: 1 GiB pmic_alloc: No available memory for

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Robert Nelson
Hi Fabio, On Wed, Dec 26, 2012 at 9:21 AM, Fabio Estevam wrote: > Robert, > > On Wed, Dec 26, 2012 at 1:07 PM, Fabio Estevam wrote: >> On Wed, Dec 26, 2012 at 1:02 PM, Fabio Estevam wrote: >> >>> With the new PMIC framework: is it safe to call the PMIC API from >>> board_init function? >> >> Ca

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Robert Nelson
On Wed, Dec 26, 2012 at 9:54 AM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 1:51 PM, Robert Nelson > wrote: > >> Interesting, I'm still only getting this far on the old Dialog board.. >> >> U-Boot 2013.01-rc2-00173-gd781d95-dirty (Dec 26 2012 - 09:42:43) >> >> Board: MX53 LOCO >> I2C: read

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
On Wed, Dec 26, 2012 at 2:04 PM, Robert Nelson wrote: > Okay, good to hear it works with the Dialog PMIC you have, as that > should cover a majority of the Dialog based boards customers actually > have. As the one I have here was one of the very first ones and i know > something changed later in

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Robert Nelson
On Wed, Dec 26, 2012 at 10:50 AM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 2:04 PM, Robert Nelson > wrote: > >> Okay, good to hear it works with the Dialog PMIC you have, as that >> should cover a majority of the Dialog based boards customers actually >> have. As the one I have here was on

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Fabio Estevam
On Wed, Dec 26, 2012 at 3:08 PM, Robert Nelson wrote: > I'll keep debugging it here, did reverting this commit, help with the resets? > http://git.denx.de/?p=u-boot.git;a=commit;h=28e5ac2d974547bde0c72aa0c1d66fd22c6ef3ad Tried reverting it and still see the data-aborts. I am also testing on my

Re: [U-Boot] [PATCH] mx53loco: Fix PMIC name

2012-12-26 Thread Robert Nelson
On Wed, Dec 26, 2012 at 11:21 AM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 3:08 PM, Robert Nelson > wrote: > >> I'll keep debugging it here, did reverting this commit, help with the resets? >> http://git.denx.de/?p=u-boot.git;a=commit;h=28e5ac2d974547bde0c72aa0c1d66fd22c6ef3ad > > Tried re

Re: [U-Boot] [PATCH v2 8/8] buildman - U-Boot multi-threaded builder and summary tool

2012-12-26 Thread Simon Glass
Hi, On Sat, Dec 15, 2012 at 12:42 PM, Simon Glass wrote: > This tool handles building U-Boot to check that you have not broken it > with your patch series. It can build each individual commit and report > which boards fail on which commits, and which errors come up. It also > shows differences in

Re: [U-Boot] [PATCH 7/9] mx53loco: Add support to dynamically choose between ftd use or not

2012-12-26 Thread Otavio Salvador
On Wed, Dec 26, 2012 at 10:14 AM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 9:31 AM, Stefano Babic wrote: > >> Only to remark that this is the correct behavior. The kernel with fdt is >> booted independently if this is wanted or not, but if the fdt file is >> loaded successfully from MMC or

Re: [U-Boot] [PATCH 1/9] mx28evk: We shouldn't hardcode a rootfs filesystem type

2012-12-26 Thread Otavio Salvador
On Wed, Dec 26, 2012 at 9:02 AM, Stefano Babic wrote: > On 21/12/2012 17:59, Otavio Salvador wrote: >> For a generic environment, we shouldn't have a fixed rootfs filesystem >> so we drop it from env. >> >> Signed-off-by: Otavio Salvador >> --- > > Hi Otavio, > >> include/configs/mx28evk.h |

Re: [U-Boot] [PATCH 6/9] mx28evk: Add support to dynamically choose between ftd use or not

2012-12-26 Thread Otavio Salvador
On Wed, Dec 26, 2012 at 9:15 AM, Stefano Babic wrote: > On 21/12/2012 17:59, Otavio Salvador wrote: >> Signed-off-by: Otavio Salvador >> --- > > Hi Otavio, > >> include/configs/mx28evk.h | 15 +-- >> 1 file changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/include/config

Re: [U-Boot] [PATCH] mxs: Add NAND fdt and ramdisk partition to m28evk

2012-12-26 Thread Otavio Salvador
On Wed, Dec 26, 2012 at 1:13 AM, Marek Vasut wrote: > Dear Otavio Salvador, > >> On Tue, Dec 25, 2012 at 11:08 PM, Marek Vasut wrote: >> > Adjust the NAND partitioning layout so that there is a separate partition >> > for the ramdisk and fdt blob on the NAND. >> > >> > Signed-off-by: Marek Vasut

[U-Boot] Please pull u-boot-x86.git

2012-12-26 Thread Simon Glass
Hi Tom, These are the two that patchwork somehow missed. They are in there now, so here is the pull request for those two. The following changes since commit f8cfcf1b1c7543d5dd103359376a3319301143bc: env: don't generate callback list entries for SPL (2012-12-22 05:57:16 -0700) are available

[U-Boot] [PATCH 0/20] Improvements to memory, hashing functions for sandbox

2012-12-26 Thread Simon Glass
This series aims to get all the memory functions running correctly on sandbox. There was some discussion about this a while ago, and a commit was added to show a possible approach: 355a8357 sandbox: Change md command to use map_physmem This commit was subsequently reverted because it used map_ph

[U-Boot] [PATCH 05/20] sandbox: Change memory commands to use map_physmem

2012-12-26 Thread Simon Glass
Sandbox wants to support commands which use memory. The map_sysmen() call provides this feature, so use this in the memory commands. Signed-off-by: Simon Glass --- common/cmd_mem.c | 122 +++--- 1 files changed, 79 insertions(+), 43 deletions(-)

[U-Boot] [PATCH 03/20] sandbox: Improve sandbox serial port keyboard interface

2012-12-26 Thread Simon Glass
From: Taylor Hutt Implements the tstc() interface for the serial driver. Multiplexing the console between the serial port and a keyboard uses a polling method of checking if characters are available; this means that the serial console must be non-blocking when attempting to read characters. Sig

[U-Boot] [PATCH 18/20] Move CONFIG_SYS_MEMTEST_SCRATCH #ifdef to top of file

2012-12-26 Thread Simon Glass
This config effectively has a default value of 0, so add this setting at the top of the code to remove an #ifdef in the C function. Signed-off-by: Simon Glass --- common/cmd_mem.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c

[U-Boot] [PATCH 06/20] Split out the memory tests into separate functions

2012-12-26 Thread Simon Glass
Half of the code is currently hidden behind an #ifdef. Move the two memory tests into their own functions and use the compiler to eliminate the unused code. Signed-off-by: Simon Glass --- common/cmd_mem.c | 217 +- 1 files changed, 116 inserti

[U-Boot] [PATCH 02/20] Update print_buffer() to use const

2012-12-26 Thread Simon Glass
The buffer cannot be changed by this function, so change the buffer pointer to a const. This allows callers with const pointer to use the function without a cast. Signed-off-by: Simon Glass --- include/common.h |3 ++- lib/display_options.c |3 ++- 2 files changed, 4 insertions(+),

[U-Boot] [PATCH 07/20] Use common mtest iteration counting

2012-12-26 Thread Simon Glass
The iteration code is the same for each version of the memory test, so pull it out into the common function. Signed-off-by: Simon Glass --- common/cmd_mem.c | 123 ++ 1 files changed, 59 insertions(+), 64 deletions(-) diff --git a/common/cmd_

[U-Boot] [PATCH 11/20] Update set_working_fdt_addr() to use setenv_addr()

2012-12-26 Thread Simon Glass
We might as well use this common function instead of repeating the same code. Signed-off-by: Simon Glass --- common/cmd_fdt.c| 11 ++- common/cmd_nvedit.c |8 include/common.h| 14 +- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/co

[U-Boot] [PATCH 20/20] sandbox: Allow hash functions to work correctly

2012-12-26 Thread Simon Glass
Use map_sysmem() so that hashing is possible on sandbox. Signed-off-by: Simon Glass --- common/hash.c | 25 + 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/common/hash.c b/common/hash.c index e92b4b1..2e0a67b 100644 --- a/common/hash.c +++ b/common/has

[U-Boot] [PATCH 01/20] Tidy up error checking and fix bug in hash command

2012-12-26 Thread Simon Glass
There are two problems: 1. The argument count needs to be checked before argv is used 2. When verify is not enabled, we need to define a constant zero value Signed-off-by: Simon Glass --- common/cmd_hash.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/cmd_ha

[U-Boot] [PATCH 12/20] common: Use new numeric setenv functions

2012-12-26 Thread Simon Glass
Use setenv_ulong(), setenv_hex() and setenv_addr() in common/ Signed-off-by: Simon Glass --- common/cmd_bootm.c| 11 +++ common/cmd_cbfs.c |4 +--- common/cmd_cramfs.c |4 +--- common/cmd_fdos.c |4 +--- common/cmd_jffs2.c|4 +--- common/cmd_load.c

[U-Boot] [PATCH 10/20] Reduce casting in mtest

2012-12-26 Thread Simon Glass
Use a ulong for the command arguments, and only cast to an address when needed. This fixes warnings in sandbox where pointers are typically 64 bits long. Signed-off-by: Simon Glass --- common/cmd_mem.c | 30 ++ 1 files changed, 18 insertions(+), 12 deletions(-) dif

[U-Boot] [PATCH 09/20] Bring mtest putc() into common code

2012-12-26 Thread Simon Glass
If we get a Ctrl-C abort, we always print a newline. Move this repeated code out of the functions and into a single place in the caller. Signed-off-by: Simon Glass --- common/cmd_mem.c | 32 +--- 1 files changed, 9 insertions(+), 23 deletions(-) diff --git a/common

[U-Boot] [PATCH 14/20] net: Use new numeric setenv functions

2012-12-26 Thread Simon Glass
Use setenv_hex() and setenv_addr() in net/ Signed-off-by: Simon Glass --- drivers/net/fm/fm.c |4 +--- net/net.c |8 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/net/fm/fm.c b/drivers/net/fm/fm.c index 49c74c2..8d70586 100644 --- a/drivers/net

[U-Boot] [PATCH 13/20] drivers: Use new numeric setenv functions

2012-12-26 Thread Simon Glass
Use setenv_ulong(), setenv_hex() and setenv_addr() in drivers/ Signed-off-by: Simon Glass --- fs/fs.c |4 +--- fs/ubifs/ubifs.c |4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 023e7ef..2c9f2c5 100644 --- a/fs/fs.c +++ b/fs/fs.c @@

[U-Boot] [PATCH 04/20] sandbox: Add un/map_sysmen() to deal with sandbox's ram_buf

2012-12-26 Thread Simon Glass
Sandbox doesn't actually provide U-Boot access to the machine's physical memory. Instead it provides a RAM buffer of configurable size, and all memory accesses are within that buffer. Sandbox memory starts at 0 and is CONFIG_DRAM_SIZE bytes in size. Allowing access outside this buffer might produce

[U-Boot] [PATCH 16/20] Roll crc32 into hash infrastructure

2012-12-26 Thread Simon Glass
Add the CRC32 algorithm to the list of available hashes, and make the crc32 command use hash_command(). Add a new crc32_wd_buf() to make this possible, which puts its result in a buffer rather than returning it as a 32-bit value. Signed-off-by: Simon Glass --- common/cmd_mem.c | 73 ---

[U-Boot] [PATCH 08/20] Fix mtest indenting

2012-12-26 Thread Simon Glass
Some of the inner loops are not indented correctly. Fix this. Signed-off-by: Simon Glass --- common/cmd_mem.c | 324 +++--- 1 files changed, 162 insertions(+), 162 deletions(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 41c1e70..648f9

[U-Boot] [PATCH 17/20] sandbox: config: Enable hash functions and mtest

2012-12-26 Thread Simon Glass
Enable the hash command and sha1/256 hashing for sandbox. Also use a better address for memory testing (since the existing one is set up for linux host memory space). Signed-off-by: Simon Glass --- include/configs/sandbox.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 15/20] image: Use crc header file instead of C prototypes

2012-12-26 Thread Simon Glass
We have an existing header which the crc32 definitions, so use it. Signed-off-by: Simon Glass --- common/image.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image.c b/common/image.c index 95498e6..936b08c 100644 --- a/common/image.c +++ b/common/image.c @@

[U-Boot] [PATCH 19/20] sandbox: Update mtest to fix crashes

2012-12-26 Thread Simon Glass
Use map_sysmem() in the memory tester so that it works as expected on sandbox. Signed-off-by: Simon Glass --- common/cmd_mem.c | 97 +- 1 files changed, 52 insertions(+), 45 deletions(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index

[U-Boot] [PATCH 0/11] sandbox: Add filesystem support

2012-12-26 Thread Simon Glass
This series adds support for filesystems to sandbox. While we don't yet have access to host machine block devices, we can access files on the host through a new 'host' filesystem type and the new sandbox command 'sb'. For example: sb load host 0 1000 foo.bar will load foo.bar from the host into

[U-Boot] [PATCH 02/11] fs: Fully populate the filesystem method struct

2012-12-26 Thread Simon Glass
There is a structure in fs.c with just a probe method. By adding methods for other operations, we can avoid lots of #ifdefs and switch()s. As a first step, create the structure ready for use. Signed-off-by: Simon Glass --- fs/fs.c | 56 +++-

[U-Boot] [PATCH 07/11] sandbox: Add a way of obtaining directory listings

2012-12-26 Thread Simon Glass
This implementation uses opendir()/readdir() to access the directory information and then puts it in a linked list for the caller's use. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 101 + include/os.h | 48 +++

[U-Boot] [PATCH 06/11] fs: Move ls and read methods into ext4, fat

2012-12-26 Thread Simon Glass
It doesn't make a lot of sense to have these methods in fs.c. They are filesystem-specific, not generic code. Add each to the relevant filesystem and remove the associated #ifdefs in fs.c. Signed-off-by: Simon Glass --- fs/ext4/ext4fs.c | 37 + fs/fat/fat.c | 17

[U-Boot] [PATCH 04/11] fs: Tell probe functions where to put their results

2012-12-26 Thread Simon Glass
Rather than rely on global variables for the probe functions, pass in the information that we need filled in. This allows us to potentially keep the variables private to fs.c in the future, and the meaning of the probe function is clearer. Signed-off-by: Simon Glass --- fs/fs.c | 20 ++

[U-Boot] [PATCH 05/11] fs: Use map_sysmem() on read

2012-12-26 Thread Simon Glass
This allows us to use filesystems on sandbox. It has no effect on other architectures. Signed-off-by: Simon Glass --- fs/fs.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 3561727..0cbec99 100644 --- a/fs/fs.c +++ b/fs/fs.

[U-Boot] [PATCH 08/11] sandbox: Add host filesystem

2012-12-26 Thread Simon Glass
This allows reading of files from the host filesystem in sandbox. Signed-off-by: Simon Glass --- Makefile |1 + disk/part.c| 17 ++ fs/fs.c| 10 ++ fs/sandbox/Makefile| 47 +++ fs/sandbox/sandboxfs.c |

[U-Boot] [PATCH 03/11] fs: Use filesystem methods instead of switch()

2012-12-26 Thread Simon Glass
We can use the available methods and avoid using switch(). When the filesystem is not supported, we fall through to the 'unsupported' methods: fs_probe_unsupported() prints an error, so the others do not need to. Signed-off-by: Simon Glass --- fs/fs.c | 60 ++---

[U-Boot] [PATCH 09/11] sandbox: Add 'sb' command to access filesystem features

2012-12-26 Thread Simon Glass
The new 'sb' command is intended to deal with sandbox-specific features that have no parallel in other archs. This commit adds two sub-commands to list a directory and read a file from the host filesystem. Signed-off-by: Simon Glass --- README |1 + common/Makefile

[U-Boot] [PATCH 10/11] sandbox: Enable ext4 and fat filesystems

2012-12-26 Thread Simon Glass
These are useful for build-testing code, at least. Signed-off-by: Simon Glass --- include/configs/sandbox.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 9f51a0b..2a45c7b 100644 --- a/include/configs/san

[U-Boot] [PATCH 11/11] sandbox: config: Enable sandbox command

2012-12-26 Thread Simon Glass
The 'sb' command allows loading files from the host, and listing directories. Signed-off-by: Simon Glass --- include/configs/sandbox.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 2a45c7b..406da43 100644 ---

[U-Boot] [PATCH 01/11] ext4: Split write support into its own file

2012-12-26 Thread Simon Glass
This code seems to be entirely othogonal, so remove the #ifdef and put the condition in the Makefile instead. Signed-off-by: Simon Glass --- fs/ext4/Makefile |2 +- fs/ext4/ext4_write.c | 996 ++ fs/ext4/ext4fs.c | 963 ---

Re: [U-Boot] [PATCH 8/9] SMDK5250: Enable eMMC booting

2012-12-26 Thread Simon Glass
Hi Amarendra, On Thu, Dec 20, 2012 at 5:53 AM, Amarendra Reddy wrote: > Hi SImon, > > Thanks for the review comments. > Please find below the responses for your comments. > > Thanks & Regards > Amarendra > > On 20 December 2012 08:05, Simon Glass wrote: >> >> Hi Amar, >> >> On Mon, Dec 17, 2012

Re: [U-Boot] [U-Boot,v2,2/2] spi: Add SPI flash test

2012-12-26 Thread Simon Glass
Hi, On Wed, Dec 19, 2012 at 5:07 PM, Tom Rini wrote: > On Thu, Dec 20, 2012 at 12:19:24AM +0100, Wolfgang Denk wrote: >> Dear Tom Rini, >> >> In message <20121219225956.GG14589@bill-the-cat> you wrote: >> > >> > Applied to u-boot/master, thanks! >> >> Please see my comment from a few minutes ago.

Re: [U-Boot] [PATCH] arm/bootstage: Move the bootstage call after gd init

2012-12-26 Thread Simon Glass
Hi Vikram, On Sun, Dec 23, 2012 at 3:27 AM, Vikram Narayanan wrote: > bootstage_mark_name calls timer_get_boot_us which inturn calls > the arch timer. The arch timer uses the gd pointer to save the > lastinc count. A call to bootstage_mark_name here results in a > data abort as gd is uninitialize

Re: [U-Boot] [PATCH v4 1/2] arm: move C runtime setup code in crt0.S

2012-12-26 Thread Simon Glass
Hi Albert, On Sun, Dec 23, 2012 at 7:03 AM, Albert ARIBAUD wrote: > Hi Simon, > > On Fri, 30 Nov 2012 14:10:01 -0800, Simon Glass > wrote: > >> >> I tried to test it on a snow (exynos5250) but couldn't really sync up >> >> with our tree, so gave up. I am not completely sure about how the >> >> C

Re: [U-Boot] [PATCH 15/20] image: Use crc header file instead of C prototypes

2012-12-26 Thread Marek Vasut
Dear Simon Glass, > We have an existing header which the crc32 definitions, so use it. > > Signed-off-by: Simon Glass Looks ok. Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailma

[U-Boot] [PATCH 0/15] Enhance SPI/SPI flash probing, add support for Intel ICH controller

2012-12-26 Thread Simon Glass
Adding new fields to struct spi_slave and struct spi_flash is painful, because most drivers don't zero the fields they don't use. Anyway it seems better to have the SPI/SPI flash infrastructure provide a simple way of doing this that all drivers can use. So the first part of this series adds spi_a

[U-Boot] [PATCH 01/15] fdt: Use sed instead of cpp to pre-process the dtc

2012-12-26 Thread Simon Glass
Include file support in dtc is still not available in common distributions so we need to keep our preprocessing arrangement around for a little longer. But # is commonly used in FDT files, so use sed instead of cpp for this preprocessing. Signed-off-by: Simon Glass --- dts/Makefile | 10 -

[U-Boot] [PATCH 03/15] spi: Add function to allocate a new SPI slave

2012-12-26 Thread Simon Glass
At present it is difficult to extend the SPI structure since all drivers allocate it themselves, and few of them zero all fields. Add a new function spi_alloc_slave() which can be used by SPI drivers to perform this allocation, and thus ensure that all drivers can better cope with SPI structure cha

[U-Boot] [PATCH 02/15] fdt: Add fdtdec_get_addr_size() to read reg properties

2012-12-26 Thread Simon Glass
It is common to have a "reg = " property in the FDT. Add a function to handle this, similar to the existing fdtdec_get_addr(); Signed-off-by: Simon Glass --- include/fdtdec.h | 15 +++ lib/fdtdec.c | 26 +- 2 files changed, 36 insertions(+), 5 deletion

[U-Boot] [PATCH 05/15] sf: Add spi_flash_alloc() to create a new SPI flash struct

2012-12-26 Thread Simon Glass
At present it is difficult to extend the SPI flash structure since all devices allocate it themselves, and few of them zero all fields. Add a new function spi_flash_alloc() which can be used by SPI devices to perform this allocation, and thus ensure that all devices can better cope with SPI structu

[U-Boot] [PATCH 04/15] spi: Use spi_alloc_slave() in each SPI driver

2012-12-26 Thread Simon Glass
Rather than each driver having its own way to allocate a SPI slave, use the new allocation function everywhere. This will make it easier to extend the interface without breaking drivers. Signed-off-by: Simon Glass --- drivers/spi/altera_spi.c|4 +--- drivers/spi/andes_spi.c |4 +-

[U-Boot] [PATCH 06/15] sf: Use spi_flash_alloc() in each SPI flash driver

2012-12-26 Thread Simon Glass
Rather than each device having its own way to allocate a SPI flash structure, use the new allocation function everywhere. This will make it easier to extend the interface without breaking devices. Signed-off-by: Simon Glass --- drivers/mtd/spi/atmel.c|8 +--- drivers/mtd/spi/eon.c

[U-Boot] [PATCH 10/15] x86: spi: Set maximum write size for ICH

2012-12-26 Thread Simon Glass
This SPI controller can only write 64 bytes at a time. Add this restriction in so that 'sf write' works correct for blocks larger than 64 bytes. Signed-off-by: Simon Glass --- drivers/spi/ich.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/spi/ich.c b/drive

[U-Boot] [PATCH 09/15] sf: Respect maximum SPI write size

2012-12-26 Thread Simon Glass
Some SPI flash controllers (e.g. Intel ICH) have a limit on the number of bytes that can be in a write transaction. Support this by breaking the writes into multiple transactions. Signed-off-by: Simon Glass --- drivers/mtd/spi/spi_flash.c | 10 -- 1 files changed, 8 insertions(+), 2 de

[U-Boot] [PATCH 13/15] x86: Add FDT SPI node for link

2012-12-26 Thread Simon Glass
Add a memory-mapped 8GB SPI chip. Signed-off-by: Simon Glass --- board/chromebook-x86/dts/link.dts | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/board/chromebook-x86/dts/link.dts b/board/chromebook-x86/dts/link.dts index ae8217d..d0738cb 100644 --- a/board/

[U-Boot] [PATCH 14/15] x86: Enable SPI flash support for coreboot

2012-12-26 Thread Simon Glass
Turn on SPI flash support and related commands. Signed-off-by: Simon Glass --- include/configs/coreboot.h | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index fd383ff..ea92ffe 100644 --- a/include/config

[U-Boot] [PATCH 15/15] x86: Enable time command for coreboot

2012-12-26 Thread Simon Glass
This command is useful for measuring SPI flash load times and the like. Signed-off-by: Simon Glass --- include/configs/coreboot.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index ea92ffe..4b6eb73 100644 --- a/i

[U-Boot] [PATCH 07/15] x86: spi: Add Intel ICH driver

2012-12-26 Thread Simon Glass
This supports Intel ICH7/9. The Intel controller is a little unusual in that it is mostly intended for use with SPI flash, and has some optimisations and features specifically for that application. In particular it is not possible to support ongoing transactions that continue over many calls with S

[U-Boot] [PATCH 08/15] spi: Add parameter for maximum write size

2012-12-26 Thread Simon Glass
Some SPI controllers (e.g. Intel ICH) have a limit on the number of SPI bytes that can be written at a time. Add this as a parameter so that clients of the SPI interface can respect this value. Signed-off-by: Simon Glass --- include/spi.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions

[U-Boot] [PATCH 11/15] sf: Enable FDT-based configuration and memory mapping

2012-12-26 Thread Simon Glass
Enable device tree control of SPI flash, and use this to implement memory-mapped SPI flash, which is supported on Intel chips. Signed-off-by: Simon Glass --- drivers/mtd/spi/spi_flash.c | 46 ++- include/fdtdec.h|1 + include/spi_flash.h

[U-Boot] [PATCH 12/15] x86: Move PCI init before SPI init

2012-12-26 Thread Simon Glass
It is possible that our PCI bus will provide the SPI controller, so change the init order to make this work. Signed-off-by: Simon Glass --- arch/x86/lib/board.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c index 55530

  1   2   >