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

2012-07-08 Thread Tetsuyuki Kobayashi
Hi, Iwamatsu-san I found another bug and fixed it right now. I will add another patch in this patch series. I will post v3 soon. Please wait to apply v2. (2012/07/07 20:23), Tetsuyuki Kobayashi wrote: Hi, Iwamatsu-san I made v2 patch set for kzm9g. Please revert my previous 3 patches and appl

Re: [U-Boot] [STATUS] ARM - many build problems

2012-07-08 Thread Thierry Reding
On Mon, Jul 09, 2012 at 12:25:27AM +0200, Wolfgang Denk wrote: > Hi all, > > after merging the latest ARM pull request, a large number of boards is > broken: > > - SUMMARY > Boards compiled: 302 > Boards with errors: 6 ( harmony seaboard ventana wh

Re: [U-Boot] [PATCH V2 7/8] arm/davinci: spl - boot device selection

2012-07-08 Thread Prabhakar Lad
Hi Mikhail, On Mon, Jul 9, 2012 at 9:01 AM, Mikhail Kshevetskiy wrote: > This patch allow us to have a universal spl that detects a boot > device and select a corresponding boot algorithm for main u-boot part > (SOC_DA8XX only) > > This patch create copy copy of drivers/mtd/nand/nand_spl_load.c a

[U-Boot] [PATCH V2 8/8] arm/davinci: spl - add compressed u-boot image support

2012-07-08 Thread Mikhail Kshevetskiy
Motivation: * we have a board with 128 Kb spi flash, so normal u-boot.ais does not fit on it. This patch add support of compressed 2-nd u-boot stage. To create a compressed ais image its required: * define CONFIG_SPL_GUNZIP_SUPPORT --- enable compressed ais image supports * define CONFIG_SPL

[U-Boot] [PATCH V2 7/8] arm/davinci: spl - boot device selection

2012-07-08 Thread Mikhail Kshevetskiy
This patch allow us to have a universal spl that detects a boot device and select a corresponding boot algorithm for main u-boot part (SOC_DA8XX only) This patch create copy copy of drivers/mtd/nand/nand_spl_load.c and drivers/mtd/spi/spi_spl_load.c for the following reasons: * avoid jump to main

[U-Boot] [PATCH V2 6/8] MMC: u-boot-spl may be compiled without partition support

2012-07-08 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- Change for v2: * fix checkpatch warnings --- drivers/mmc/mmc.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index aebe578..69df64a 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1253,7 +1253,9 @@

[U-Boot] [PATCH V2 5/8] mtd/spi: add sst25l driver

2012-07-08 Thread Mikhail Kshevetskiy
Current SST driver does not support well this types of flash, so introduce a new one. This code is a combination of sst.c driver from u-boot and sst25l.c driver from linux-3.3 release. I try to make a code as close to linux driver as it was possible. Signed-off-by: Mikhail Kshevetskiy --- Change

[U-Boot] [PATCH V2 4/8] mtd/spi/spi_flash: support CMD_READ_ID=0x90 case

2012-07-08 Thread Mikhail Kshevetskiy
current code does not support spi flashes that have 0x90 read_id command, so fix this Signed-off-by: Mikhail Kshevetskiy --- Change for v2: * fix checkpatch warnings --- drivers/mtd/spi/spi_flash.c | 66 +++--- drivers/mtd/spi/spi_flash_internal.h |1 +

[U-Boot] [PATCH V2 2/8] arm/davinci/da850: add uart0 pinmux

2012-07-08 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- Change for v2: * fix checkpatch warnings --- arch/arm/cpu/arm926ejs/davinci/da850_pinmux.c |5 + arch/arm/include/asm/arch-davinci/hardware.h|1 + arch/arm/include/asm/arch-davinci/pinmux_defs.h |1 + 3 files changed, 7 insertions(+)

[U-Boot] [PATCH V2 3/8] serial/ns16550: ns16550 has a different register layout on SOC_DA8XX

2012-07-08 Thread Mikhail Kshevetskiy
also fix NS16550_init() as we need 16x divider Signed-off-by: Mikhail Kshevetskiy Acked-by: Christian Riesch Tested-by: Christian Riesch --- Change for v2: * fix checkpatch warnings --- drivers/serial/ns16550.c |2 +- include/ns16550.h|9 + 2 files changed, 10 insertio

[U-Boot] [PATCH V2 1/8] arm/davinci: fix DDR2/mDDR memory controller initialization for Omap L138

2012-07-08 Thread Mikhail Kshevetskiy
follow section 15.2.13.1 (Initializing Following Device Power Up or Reset) of OMAP-L138 DSP+ARM Processor Technical Reference Manual Signed-off-by: Mikhail Kshevetskiy Acked-by: Christian Riesch Tested-by: Christian Riesch --- Change for v2: * fix checkpatch warnings --- arch/arm/cpu/arm926ej

Re: [U-Boot] [STATUS] ARM - many build problems

2012-07-08 Thread Tetsuyuki Kobayashi
Dear Wolfgang Denk, (07/09/2012 07:25 AM), Wolfgang Denk wrote: > cpu.c: In function 'save_boot_params_default': > cpu.c:48:1: warning: -fstack-usage not supported for this target > [enabled by default] > /bin/sh: line 1: exit: too many arguments > make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error

Re: [U-Boot] [PATCH v2 0/4] mmc: Support designWare Controller

2012-07-08 Thread Jaehoon Chung
Hi Andy, Could you merge these series? If you don't mind, could we merge this at u-boot-samsung? To use the exynos5, must enable the DesignWare Controller for eMMC. Best Regards, Jaehoon Chung On 07/03/2012 04:57 PM, Jaehoon Chung wrote: > Include mmc:dw-mmc:support DesignWare MMC controller at

Re: [U-Boot] [PATCH] net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000

2012-07-08 Thread Tetsuyuki Kobayashi
Dear Wolfgang Denk, (07/09/2012 04:58 AM), Wolfgang Denk wrote: > Dear Tetsuyuki Kobayashi, > > In message <4fe85b87.6090...@kmckk.co.jp> you wrote: >> NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000. > > Your patch is OK per se, but please note that it is a mandatory

Re: [U-Boot] Compiling Uboot error:too many arguments

2012-07-08 Thread Marek Vasut
Dear Wolfgang Denk, > Dear Zhang Heron, > > In message you wrote: > > I met a problem when I compiled the Uboot source code for board > > > > trimslice as follows: > ... > > > rc=$( cat /home/zql/u-boot-arm/board/compulab/dts/tegra2-trimslice.dts | > > No such code exists in mainline U-B

[U-Boot] [PATCH 2/3] MX28: SPI: Pull out the PIO transfer function

2012-07-08 Thread Marek Vasut
Pull out all the PIO transfer logic into separate function, so DMA can be added. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Otavio Salvador Cc: Stefano Babic Cc: Wolfgang Denk --- drivers/spi/mxs_spi.c | 72 +++-- 1 file changed, 40 inserti

[U-Boot] [PATCH 3/3] MX28: SPI: Add DMA transfer support

2012-07-08 Thread Marek Vasut
The DMA transfers happen only if the transfered data are larger than 512 bytes. Otherwise PIO is used. This is a small speed optimization. The DMA transfer doesn't work if unaligned transfer is requested due to the limitation of the DMA controller. This has to be fixed by introducing generic bounc

[U-Boot] [PATCH 1/3] MX28: SPI: Refactor spi_xfer a bit

2012-07-08 Thread Marek Vasut
This makes it easier to adapt for addition of DMA support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Otavio Salvador Cc: Stefano Babic Cc: Wolfgang Denk --- drivers/spi/mxs_spi.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/dr

Re: [U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Marek Vasut
Dear Ilya Yanok, > Dear Marek, > > On Mon, Jul 9, 2012 at 1:31 AM, Marek Vasut wrote: > > > non-ARMv7 system now to do some testing... > > > But it used to work without any alignment, right? (with disabled > > > dcache, > > > > of > > > > > course) > > > That makes me think that data buffers d

Re: [U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Ilya Yanok
Dear Marek, On Mon, Jul 9, 2012 at 1:31 AM, Marek Vasut wrote: > > non-ARMv7 system now to do some testing... > > But it used to work without any alignment, right? (with disabled dcache, > of > > course) > > That makes me think that data buffers don't need any alignment (from USB > > pov, not ca

[U-Boot] [STATUS] ARM - many build problems

2012-07-08 Thread Wolfgang Denk
Hi all, after merging the latest ARM pull request, a large number of boards is broken: - SUMMARY Boards compiled: 302 Boards with errors: 6 ( harmony seaboard ventana whistler paz00 trimslice ) Boards with warnings but no errors: 49 ( ca9x4_ct_vxp

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

2012-07-08 Thread Marek Vasut
Dear Tom Rini, > On Sun, Jul 8, 2012 at 11:51 AM, Marek Vasut wrote: > > Dear Ilya Yanok, > > > >> Hi Marek, > >> > >> On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: > >> > >> [...] > >> > >> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > >> > >> > index 04300b

Re: [U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Marek Vasut
Dear Ilya Yanok, > Dear Marek, > > On Sun, Jul 8, 2012 at 10:59 PM, Marek Vasut wrote: > > btw. this will fail with cache line < 32 . > > Hm.. I have to admit I'm not very much into USB specs and I don't have any > non-ARMv7 system now to do some testing... > But it used to work without any ali

Re: [U-Boot] [PATCH v2] ext2fs: fix warning: 'blocknxt' may be used uninitialized

2012-07-08 Thread Wolfgang Denk
Dear Kim Phillips, In message <20120703174156.a1082309c2b205216606a...@freescale.com> you wrote: > This warning was introduced in 436da3c "ext2load: increase read > speed": > > ext2fs.c: In function 'ext2fs_read_file': > ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this func=

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

2012-07-08 Thread Tom Rini
On Sun, Jul 8, 2012 at 11:51 AM, Marek Vasut wrote: > Dear Ilya Yanok, > >> Hi Marek, >> >> On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: >> >> [...] >> >> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c >> >> > index 04300be..5199560 100644 >> > --- a/drivers/usb/host

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

2012-07-08 Thread Wolfgang Denk
Dear Michael, In message <201207082236.18040.mich...@walle.cc> you wrote: > > Kim Philipps already posted a patch for this, see here: > http://patchwork.ozlabs.org/patch/169295/ I see. Tnx. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel

Re: [U-Boot] [PATCH] tools: Fix mingw tools build

2012-07-08 Thread Wolfgang Denk
Dear Vladimir Yakovlev, In message <1341691506-17106-1-git-send-email-na...@inbox.ru> you wrote: > mkenvimage does not build due to missed os_support.o and unsupported > file modes S_IRGRP S_IWGRP. > Tested with mingw 4.2.1 on ubuntu 12.04. > > Signed-off-by: Vladimir Yakovlev > --- > tools/Mak

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

2012-07-08 Thread Wolfgang Denk
Dear Kim Phillips, In message <20120705181932.351bb5e527cb14b435961...@freescale.com> you wrote: > commit "net: use common rand()/srand() functions" introduced the following > build warning on the current u-boot-arm tree: > > $ ./MAKEALL MPC8313ERDB_66 > Configuring for MPC8313ERDB_66 - Board: MP

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

2012-07-08 Thread Michael Walle
Hi Wolfgang, Am Sonntag 08 Juli 2012, 22:31:36 schrieben Sie: > Dear Michael, > > In message <1338931997-13419-3-git-send-email- mich...@walle.cc> you wrote: > > Replace rand() with the functions from lib/. The link-local network code > > stores its own seed, derived from the MAC address. Thus

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

2012-07-08 Thread Wolfgang Denk
Dear Michael, In message <1338931997-13419-3-git-send-email-mich...@walle.cc> you wrote: > Replace rand() with the functions from lib/. The link-local network code > stores its own seed, derived from the MAC address. Thus making it > independent from calls to srand() in other modules. > > Signed-

Re: [U-Boot] Pull request: u-boot-arm/master

2012-07-08 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message <20120707141238.6d578281@lilith> you wrote: > > The following changes since commit > 558cd995d6d3eaa94fb342d142289a1fa2f76ba3: > > tools/mkenvimage.c: fix basename(3) usage (2012-07-02 20:21:49 +0200) > > are available in the git repository at: > > git://git

Re: [U-Boot] [PATCH] Remove remaining mdelay() macros

2012-07-08 Thread Wolfgang Denk
Dear Anatolij Gustschin, In message <1335343403-4405-1-git-send-email-ag...@denx.de> you wrote: > Drop mdelay() macros since we already have a common mdelay() func. > > Signed-off-by: Anatolij Gustschin > --- > drivers/block/sata_sil.c |1 - > drivers/video/da8xx-fb.c |1 - > 2 files ch

Re: [U-Boot] [PATCH] net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000

2012-07-08 Thread Wolfgang Denk
Dear Tetsuyuki Kobayashi, In message <4fe85b87.6090...@kmckk.co.jp> you wrote: > NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000. Your patch is OK per se, but please note that it is a mandatory requirement that CONFIG_SYS_HZ == 1000. So if you have any board where this

Re: [U-Boot] [PATCH] i.MX28: bug fixes in PMU configuration code

2012-07-08 Thread Fabio Estevam
Hi Marek, On Sun, Jul 8, 2012 at 4:15 PM, Marek Vasut wrote: > Fabio, can you give it a quick spin on mx28evk so we can roll this late into > this release maybe ? I don't have access to my mx28evk now and will be out of the office in the following 2 weeks. Maybe Otavio could test it on a mx28e

Re: [U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Ilya Yanok
Dear Marek, On Sun, Jul 8, 2012 at 10:59 PM, Marek Vasut wrote: > btw. this will fail with cache line < 32 . > Hm.. I have to admit I'm not very much into USB specs and I don't have any non-ARMv7 system now to do some testing... But it used to work without any alignment, right? (with disabled d

Re: [U-Boot] [PATCH] i.MX28: bug fixes in PMU configuration code

2012-07-08 Thread Marek Vasut
Dear Stathis Voukelatos, > Fixed some typos in the i.MX28 PMU code that sets up the VDDD > and VDDIO power rails. In addition the VDDD and VDDIO brownout > offset values should be divided by a step size before being > programmed to the corresponding registers. > > Signed-off-by: Stathis Voukelato

Re: [U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Marek Vasut
Dear Ilya Yanok, > Align buffers passed to the USB code to cache line size so > they can be DMAed safely. > > Signed-off-by: Ilya Yanok > --- > Depens on Marek's patch [1] for DEFINE_CACHE_ALIGN_BUFFER. Isn't it your patch anyway? You should get the credit for that series, you know ... btw. t

Re: [U-Boot] [PATCH] usb_storage: fix ehci driver max transfer size

2012-07-08 Thread Marek Vasut
Dear Stefan Herbrechtsmeier, > Am 07.07.2012 23:58, schrieb Marek Vasut: > >> Am 04.07.2012 08:57, schrieb Schneider, Kolja: > Am 03.07.2012 20:10, schrieb Marek Vasut: > >> The commit 5dd95cf93dfffa1d19a1928990852aac9f55b9d9 'usb_storage: > >> Fix EHCI "out of buffer pointers" with C

Re: [U-Boot] [PATCH 1/2] common.h: Introduce DEFINE_CACHE_ALIGN_BUFFER

2012-07-08 Thread Marek Vasut
Dear Ilya Yanok, > Hi Marek, > > On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: > > This is the out-of-function-scope counterpart of > > ALLOC_CACHE_ALIGN_BUFFER. > > +#define DEFINE_CACHE_ALIGN_BUFFER(type, name, size)\ > > + static char __##name[roundup(size * siz

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

2012-07-08 Thread Marek Vasut
Dear Ilya Yanok, > Hi Marek, > > On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: > > [...] > > diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > > > index 04300be..5199560 100644 > > --- a/drivers/usb/host/ehci-hcd.c > > +++ b/drivers/usb/host/ehci-hcd.c > > @@ -34,7

Re: [U-Boot] Please pull u-boot-mpc85xx.git

2012-07-08 Thread Wolfgang Denk
Dear Andy Fleming, In message <1341613933-22669-1-git-send-email-aflem...@freescale.com> you wrote: > tools/mkenvimage.c: fix basename(3) usage (2012-07-02 20:21:49 +0200) > > are available in the git repository at: > git://www.denx.de/git/u-boot-mpc85xx.git master > > Prabhakar Kushwaha (8)

Re: [U-Boot] Compiling Uboot error:too many arguments

2012-07-08 Thread Wolfgang Denk
Dear Zhang Heron, In message you wrote: > > I met a problem when I compiled the Uboot source code for board > trimslice as follows: ... > rc=$( cat /home/zql/u-boot-arm/board/compulab/dts/tegra2-trimslice.dts | No such code exists in mainline U-Boot, so we cannot help you about that. Pleas

[U-Boot] [PATCH] smsc95xx: align buffers to cache line size

2012-07-08 Thread Ilya Yanok
Align buffers passed to the USB code to cache line size so they can be DMAed safely. Signed-off-by: Ilya Yanok --- Depens on Marek's patch [1] for DEFINE_CACHE_ALIGN_BUFFER. [1] http://patchwork.ozlabs.org/patch/169619/ drivers/usb/eth/smsc95xx.c | 13 + 1 file changed, 9 inserti

Re: [U-Boot] [PATCH 1/2] common.h: Introduce DEFINE_CACHE_ALIGN_BUFFER

2012-07-08 Thread Ilya Yanok
Hi Marek, On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: > This is the out-of-function-scope counterpart of > ALLOC_CACHE_ALIGN_BUFFER. > +#define DEFINE_CACHE_ALIGN_BUFFER(type, name, size)\ > + static char __##name[roundup(size * sizeof(type), > ARCH_DMA_MINALIGN)

Re: [U-Boot] [PATCH] usb_storage: fix ehci driver max transfer size

2012-07-08 Thread Stefan Herbrechtsmeier
Am 07.07.2012 23:58, schrieb Marek Vasut: Am 04.07.2012 08:57, schrieb Schneider, Kolja: Am 03.07.2012 20:10, schrieb Marek Vasut: The commit 5dd95cf93dfffa1d19a1928990852aac9f55b9d9 'usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM' introduce a bug in usb_storage as it wrongly assume

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

2012-07-08 Thread Ilya Yanok
Hi Marek, On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut wrote: [...] diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > index 04300be..5199560 100644 > --- a/drivers/usb/host/ehci-hcd.c > +++ b/drivers/usb/host/ehci-hcd.c > @@ -34,7 +34,10 @@ struct ehci_hccr *hccr; /*