Re: [U-Boot] dfu download issue with ci_udc

2014-07-23 Thread S Durga Prasad Paladugu
Hi, I did the following modification in ci_udc driver for handling the DFU Dwonalod request with zpl and it worked for me and i am not sure whether it would be the real fix for it(that 0x21 is DFU download request with zero packet length), just sent for reference. diff --git a/drivers/usb/gadget

Re: [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory >= 4GB

2014-07-23 Thread Benoit Sansoni
York, I am going to check out the method that you talk about. For now the fix allow me to boot our board with 8GB it is a good step for me. Thanks Benoit On 07/23/2014 06:32 PM, York Sun wrote: > Benoit, > > If your interest is in initializing DDR for ECC, you don't have use > dma_meminit(). Th

Re: [U-Boot] [PATCH 3/6] sunxi: add Cubieboard2 support

2014-07-23 Thread Ian Campbell
On Thu, 2014-07-24 at 06:12 +0300, Siarhei Siamashka wrote: > On Thu, 5 Jun 2014 19:00:14 +0100 > Ian Campbell wrote: > > > This is a sun7i (A20) based followup to the sun4i (A10) > > Cubieboard. It has GMAC using MII mode. > > > > Signed-off-by: Ian Campbell > > Acked-by: Hans de Goede > >

Re: [U-Boot] u-boot command for standalone application

2014-07-23 Thread Wolfgang Denk
Dear swami91, In message <1406164120148-184818.p...@n7.nabble.com> you wrote: > > 1. Is it ok if we implement uboot commands that would call into the > standalone application API without violating GPL terms of u-boot? The > command returns to the command line after execution. The arguments are >

[U-Boot] Pull request: u-boot-sh/rmobile into u-boot-arm/master

2014-07-23 Thread Nobuhiro Iwamatsu
Dear Albert Aribaud, Please pull u-boot-sh/rmobile into u-boot-arm/master. The following changes since commit 23f23f23d509e8e873797884456070c8a47d72b2: socfpga: Relocate arch common functions away from board (2014-07-05 10:14:46 +0200) are available in the git repository at: git://git.denx

[U-Boot] [PATCH] arm: rmobile: Add register infomation of i2c for rcar

2014-07-23 Thread Nobuhiro Iwamatsu
This move to to the rcar_i2c.h the register address of the i2c that is defined in board config. Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/include/asm/arch-rmobile/rcar_i2c.h | 29 drivers/i2c/rcar_i2c.c | 1 + include/configs/lager.h

[U-Boot] [PATCH] usb: ehci: rmobile: Add support R8A7794

2014-07-23 Thread Nobuhiro Iwamatsu
R8A7794 has same IP of USB controller as R8A7790 and R8A7791. This addes support for R8A7794. Signed-off-by: Nobuhiro Iwamatsu --- drivers/usb/host/ehci-rmobile.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/host/ehci-rmobile.c b/drivers/usb/host/ehci-rmobile.c index 049

[U-Boot] [PATCH] Makefile: use u-boot.map for binary_size_check

2014-07-23 Thread Chris Packham
u-boot.map is generated automatically by the compiler and more importantly can handle addresses >4GB. --- On Thu, Jul 24, 2014 at 5:14 PM, Chris Packham wrote: > Hi Simon, > > On Wed, Jul 23, 2014 at 10:27 PM, Simon Glass wrote: >> On 22 July 2014 18:08, Chris Packham wrote: >>> file_size was be

Re: [U-Boot] A way to change the status of the whole series on Patchwork ?

2014-07-23 Thread Brian Norris
On Wed, Jul 23, 2014 at 09:10:08AM +0100, Ian Campbell wrote: > On Tue, 2014-07-22 at 12:45 -0700, Brian Norris wrote: > > > Then some sort of grepping/regex/etc. can get you the patchwork ID from > > the Message-ID. e.g.: > > > > pwclient list -m "$MESSAGEID" | awk '{print $1;}' | grep '[0-9][

Re: [U-Boot] A way to change the status of the whole series on Patchwork ?

2014-07-23 Thread Masahiro Yamada
Hi Brian, Jeremy, On Wed, 16 Jul 2014 19:49:09 -0700 Brian Norris wrote: > On Thu, Jul 17, 2014 at 11:19:42AM +0900, Masahiro Yamada wrote: > > When I change the status of patches, > > I always do it one by one. > > > > But it is painful if the series consists > > of a bunch of patches. > > >

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Chris Packham
Hi Simon, On Wed, Jul 23, 2014 at 10:27 PM, Simon Glass wrote: > On 22 July 2014 18:08, Chris Packham wrote: >> file_size was being calculated using back-ticks but map_size uses >> $(shell ...). Update the file_size calculation to use $(shell ...). >> >> Signed-off-by: Chris Packham > > Acked-b

[U-Boot] u-boot command for standalone application

2014-07-23 Thread swami91
Hi, We are planning to have a non-GPL standalone application which does some basic board checks and also holds a authentication key (which we don't want it to be published). The authentication code is in u-boot and will be released under GPL. 1. Is it ok if we implement uboot commands that woul

Re: [U-Boot] dfu download issue with ci_udc

2014-07-23 Thread S Durga Prasad Paladugu
Hi Wolfgang, I am using mainline 2014.1 git version but integrated that with the latest ci_udc driver changes and trying to test it on zynq board.I integrated the latest ci_udc as it has fixes related to the dfu. Previously with 2014.1 its not working at all and timing out at host while trying to

[U-Boot] [PATCH v5 07/15] Do not apply: tools: add gen_maintainers.py

2014-07-23 Thread Masahiro Yamada
Do not apply this patch to the main line This tool generates MAINTAINERS files based on boards.cfg file. Because it is used only once, it should not be applied. Signed-off-by: Masahiro Yamada --- Changes in v5

[U-Boot] [PATCH v5 12/15] buildman: adjust for Kconfig

2014-07-23 Thread Masahiro Yamada
Use "make _defconfig" instead of "make _config". Invoke tools/genboardscfg.py to generate boards.cfg when it is missing. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: - Generate boards.cfg automatically if it is missing Changes in v3: None Changes in v2: None tools/

[U-Boot] [PATCH v5 13/15] kconfig: delete redundant CONFIG_${ARCH} definition

2014-07-23 Thread Masahiro Yamada
CONFIG_${ARCH} is defined by Kconfig. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: - Rebase on the current u-boot/master Changes in v3: None Changes in v2: None arch/arc/config.mk | 2 +- arch/arm/config.mk

[U-Boot] [PATCH v5 14/15] powerpc: remove redundant CPU definition

2014-07-23 Thread Masahiro Yamada
CONFIG_${CPU} is defined by Kconfig. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: - Newly added Changes in v3: None Changes in v2: None arch/powerpc/cpu/74xx_7xx/config.mk | 2 +- arch/powerpc/cpu/mpc512x/config.mk | 2 +- arch/powerpc/cpu/mpc5xx/config.mk | 2 +-

[U-Boot] [PATCH v5 11/15] MAKEALL: adjust for Kconfig

2014-07-23 Thread Masahiro Yamada
Use "make _defconfig" instead of "make _config". Invoke tools/genboardscfg.py to generate boards.cfg when it is missing. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: - Generate boards.cfg automatically if it is missing Changes in v3: None Changes in v2: None MAKEAL

[U-Boot] [PATCH v5 05/15] include: define CONFIG_SPL and CONFIG_TPL as 1

2014-07-23 Thread Masahiro Yamada
We are about to switch to Kconfig in the next commit. But there are something to get done beforehand. In Kconfig, include/generated/autoconf.h defines boolean CONFIG macros as 1. CONFIG_SPL and CONFIG_TPL, if defined, must be set to 1. Otherwise, when switching to Kconfig, the build log would be

[U-Boot] [PATCH v5 06/15] kconfig: switch to Kconfig

2014-07-23 Thread Masahiro Yamada
This commit enables Kconfig. Going forward, we use Kconfig for the board configuration. mkconfig will never be used. Nor will include/config.mk be generated. Kconfig must be adjusted for U-Boot because our situation is a little more complicated than Linux Kernel. We have to generate multiple boot

[U-Boot] [PATCH v5 15/15] kbuild: remove CONFIG_SPL/CONFIG_TPL definition in config headers

2014-07-23 Thread Masahiro Yamada
Now CONFIG_SPL and CONFIG_TPL are defined in Kconfig. Remove the redundant definition in config headers. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: - Rebase on the current u-boot/master Changes in v3: - Rebase on the current u-boot/maste

[U-Boot] [PATCH v5 02/15] Do not apply: tools: add genkconfig

2014-07-23 Thread Masahiro Yamada
Do not apply this patch to the main line What is this tool? -- This tool converts boards.cfg to defconfig and Kconfig files. It automatically generates - arch/${ARCH}/Kconfig - board/${VENDOR

[U-Boot] [PATCH v5 04/15] kconfig: add basic Kconfig files

2014-07-23 Thread Masahiro Yamada
This commit adds more Kconfig files, which were written by hand. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: - Abolish CONFIG_SUBIMAGES - Add CONFIG_DEFCONFIG_LIST Changes in v3: - Add CONFIG_SUBIMAGES for generic sub-image framework. - Move CONFIG_SYS_EXTRA_OP

[U-Boot] [PATCH v5 09/15] tools: add genboardscfg.py

2014-07-23 Thread Masahiro Yamada
Now the primary data for each board is in Kconfig, defconfig and MAINTAINERS. It is true boards.cfg is needed for MAKEALL and buildman and might be useful to brouse boards in a single database. But it would be painful to maintain the boards.cfg in sync. So, this is the solution. Add a tool to gen

Re: [U-Boot] [PATCH 3/6] sunxi: add Cubieboard2 support

2014-07-23 Thread Chen-Yu Tsai
On Thu, Jul 24, 2014 at 11:12 AM, Siarhei Siamashka wrote: > On Thu, 5 Jun 2014 19:00:14 +0100 > Ian Campbell wrote: > >> This is a sun7i (A20) based followup to the sun4i (A10) >> Cubieboard. It has GMAC using MII mode. >> >> Signed-off-by: Ian Campbell >> Acked-by: Hans de Goede > > This boa

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

2014-07-23 Thread Nobuhiro Iwamatsu
Dear Tom Rini. Please pull u-boot-sh master branch. The following changes since commit fbe79a17fddb7f0b11aa15b9c93e9a4a26165ed8: m68k: define __kernel_size_t as unsinged int again (2014-07-22 09:46:50 -0400) are available in the git repository at: git://git.denx.de/u-boot-sh.git master fo

Re: [U-Boot] [PATCH 3/6] sunxi: add Cubieboard2 support

2014-07-23 Thread Siarhei Siamashka
On Thu, 5 Jun 2014 19:00:14 +0100 Ian Campbell wrote: > This is a sun7i (A20) based followup to the sun4i (A10) > Cubieboard. It has GMAC using MII mode. > > Signed-off-by: Ian Campbell > Acked-by: Hans de Goede This board is using exactly the same PCB as the Cubieboard1. And only the SoC is

[U-Boot] [PATCH 1/2] blackfin: convert blackfin board_f and board_r to use generic board init functions

2014-07-23 Thread Sonic Zhang
From: Sonic Zhang - move blackfin specific cpu init code from blackfin board.c to cpu.c - remove blackfin specific board init code and invoke generic board_f fron cpu init entry - rename section name bss_vma to bss_start in order to match the generic board init code - add a fake relocate_code f

[U-Boot] [PATCH 2/2] support blackfin board initialization in generic board_f

2014-07-23 Thread Sonic Zhang
From: Sonic Zhang - init hardware watchdog if applicable - use CONFIG_SYS_MONITOR_LEN as the gd monitor len for Blackfin - reserve u-boot memory at the top field of the RAM for Blackfin - avoid refer to CONFIG_SYS_MONITOR_LEN, which is not defined by Blackfin Signed-off-by: Sonic Zhang --- co

[U-Boot] [PATCH v2] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Chris Packham
file_size was being calculated using back-ticks but map_size uses $(shell ...). Update the file_size calculation to use $(shell ...). From: Jeroen Hofstee The binary_size_check target relies on stat -c %s to return the size of u-boot.bin. This only works with GNU stat though. Use wc instead. Si

Re: [U-Boot] [PATCH] board_r: Add missing return to initr_doc

2014-07-23 Thread Nobuhiro Iwamatsu
Hi, 2014-07-22 3:21 GMT+09:00 Ian Campbell : > I happened to spot this while working in the area. > > Signed-off-by: Ian Campbell > Cc: Simon Glass > --- > common/board_r.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/common/board_r.c b/common/board_r.c > index 4479acb..427ee67 1006

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Joe Hershberger
On Wed, Jul 23, 2014 at 4:41 PM, Stephen Warren wrote: > > On 07/23/2014 03:37 PM, Joe Hershberger wrote: > > > > On Tue, Jul 22, 2014 at 7:06 PM, Stephen Warren > > wrote: > >> > >> From: Stephen Warren mailto:swar...@nvidia.com>> > >> > >> When "pxe boot" downloads

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Stephen Warren
On 07/23/2014 03:37 PM, Joe Hershberger wrote: > > On Tue, Jul 22, 2014 at 7:06 PM, Stephen Warren > wrote: >> >> From: Stephen Warren mailto:swar...@nvidia.com>> >> >> When "pxe boot" downloads the initrd/kernel/DTB, netboot_common() saves >> the downloaded filename

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Joe Hershberger
On Tue, Jul 22, 2014 at 7:06 PM, Stephen Warren wrote: > > From: Stephen Warren > > When "pxe boot" downloads the initrd/kernel/DTB, netboot_common() saves > the downloaded filename to global variable BootFile. If the boot > operation is aborted, this global state is not cleared. If "dhcp" is > e

Re: [U-Boot] [PATCH 5/9] kmp204x: CPU watchdog enabled

2014-07-23 Thread York Sun
Rainer, Did you get a chance to fix your patch? York On 07/18/2014 03:21 PM, York Sun wrote: > Rainer, > > Once this patch is enabled, we have > > warning: implicit declaration of function 'init_85xx_watchdog' > [-Wimplicit-function-declaration] > > Please fix. > > York > > > On 06/03/201

Re: [U-Boot] dfu download issue with ci_udc

2014-07-23 Thread Wolfgang Denk
Dear S Durga Prasad Paladugu, In message you wrote: > > I am trying to download the file from dfu-utilities(version 0.7) and using > the ci_udc at device side. After all the data was sent from the host, the ... What is your exact U-Boot verosion (git commit ID), and which exact board are you t

[U-Boot] Please pull u-boot-mpc85xx master

2014-07-23 Thread York Sun
Tom, The following changes since commit fbe79a17fddb7f0b11aa15b9c93e9a4a26165ed8: m68k: define __kernel_size_t as unsinged int again (2014-07-22 09:46:50 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to fb5368789a45ca

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 09:24:00PM +0200, Jeroen Hofstee wrote: > Hi, > > On 23-07-14 20:03, Tom Rini wrote: > >On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: > >>On 22 July 2014 18:08, Chris Packham wrote: > >>>file_size was being calculated using back-ticks but map_size uses > >>>

[U-Boot] [PATCH v2] Makefile: fix binary_size_check target

2014-07-23 Thread Jeroen Hofstee
first issue replace stat -c %s with wc: The binary_size_check target relies on stat -c %s to return the size of u-boot.bin. This only works with GNU stat though. Use wc instead. Second issue as reported by chris Packham: file_size was being calculated using back-ticks but map_size uses $(shell ...

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Jeroen Hofstee
Hi, On 23-07-14 20:03, Tom Rini wrote: On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: On 22 July 2014 18:08, Chris Packham wrote: file_size was being calculated using back-ticks but map_size uses $(shell ...). Update the file_size calculation to use $(shell ...). Signed-off-by:

Re: [U-Boot] [PATCH] sunxi: use random parts of SID to set ethaddr

2014-07-23 Thread Siarhei Siamashka
On Sat, 14 Jun 2014 10:46:37 +0100 Ian Campbell wrote: > On Sat, 2014-06-14 at 08:59 +0200, Hans de Goede wrote: > > From: Jonathan Liu > > > > Similar to the USB NIC found on OMAP5uEVM, PandaBoard and BeagleBoard-XM > > boards, the sunxi SoCs have a NIC onboard without an embedded MAC address.

Re: [U-Boot] [PATCH v2 5/5] sunxi: Fix reset hang on sun5i

2014-07-23 Thread Siarhei Siamashka
On Fri, 13 Jun 2014 22:55:52 +0200 Hans de Goede wrote: > Do the same as the Linux kernel does, this fixes the SoC hanging on reset > about 50% of the time. > > Signed-off-by: Hans de Goede > Acked-by: Ian Campbell > --- > arch/arm/cpu/armv7/sunxi/board.c | 6 +- > 1 file changed, 5 inser

Re: [U-Boot] [PATCH v2 3/5] sunxi: Add axp209 pmic support

2014-07-23 Thread Siarhei Siamashka
On Fri, 13 Jun 2014 22:55:50 +0200 Hans de Goede wrote: > From: Henrik Nordstrom > > Add support for the x-powers axp209 pmic which is found on most A10, A13 and > A20 boards. > > And enable AXP209 support for the Cubietruck and Cubieboard boards. > > While changing the boards.cfg lines for t

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 18:40 +0100, Ian Campbell wrote: > On Wed, 2014-07-23 at 20:29 +0300, Siarhei Siamashka wrote: > > On Fri, 30 May 2014 10:19:16 +0100 > > Ian Campbell wrote: > > > > > On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: > > > > We should not be aligning the amount of byt

Re: [U-Boot] [PATCH v3 09/10] sunxi: Add support for using MII phy-s with the GMAC nic

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:37:01 +0200 Hans de Goede wrote: > From: Chen-Yu Tsai > > Many A20 boards (ie Cubieboard2, A20-OLinuXino_MICRO) use an 100 Mbit MII > phy together with the GMAC nic found in the A20 SoC, add support for this > (this will get used when we add these boards in a later patch)

Re: [U-Boot] [PATCH v3 08/10] sunxi: Add emac glue, enable emac on the cubieboard

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:37:00 +0200 Hans de Goede wrote: > Signed-off-by: Hans de Goede > Acked-by: Ian Campbell > --- > arch/arm/cpu/armv7/sunxi/board.c | 8 > boards.cfg | 2 +- > include/configs/sunxi-common.h | 5 + > 3 files changed, 14 insertions(+), 1

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-07-23 Thread Marek Vasut
On Wednesday, July 16, 2014 at 09:18:56 AM, Lukasz Majewski wrote: > Dear Marek, > > The following changes since commit > 5ba95541b700d2edecb4d97d4b905f51ed8551b3: > > usb: phy: omap_usb_phy: implement usb_phy_power() for AM437x > (2014-07-09 22:11:51 +0200) > > are available in the git repo

Re: [U-Boot] [PATCH v3 07/10] net: Rename and cleanup sunxi (Allwinner) emac driver

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:59 +0200 Hans de Goede wrote: > From: Stefan Roese > > There have been 3 versions of the sunxi_emac support patch during its > development. Somehow version 2 ended up in upstream u-boot where as > the u-boot-sunxi git repo got version 3. > > This bumps the version in

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: > On 22 July 2014 18:08, Chris Packham wrote: > > file_size was being calculated using back-ticks but map_size uses > > $(shell ...). Update the file_size calculation to use $(shell ...). > > > > Signed-off-by: Chris Packham > > Acked-

Re: [U-Boot] [PATCH v3 06/10] sunxi: Add sun5i support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:58 +0200 Hans de Goede wrote: > Add support for the Allwinner A13 and A10s SoCs also know as the Allwinner > sun5i family, and the A13-OLinuXinoM A13 based and r7-tv-dongle A10s based > boards. > > The only differences compared to the already supported sun4i and sun7i >

Re: [U-Boot] [PATCH v3 05/10] sunxi: Add sun4i support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:57 +0200 Hans de Goede wrote: > Add support for the Allwinner A10 SoC also known as the Allwinner sun4i > family, > and add the Cubieboard board which uses the A10 SoC. > > Compared to sun7 only the DRAM controller is a bit different: > -Controller reset bits are inver

Re: [U-Boot] [PATCH v3 04/10] sunxi: Implement reset_cpu

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:56 +0200 Hans de Goede wrote: > There is no way to reset the cpu, so use the watchdog for this. > > Signed-off-by: Hans de Goede > Acked-by: Ian Campbell Acked-by: Siarhei Siamashka However shouldn't this be squashed with http://patchwork.ozlabs.org/patch/359692

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 20:29 +0300, Siarhei Siamashka wrote: > On Fri, 30 May 2014 10:19:16 +0100 > Ian Campbell wrote: > > > On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: > > > We should not be aligning the amount of bytes which we try to read from > > > the > > > disk, this leads to t

Re: [U-Boot] [PATCH v3 03/10] sunxi: Remove mmc DMA support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:55 +0200 Hans de Goede wrote: > The DMA code in sunxi_mmc.c is broken. mmc_trans_data_by_dma() allocates the > dma descriptors on the stack, and then exits while the dma transfer is in > progress, so the dma engine is reading stack memory which at that point may > be re-

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Siarhei Siamashka
On Fri, 30 May 2014 10:19:16 +0100 Ian Campbell wrote: > On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: > > We should not be aligning the amount of bytes which we try to read from the > > disk, this leads to trying to read more bytes then there are which fails. > > > > file_size is alre

[U-Boot] dfu download issue with ci_udc

2014-07-23 Thread S Durga Prasad Paladugu
Hi, I am trying to download the file from dfu-utilities(version 0.7) and using the ci_udc at device side. After all the data was sent from the host, the dfu utilities sent the zpl packet but at the device side the dfu_write is not getting invoked for zero packet length and hence causing the data n

Re: [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory >= 4GB

2014-07-23 Thread York Sun
Benoit, If your interest is in initializing DDR for ECC, you don't have use dma_meminit(). There is a better and faster way to do so. All Freescale modern DDR controllers support this feature. All you have to do is to define these macros CONFIG_DDR_ECC CONFIG_ECC_INIT_VIA_DDRCONTROLLER CONFIG_ME

Re: [U-Boot] ODROID dynamic memory initialization

2014-07-23 Thread Przemyslaw Marczak
Hi Daniel, On 07/23/2014 02:27 PM, Daniel Drake wrote: On Tue, Jul 22, 2014 at 2:08 PM, Daniel Drake wrote: While looking at the old uboot from hardkernel, I'm curious about CONFIG_CLK_BUS_DMC_220_440, which is set by default. This appears to run the memory at a high speed, by writing certain

Re: [U-Boot] [PATCH v2] zynq: disable -Wstrict-prototypes option for ps7_init.c

2014-07-23 Thread Michal Simek
Hi Masahiro, On 07/23/2014 05:40 AM, Masahiro Yamada wrote: > Hi Michal, > > > Could you apply this one along with your other zynq patches ? > > > > And please clean-up noise on patchwork. > http://patchwork.ozlabs.org/patch/347047/ > http://patchwork.ozlabs.org/patch/355816/ I have clean st

[U-Boot] [GIT PULL] Zynq patches

2014-07-23 Thread Michal Simek
Hi Albert, please pull these three patches to your tree. 2 of them are for moving to generic board and the last one is about suppressing warning from out of tree files. Thanks, Michal [u-boot]$ ./tools/buildman/buildman -b zynq zynq -sSed Summary of 4 commits for 6 boards (6 threads, 2 jobs per

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 06:24:08AM -0600, Simon Glass wrote: > Hi, > > On 14 July 2014 18:16, Simon Glass wrote: > > Hi Tom, > > > > On 14 July 2014 16:28, Tom Rini wrote: > >> > >> On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: > >> > >> > There has been talk on and off of a pre-r

Re: [U-Boot] [PATCH] ARM: zynq: Show ECC status on the same line as DRAM size

2014-07-23 Thread Michal Simek
On 07/23/2014 05:35 AM, Masahiro Yamada wrote: > Hi Michal, > > On Thu, 15 May 2014 09:46:02 +0200 > Michal Simek wrote: > >> Without this patch is DRAM size one line below DRAM: >> which is not nice >> >> Origin: >> I2C: ready >> DRAM: ECC disabled >> 1 GiB >> Now running in RAM - U-Boot at:

Re: [U-Boot] [PATCH v3 2/9] arm: Set up global data before board_init_f()

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 06:16:52AM -0600, Simon Glass wrote: > +Albert, Tom > > Hi Albert, > > On 11 July 2014 11:44, Jeroen Hofstee wrote: > > Hello Simon, > > > > > > On 11-07-14 06:23, Simon Glass wrote: > >> > >> At present arm defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that > >> the gl

Re: [U-Boot] [linux-sunxi] Re: [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 09:04 -0400, Tom Rini wrote: > On Wed, Jul 23, 2014 at 07:59:17AM +0100, Ian Campbell wrote: > > On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: > > > On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: > > > > > > > This enables the necessary clocks, in AHB0 and

Re: [U-Boot] [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 07:59:17AM +0100, Ian Campbell wrote: > On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: > > On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: > > > > > This enables the necessary clocks, in AHB0 and in PLL6_CFG. This is done > > > for sun7i only since I don't

[U-Boot] [PATCH v3 19/29] dm: Allow a device to be found by its FDT offset

2014-07-23 Thread Simon Glass
Each device that was bound from a device tree has an node that caused it to be bound. Add functions that find and return a device based on a device tree offset. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None doc/driver-model/README.txt | 3 ++- drivers/core/uclass.c

[U-Boot] [PATCH v3 23/29] dm: Provide a function to scan child FDT nodes

2014-07-23 Thread Simon Glass
At present only root nodes in the device tree are scanned for devices. But some devices can have children. For example a SPI bus may have several children for each of its chip selects. Add a function which scans subnodes and binds devices for each one. This can be used for the root node scan also,

[U-Boot] [PATCH v3 03/29] stdio: Remove redundant code around stdio_register() calls

2014-07-23 Thread Simon Glass
There is no point in setting a structure's memory to NULL when it has already been zeroed with memset(). Also, there is no need to create a stub function for stdio to call - if the function is NULL it will not be called. This is a clean-up, with no change in functionality. Signed-off-by: Simon G

[U-Boot] [PATCH v3 25/29] dm: Introduce per-child data for devices

2014-07-23 Thread Simon Glass
Some device types can have child devices and want to store information about them. For example a USB flash stick attached to a USB host controller would likely use this space. The controller can hold information about the USB state of each of its children. The data is stored attached to the child

[U-Boot] [PATCH v3 16/29] dm: Avoid activating devices in 'dm uclass' command

2014-07-23 Thread Simon Glass
This command currently activates devices as it lists them. This is not desirable since it changes the system state. Fix it and avoid printing a newline if there are no devices in a uclass. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c | 6 +++--- 1 fil

[U-Boot] [PATCH v3 11/29] console: Remove vprintf() optimisation for sandbox

2014-07-23 Thread Simon Glass
If the console is not present, we try to reduce overhead by stopping any output in vprintf(), before it gets to putc(). This is of dubious merit in general, but in the case of sandbox it is incorrect since we have a fallback console which reports errors very early in U-Boot. If this is defeated U-B

[U-Boot] [PATCH v3 24/29] dm: Add functions to access a device's children

2014-07-23 Thread Simon Glass
Devices can have childen that can be addressed by a simple index, the sequence number or a device tree offset. Add functions to access a child in each of these ways. The index is typically used as a fallback when the sequence number is not available. For example we may use a serial UART with seque

[U-Boot] [PATCH v3 15/29] dm: Move device display into its own function

2014-07-23 Thread Simon Glass
The device display for 'dm tree' and 'dm uclass' is mostly the same, so move it into a common function. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/test/

[U-Boot] [PATCH v3 26/29] dm: Add child_pre_probe() and child_post_remove() methods

2014-07-23 Thread Simon Glass
Some devices (particularly bus devices) must track their children, knowing when a new child is added so that it can be set up for communication on the bus. Add a child_pre_probe() method to provide this feature, and a corresponding child_post_remove() method. Signed-off-by: Simon Glass --- Chan

[U-Boot] [PATCH v3 29/29] dm: Give the demo uclass a name

2014-07-23 Thread Simon Glass
Uclasses should be named, so add a name for the demo uclass. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Expand series to include all driver-model-required changes drivers/demo/demo-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/demo/demo-uclass.c

[U-Boot] [PATCH v3 20/29] dm: Avoid accessing uclasses before they are ready

2014-07-23 Thread Simon Glass
Don't allow access to uclasses before they have been initialised. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None doc/driver-model/README.txt | 3 ++- drivers/core/uclass.c | 2 ++ test/dm/core.c | 14 ++ 3 files changed, 18 insertions(+)

[U-Boot] [PATCH v3 14/29] fdt: Add a function to get the alias sequence of a node

2014-07-23 Thread Simon Glass
Aliases are used to provide U-Boot's numbering of devices, such as: aliases { spi0 = "/spi@1233"; } spi@1233 { ... } This tells us that the SPI controller at 1233 is considered to be the first SPI controller (SPI 0). So we have a numbering for the SPI node. Add a fun

[U-Boot] [PATCH v3 18/29] dm: Display the sequence number for each device

2014-07-23 Thread Simon Glass
Add this information to 'dm tree' and 'dm uclass' commands. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c index 93e5255..26980d2 100644 --- a/test/dm/cmd_dm.c +++

[U-Boot] [PATCH v3 22/29] dm: Tidy up some header file comments

2014-07-23 Thread Simon Glass
Fix up the style of a few comments and add/clarify a few others. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/dm/device.h| 2 +- include/dm/platdata.h | 10 -- include/dm/root.h | 3 ++- include/dm/uclass-id.h | 2 +- include/dm/uclass.h

[U-Boot] [PATCH v3 21/29] fdt: Add a function to get the node offset of an alias

2014-07-23 Thread Simon Glass
This simple function returns the node offset of a named alias. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/fdtdec.h | 11 +++ lib/fdtdec.c | 15 +++ 2 files changed, 26 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h in

[U-Boot] [PATCH v3 17/29] dm: Introduce device sequence numbering

2014-07-23 Thread Simon Glass
In U-Boot it is pretty common to number devices from 0 and access them on the command line using this numbering. While it may come to pass that we will move away from this numbering, the possibility seems remote at present. Given that devices within a uclass will have an implied numbering, it make

[U-Boot] [PATCH v3 04/29] stdio: Pass device pointer to stdio methods

2014-07-23 Thread Simon Glass
At present stdio device functions do not get any clue as to which stdio device is being acted on. Some implementations go to great lengths to work around this, such as defining a whole separate set of functions for each possible device. For driver model we need to associate a stdio_dev with a devi

[U-Boot] [PATCH v3 08/29] dm: Allow drivers to be marked 'before relocation'

2014-07-23 Thread Simon Glass
Driver model currently only operates after relocation is complete. In this state U-Boot typically has a small amount of memory available. In adding support for driver model prior to relocation we must try to use as little memory as possible. In addition, on some machines the memory has not be init

[U-Boot] [PATCH v3 28/29] dm: Add dm_scan_other() to locate board-specific devices

2014-07-23 Thread Simon Glass
Some boards will have devices which are not in the device tree and do not have platform data. They may be programnatically created, for example. Add a hook which boards can use to bind those devices early in boot. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/c

[U-Boot] [PATCH v3 02/29] dm: Use an explicit expect value in core tests

2014-07-23 Thread Simon Glass
Rather than reusing the 'reg' property, use an explicit property for the expected ping value used in testing. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-fdt.c | 13 - test/dm/test.dts | 5 - 2 files changed, 12 insertions(+), 6 deleti

[U-Boot] [PATCH v3 09/29] dm: Support driver model prior to relocation

2014-07-23 Thread Simon Glass
Initialise devices marked 'pre-reloc' and make them available prior to relocation. Note that this requires pre-reloc malloc() to be available. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Minor reword to comment for dm_init_and_scan() common/board_f.c |

[U-Boot] [PATCH v3 01/29] dm: gpio: Don't use the driver model uclass for SPL

2014-07-23 Thread Simon Glass
Driver model does not support SPL yet, so we should not use the GPIO uclass for SPL. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/gpio/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 4e001e1..f

[U-Boot] [PATCH v3 12/29] Add a flag indicating when the serial console is ready

2014-07-23 Thread Simon Glass
For sandbox we have a fallback console which is used very early in U-Boot, before serial drivers are available. Rather than try to guess when to switch to the real console, add a flag so we can be sure. This makes sure that sandbox can always output a panic() message, for example, and avoids silent

[U-Boot] [PATCH v3 07/29] sandbox: Remove all drivers before exit

2014-07-23 Thread Simon Glass
Drivers are supposed to be able to close down cleanly. To set a good example, make sandbox shut down its driver model drivers and remove them before exit. It may be desirable to do the same more generally once driver model is more widely-used. This could be done during bootm, before U-Boot jumps t

[U-Boot] [PATCH v3 10/29] stdio: Provide functions to add/remove devices using stdio_dev

2014-07-23 Thread Simon Glass
The current functions for adding and removing devices require a device name. This is not convenient for driver model, which wants to store a pointer to the relevant device. Add new functions which provide this feature and adjust the old ones to call these. Signed-off-by: Simon Glass --- Changes

[U-Boot] [PATCH v3 06/29] dm: Provide a way to shut down driver model

2014-07-23 Thread Simon Glass
Add a new method which removes and unbinds all drivers. Signed-off-by: Simon Glass Acked-by: Marek Vasut --- Changes in v3: None Changes in v2: None drivers/core/root.c | 8 include/dm/root.h | 8 2 files changed, 16 insertions(+) diff --git a/drivers/core/root.c b/driver

[U-Boot] [PATCH v3 05/29] dm: Make sure that the root device is probed

2014-07-23 Thread Simon Glass
The root device should be probed just like any other device. The effect of this is to mark the device as activated, so that it can be removed (along with its children) if required. Signed-off-by: Simon Glass Acked-by: Marek Vasut --- Changes in v3: None Changes in v2: None drivers/core/root.c

[U-Boot] [PATCH v3 27/29] dm: Improve errors and warnings in lists_bind_fdt()

2014-07-23 Thread Simon Glass
Add a debug message for when a device tree node has no driver. Also reword the warning when a device fails to bind, which was misleading. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 16 +--- 1 file changed, 13 insertions(+), 3 delet

[U-Boot] [PATCH v3 13/29] dm: Move uclass error checking/probing into a function

2014-07-23 Thread Simon Glass
Several functions will use this same pattern, so bring it into a function. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/uclass.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/core/uclass.c b/driv

[U-Boot] [PATCH v3 0/29] Add additional core driver model features

2014-07-23 Thread Simon Glass
This series includes a number of base driver model enhancements, mostly targeted at pre-relocation and to enable buses to be easily implemented. With the device tree, child nodes for buses can now be scanned to create child devices, and bus-related information about each child can be stored. Child

[U-Boot] [PATCH] driver/qe: update status of QE microcode

2014-07-23 Thread Vijay Rai
This Patch updates error print for QE which should be easily understood Signed-off-by: Vijay Rai --- drivers/qe/qe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 9c5fbd1..df468d4 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c

Re: [U-Boot] ODROID dynamic memory initialization

2014-07-23 Thread Daniel Drake
On Tue, Jul 22, 2014 at 2:08 PM, Daniel Drake wrote: > While looking at the old uboot from hardkernel, I'm curious about > CONFIG_CLK_BUS_DMC_220_440, which is set by default. This appears to > run the memory at a high speed, by writing certain registers in the > Dynamic Memory Controller (e.g. TI

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-23 Thread Simon Glass
Hi, On 14 July 2014 18:16, Simon Glass wrote: > Hi Tom, > > On 14 July 2014 16:28, Tom Rini wrote: >> >> On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: >> >> > There has been talk on and off of a pre-relocation malloc() implementation. >> > Driver model needs this so that it can wo

[U-Boot] [PATCH v2] powerpc/t104xrdb: Add Support of rcw for T1042RDB in u-boot

2014-07-23 Thread Vijay Rai
This patch adds support of rcw for T1042RDB, it makes following changes : - Adds t1042_rcw.cfg file for serdes protocol 0x86 for T1042RDB - Renames t1042_pi_rcw.cfg file from t1042_rcw.cfg and also updates comments for valid serdes protocol which is 0x06 - Also updates CONFIG_SYS_FSL_PBL_RCW for

Re: [U-Boot] [PATCH v3 5/9] arm: Support pre-relocation malloc()

2014-07-23 Thread Simon Glass
+Tom Hi Albert, On 10 July 2014 22:23, Simon Glass wrote: > Add support for re-relocation malloc() in arm's start-up code. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Rebase on earlier patch Can you please take a look at this patch? I would like to apply it to the dm repo. > >

  1   2   >