Re: [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK

2014-05-01 Thread Marek Vasut
On Wednesday, April 30, 2014 at 11:10:35 PM, Stephen Warren wrote: > From: Stephen Warren > > Not all boards support usb_cable_connected(). CONFIG_USB_CABLE_CHECK is > used elsewhere to indicate whether a board does support that function. > Enhance cmd_usb_mass_storage.c to honor that config vari

Re: [U-Boot] Getting started with SPL

2014-05-01 Thread Heshsham Abdul Basit
HI Michal. Thanks for your answers. I have few related questions which I will ask separately. Rgrds, Heshsham On 30/04/2014, Michal Simek wrote: > Hi > > On 04/30/2014 11:32 AM, Heshsham Abdul Basit wrote: >> *HI, * >> >> >> *OS:* petalinux

[U-Boot] [PATCH] cmd_bootm.c: Only say XIP image when load is image_start

2014-05-01 Thread Tom Rini
We say we have an XIP (in this case, image loaded at desired execution address) when the image header has been offset in the load. It's possible that in some cases executing the header is non-fatal but that's not true in many other cases. Signed-off-by: Tom Rini --- common/cmd_bootm.c |2 +-

Re: [U-Boot] [PATCH 1/8] kmp204x: Add support for the unit LEDs

2014-05-01 Thread Valentin Longchamp
Hi York, On 04/30/2014 07:04 PM, York Sun wrote: > On 04/30/2014 06:01 AM, Valentin Longchamp wrote: >> From: Stefan Bigler > > > >> diff --git a/board/keymile/kmp204x/qrio.c b/board/keymile/kmp204x/qrio.c >> index 49f9aa2..11949f4 100644 >> --- a/board/keymile/kmp204x/qrio.c >> +++ b/board/ke

Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-01 Thread Marek Vasut
On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: > From: Stephen Warren > > It's easier to assign values to the variables inside an if statement body > if the assignment and declaration are separate. > > Cc: Przemyslaw Marczak > Cc: Lukasz Majewski > Signed-off-by: Stephen Wa

Re: [U-Boot] [PATCH 1/3] usb: tegra: fix PHY selection code

2014-05-01 Thread Marek Vasut
On Wednesday, April 30, 2014 at 11:09:55 PM, Stephen Warren wrote: > From: Stephen Warren > > The TRM for Tegra30 and later all state that USBMODE_CM_HC must be set > before writing to hostpc1_devlc to select which PHY to use for a USB > controller. However, neither init_{utmi,ulpi}_usb_controlle

Re: [U-Boot] [PATCH 1/8] kmp204x: Add support for the unit LEDs

2014-05-01 Thread York Sun
On 05/01/2014 07:00 AM, Valentin Longchamp wrote: > Hi York, > > On 04/30/2014 07:04 PM, York Sun wrote: >> On 04/30/2014 06:01 AM, Valentin Longchamp wrote: >>> From: Stefan Bigler >> >> >> >>> diff --git a/board/keymile/kmp204x/qrio.c b/board/keymile/kmp204x/qrio.c >>> index 49f9aa2..11949f4 1

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread Simon Glass
Hi York, On 30 April 2014 18:01, York Sun wrote: > Some platforms (including mpc85xx, mpc86xx) use global data before calling > function baord_inti_f(). This data should not be cleared later. Any arch > which needs to preserve global data should define CONFIG_SYS_EARLY_GD. > > Signed-off-by: York

Re: [U-Boot] [PATCH 1/3] usb: tegra: fix PHY selection code

2014-05-01 Thread Stephen Warren
On 05/01/2014 04:49 AM, Marek Vasut wrote: > On Wednesday, April 30, 2014 at 11:09:55 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> The TRM for Tegra30 and later all state that USBMODE_CM_HC must be set >> before writing to hostpc1_devlc to select which PHY to use for a USB >> controller

Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-01 Thread Stephen Warren
On 05/01/2014 04:51 AM, Marek Vasut wrote: > On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> It's easier to assign values to the variables inside an if statement body >> if the assignment and declaration are separate. >> >> Cc: Przemyslaw Marczak >

Re: [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK

2014-05-01 Thread Stephen Warren
On 04/30/2014 11:21 PM, Marek Vasut wrote: > On Wednesday, April 30, 2014 at 11:10:35 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> Not all boards support usb_cable_connected(). CONFIG_USB_CABLE_CHECK is >> used elsewhere to indicate whether a board does support that function. >> Enhance

Re: [U-Boot] [PATCH 04/11] kconfig: add basic Kconfig files

2014-05-01 Thread Scott Wood
On Wed, 2014-04-30 at 12:16 -0700, Simon Glass wrote: > Hi Masahiro, > > On 29 April 2014 21:22, Masahiro Yamada wrote: > > Hi Simon, > > > >> > + > >> > +config SPL_BUILD > >> > + bool > >> > + depends on BUILD_MODE="SPL" || BUILD_MODE="TPL" > >> > >> What is the TPL term for? > > >

Re: [U-Boot] [PATCH 04/11] kconfig: add basic Kconfig files

2014-05-01 Thread Scott Wood
On Thu, 2014-04-24 at 14:04 +0900, Masahiro Yamada wrote: > +config KCONFIG_OBJDIR > + string > + option env="KCONFIG_OBJDIR" > + > +config BUILD_MODE > + string > + default "SPL" if $KCONFIG_OBJDIR="spl/" > + default "TPL" if $KCONFIG_OBJDIR="tpl/" > + default "Main" Why d

[U-Boot] [PATCH v4 2/9] sunxi: add sun7i pinmux and gpio support

2014-05-01 Thread Ian Campbell
This patch adds the basic pinmux and gpio support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches manageable. Signed-off-by: Chen-Yu Tsai Signed-off-by: Hans de Goede Signed-off-by:

[U-Boot] [PATCH v4 0/9] sunxi: initial upstreamining effort

2014-05-01 Thread Ian Campbell
This is my fourth cut at an upstreamable series based upon the https://github.com/linux-sunxi/u-boot-sunxi.git#sunxi tree. The intention is to present a minimal starting point for upstreaming to which support for other processors, peripherals, boards etc can be added in the future. Therefore this h

[U-Boot] [PATCH v4 5/9] sunxi: add support for Cubietruck booting in FEL mode

2014-05-01 Thread Ian Campbell
Signed-off-by: Oliver Schinagl Signed-off-by: Jens Kuske Signed-off-by: Ian Campbell Reviewed-by: Tom Rini Reviewed-by: Marek Vasut --- v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts." v3: Based on c89867dca2e9 "sunxi: clocks: clock_get_pll5 prototype and coding style

[U-Boot] [PATCH v4 6/9] sunxi: add gmac Ethernet support

2014-05-01 Thread Ian Campbell
Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i) processors. Enable for the Cubietruck. Signed-off-by: Chen-Yu Tsai Signed-off-by: Jens Kuske Signed-off-by: Ian Campbell --- v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts." v3: Based on c89867dca2e9

[U-Boot] [PATCH v4 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-05-01 Thread Ian Campbell
Add support for booting from an MMC card. Signed-off-by: Stefan Roese Signed-off-by: Henrik Nordström Signed-off-by: Ian Campbell Cc: Tom Cubie --- v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts." v3: Based on c89867dca2e9 "sunxi: clocks: clock_get_pll5 prototype and

[U-Boot] [PATCH v4 9/9] net/designware: Reduce DMA burst length

2014-05-01 Thread Ian Campbell
From: Jens Kuske The GMAC module in Allwinner sunxi SoCs seems to have problems with burst lengths > 8. Signed-off-by: Jens Kuske Signed-off-by: Ian Campbell Cc: Chen-Yu Tsai --- v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts." v3: New. cherry-picked from u-boot-sunx

[U-Boot] [PATCH v4 7/9] sunxi: mmc support

2014-05-01 Thread Ian Campbell
This adds support for the MMC controller on the Allwinner A20 (sun7i) processor. Signed-off-by: Henrik Nordstrom Signed-off-by: Luke Leighton Signed-off-by: Oliver Schinagl Signed-off-by: Wills Wang Signed-off-by: Ian Campbell Cc: Stefan Roese Cc: Tom Cubie Cc: Aaron Maoye Cc: Pantelis Ant

Re: [U-Boot] [PATCH v4 9/9] net/designware: Reduce DMA burst length

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > From: Jens Kuske > > The GMAC module in Allwinner sunxi SoCs seems to have problems with > burst lengths > 8. Please ignore this last patch, I plan to rework as Alexey suggests in http://article.gmane.org/gmane.comp.hardware.netbook.arm.su

Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-05-01 Thread Ian Campbell
On Mon, 2014-04-28 at 22:21 +0200, Marek Vasut wrote: > On Monday, April 28, 2014 at 09:55:46 PM, Ian Campbell wrote: > > So having done all that it doesn't seem that reordering dw_eth_dev is > > necessary. > > Reordering dw_eth_dev is necessary. Look: It's certainly desirable, but it's not *nece

[U-Boot] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-01 Thread Ian Campbell
The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which could be 256 or even larger. That means there is a potentially huge hole in the struct before those fields, so move them to the front where they are better packed. Moving them to the front also helps ensure that so long as d

Re: [U-Boot] [PATCH] NAND: Add Micron MT29F16G identifier

2014-05-01 Thread smithknown
I added same ids, the device was able to be detected, but the nand info, nand erase.chip did not work. Same command works for a Micron 512MBytes nand. I am using mxc_nand driver. What else do we need update? what change you made to the mxc_nand.c and board configuration .h file? -- View this m

[U-Boot] [PATCH] Trivial fix to .gitignore for spl/Makefile

2014-05-01 Thread Ralph Siemsen
Trivial fix to .gitignore for spl/Makefile According to the gitignore man page: "An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again." ^^ So the directory exclude "/spl/*" must come before the ex

[U-Boot] [PATCH v4 3/9] sunxi: add sun7i dram setup support

2014-05-01 Thread Ian Campbell
This patch adds DRAM initialisation support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches manageable. Signed-off-by: Alexandru Gagniuc Signed-off-by: Emilio López Signed-off-by: H

[U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-01 Thread Ian Campbell
This patch adds the basic clocks and timer support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches manageable. Some of the code here is common to multiple sunxi subarchtectures, hence

[U-Boot] [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-01 Thread Ian Campbell
This patch adds generic board, start of day and basic build system support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches manageable. Signed-off-by: Adam Sampson Signed-off-by: Alek

[U-Boot] [PATCH v4.1 9/9] net/designware: Make DMA burst length configurable and reduce by default

2014-05-01 Thread Ian Campbell
The correct value for this setting can vary across SoCs and boards, so make it configurable. Also reduce the default value to 8, which is the same default as used in the Linux driver. Signed-off-by: Ian Campbell Cc: Alexey Brodkin --- v4.1: Replaces "neat/designware: Reduce DMA burst length" fr

Re: [U-Boot] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 09:01:58 PM, Ian Campbell wrote: > The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which > could be 256 or even larger. That means there is a potentially huge hole > in the struct before those fields, so move them to the front where they > are better

Re: [U-Boot] [PATCH v4 0/9] sunxi: initial upstreamining effort

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:03 PM, Ian Campbell wrote: > This is my fourth cut at an upstreamable series based upon the > https://github.com/linux-sunxi/u-boot-sunxi.git#sunxi tree. The > intention is to present a minimal starting point for upstreaming to > which support for other processors

Re: [U-Boot] [PATCH] NAND: Add Micron MT29F16G identifier

2014-05-01 Thread Eric Bénard
Hi, Le Wed, 30 Apr 2014 21:30:58 -0700 (PDT), smithknown a écrit : > > I added same ids, the device was able to be detected, but the nand info, nand > erase.chip did not work. Same command works for a Micron 512MBytes nand. I > am using mxc_nand driver. What else do we need update? what change

Re: [U-Boot] [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:47 PM, Ian Campbell wrote: > This patch adds generic board, start of day and basic build system support > for the Allwinner A20 (sun7i) processor. This code will not been compiled > until the build is hooked up in a later patch. It has been split out to > keep the

Re: [U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:44 PM, Ian Campbell wrote: > This patch adds the basic clocks and timer support for the Allwinner A20 > (sun7i) processor. This code will not been compiled until the build is > hooked up in a later patch. It has been split out to keep the patches > manageable. >

Re: [U-Boot] [PATCH v4 0/9] sunxi: initial upstreamining effort

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 21:24 +0200, Marek Vasut wrote: > On Thursday, May 01, 2014 at 08:40:03 PM, Ian Campbell wrote: > > This is my fourth cut at an upstreamable series based upon the > > https://github.com/linux-sunxi/u-boot-sunxi.git#sunxi tree. The > > intention is to present a minimal starting

Re: [U-Boot] [PATCH v4 2/9] sunxi: add sun7i pinmux and gpio support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > This patch adds the basic pinmux and gpio support for the Allwinner A20 > (sun7i) > processor. This code will not been compiled until the build is hooked up in a > later patch. It has been split out to keep the patches manageable. > > Signe

Re: [U-Boot] [PATCH v4 2/9] sunxi: add sun7i pinmux and gpio support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 20:50 +0100, Ian Campbell wrote: > On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > > This patch adds the basic pinmux and gpio support for the Allwinner A20 > > (sun7i) > > processor. This code will not been compiled until the build is hooked up in > > a > > later p

Re: [U-Boot] [PATCH v4 2/9] sunxi: add sun7i pinmux and gpio support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 20:51 +0100, Ian Campbell wrote: > On Thu, 2014-05-01 at 20:50 +0100, Ian Campbell wrote: > > On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > > > This patch adds the basic pinmux and gpio support for the Allwinner A20 > > > (sun7i) > > > processor. This code will not

Re: [U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 21:28 +0200, Marek Vasut wrote: > On Thursday, May 01, 2014 at 08:40:44 PM, Ian Campbell wrote: > > This patch adds the basic clocks and timer support for the Allwinner A20 > > (sun7i) processor. This code will not been compiled until the build is > > hooked up in a later patc

Re: [U-Boot] [PATCH v4 3/9] sunxi: add sun7i dram setup support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > This patch adds DRAM initialisation support for the Allwinner A20 (sun7i) > processor. This code will not been compiled until the build is hooked up in a > later patch. It has been split out to keep the patches manageable. > > Signed-off-by:

Re: [U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 20:49 +0100, Ian Campbell wrote: > On Thu, 2014-05-01 at 21:28 +0200, Marek Vasut wrote: > > On Thursday, May 01, 2014 at 08:40:44 PM, Ian Campbell wrote: > > > This patch adds the basic clocks and timer support for the Allwinner A20 > > > (sun7i) processor. This code will not

Re: [U-Boot] [PATCH v4 6/9] sunxi: add gmac Ethernet support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i) > processors. Enable for the Cubietruck. > > Signed-off-by: Chen-Yu Tsai > Signed-off-by: Jens Kuske > Signed-off-by: Ian Campbell > --- > v4: Based on d9fe0a1e061e "su

Re: [U-Boot] [PATCH v4 7/9] sunxi: mmc support

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > This adds support for the MMC controller on the Allwinner A20 (sun7i) > processor. > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Luke Leighton > Signed-off-by: Oliver Schinagl > Signed-off-by: Wills Wang > Signed-off-by: Ian Campb

Re: [U-Boot] [PATCH v5 06/12] ums: always initialize mmc before ums_disk_init()

2014-05-01 Thread Stephen Warren
On 04/28/2014 01:13 PM, Mateusz Zalega wrote: > In cases when MMC hadn't been initialized before, ie. by the user or other > subsystem, it was still uninitialized while UMS media capacity check, > leading to broken ums command. > > UMS has to initialize resources it uses. It's probably better to

Re: [U-Boot] [PATCH v4 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 19:40 +0100, Ian Campbell wrote: > Add support for booting from an MMC card. > > Signed-off-by: Stefan Roese > Signed-off-by: Henrik Nordström > Signed-off-by: Ian Campbell > Cc: Tom Cubie > --- > v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts."

Re: [U-Boot] [PATCH 3/8] ums: remove error-checking of MMC device size

2014-05-01 Thread Stephen Warren
On 04/30/2014 03:13 PM, Stephen Warren wrote: > From: Stephen Warren > > There's no reason to believe that an MMC device will incorrectly report > its capacity. Remove error checking of this value from ums_disk_init() > to simplify it. Hmm. I guess this check might trigger if you tried to export

[U-Boot] [PATCH] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Otavio Salvador
This adds support for the 7" WVGA produced by Future Eletronics and make it dynamically detect if it is connected or not based on the touchscreen controller. Signed-off-by: Otavio Salvador --- board/wandboard/wandboard.c | 184 +--- include/configs/wandbo

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

2014-05-01 Thread Nobuhiro Iwamatsu
Dear Albert Aribaud, Please pull u-boot-sh/rmobile into u-boot-arm/master. The following changes since commit c9aab0f9dd23fddcebf5984dc19e62b514e759a7: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-04-21 21:01:35 +0200) are available in the git repository at: git://git.den

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

2014-05-01 Thread Nobuhiro Iwamatsu
Dear Tom Rini. Please pull u-boot-sh master branch. The following changes since commit 8854070784450f7ade382c5792b2721fbe27315a: Merge branch 'master' of git://www.denx.de/git/u-boot-arc (2014-04-25 15:08:43 -0400) are available in the git repository at: git://git.denx.de/u-boot-sh.git ne

Re: [U-Boot] [PATCH] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Fabio Estevam
On Thu, May 1, 2014 at 5:16 PM, Otavio Salvador wrote: > This adds support for the 7" WVGA produced by Future Eletronics and > make it dynamically detect if it is connected or not based on the > touchscreen controller. What kind of display is this? Parallel display or LVDS? > -int board_video_sk

Re: [U-Boot] [PATCH] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Fabio Estevam
[Removing wandboard list, as it bounces when I reply to it] On Thu, May 1, 2014 at 5:16 PM, Otavio Salvador wrote: > "mmcargs=setenv bootargs console=${console},${baudrate} " \ > - "root=${mmcroot}\0" \ > + "root=${mmcroot}; run videoargs\0" \ > + "videoa

Re: [U-Boot] [PATCH] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Otavio Salvador
On Thu, May 1, 2014 at 5:39 PM, Fabio Estevam wrote: > [Removing wandboard list, as it bounces when I reply to it] > > On Thu, May 1, 2014 at 5:16 PM, Otavio Salvador > wrote: >> "mmcargs=setenv bootargs console=${console},${baudrate} " \ >> - "root=${mmcroot}\0" \ >> +

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread York Sun
On 05/01/2014 08:54 AM, Simon Glass wrote: > Hi York, > > On 30 April 2014 18:01, York Sun wrote: >> Some platforms (including mpc85xx, mpc86xx) use global data before calling >> function baord_inti_f(). This data should not be cleared later. Any arch >> which needs to preserve global data should

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread Scott Wood
On Thu, 2014-05-01 at 14:16 -0700, York Sun wrote: > On 05/01/2014 08:54 AM, Simon Glass wrote: > > Hi York, > > > > On 30 April 2014 18:01, York Sun wrote: > >> Some platforms (including mpc85xx, mpc86xx) use global data before calling > >> function baord_inti_f(). This data should not be cleare

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread York Sun
On 05/01/2014 02:21 PM, Scott Wood wrote: > On Thu, 2014-05-01 at 14:16 -0700, York Sun wrote: >> On 05/01/2014 08:54 AM, Simon Glass wrote: >>> Hi York, >>> >>> On 30 April 2014 18:01, York Sun wrote: Some platforms (including mpc85xx, mpc86xx) use global data before calling function ba

[U-Boot] [PATCH v2] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Otavio Salvador
This adds support for the 7" WVGA produced by Future Eletronics and make it dynamically detect if it is connected or not based on the touchscreen controller. Signed-off-by: Otavio Salvador --- Fabio, I haven't change the environment script as I consider important to have it working with Wandboard

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread Scott Wood
On Thu, 2014-05-01 at 14:29 -0700, York Sun wrote: > On 05/01/2014 02:21 PM, Scott Wood wrote: > > On Thu, 2014-05-01 at 14:16 -0700, York Sun wrote: > >> On 05/01/2014 08:54 AM, Simon Glass wrote: > >>> Hi York, > >>> > >>> On 30 April 2014 18:01, York Sun wrote: > Some platforms (including

[U-Boot] [PATCH] usb: ums: add error handling for failed registration

2014-05-01 Thread Stephen Warren
From: Stephen Warren Without this, if g_dnl_register() fails, the UMS code continues on blindly and crashes. This fix makes it simply print an error message instead. Signed-off-by: Stephen Warren --- common/cmd_usb_mass_storage.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH] USB: gadget: save driver name before registering it

2014-05-01 Thread Stephen Warren
From: Stephen Warren g_dnl_register() currently first attempts to register a composite driver by name, and then saves the driver name once it's registered. Internally to the registration code, g_dnl_do_config() is called and attempts to compare the composite device's name with the list of known d

Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-01 Thread Stephen Warren
On 05/01/2014 01:43 PM, Lukasz Majewski wrote: > Hi Stephen, > >> >> On 05/01/2014 04:51 AM, Marek Vasut wrote: >>> On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: From: Stephen Warren It's easier to assign values to the variables inside an if statement body

Re: [U-Boot] [PATCH v2] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Fabio Estevam
On Thu, May 1, 2014 at 6:35 PM, Otavio Salvador wrote: > static void setup_display(void) > { > struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; > + struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR; > int reg; > > enable_ipu_clock(); > @@ -

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread Simon Glass
+Albert Hi, On 1 May 2014 15:41, Scott Wood wrote: > On Thu, 2014-05-01 at 14:29 -0700, York Sun wrote: >> On 05/01/2014 02:21 PM, Scott Wood wrote: >> > On Thu, 2014-05-01 at 14:16 -0700, York Sun wrote: >> >> On 05/01/2014 08:54 AM, Simon Glass wrote: >> >>> Hi York, >> >>> >> >>> On 30 April

[U-Boot] [PATCH v3 1/2] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Otavio Salvador
This adds support for the 7" WVGA produced by Future Eletronics and make it dynamically detect if it is connected or not based on the touchscreen controller. Signed-off-by: Otavio Salvador --- Changes in v3: - Drop LVDS related code (unused) Changes in v2: - Drop LDB related code (unused) boa

[U-Boot] [PATCH v3 2/2] wandboard: Pass video kernel arguments for HDMI and LCD

2014-05-01 Thread Otavio Salvador
This checks if the 7" WVGA produced by Future Eletronics is detected and pass the needed kernel arguments for it to work. Signed-off-by: Otavio Salvador --- Changes in v3: - New patch Changes in v2: None include/configs/wandboard.h | 29 - 1 file changed, 28 insert

Re: [U-Boot] [PATCH v2] wandboard: add Future Eletronics 7" WVGA LCD extension board

2014-05-01 Thread Otavio Salvador
Hello Fabio, On Thu, May 1, 2014 at 6:48 PM, Fabio Estevam wrote: > On Thu, May 1, 2014 at 6:35 PM, Otavio Salvador > wrote: > >> static void setup_display(void) >> { >> struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; >> + struct iomuxc *iomux = (struct iomuxc

Re: [U-Boot] [Patch v3 1/2] common/board_f: Preserve early global data

2014-05-01 Thread York Sun
On 05/01/2014 02:41 PM, Scott Wood wrote: > On Thu, 2014-05-01 at 14:29 -0700, York Sun wrote: >> On 05/01/2014 02:21 PM, Scott Wood wrote: >>> On Thu, 2014-05-01 at 14:16 -0700, York Sun wrote: On 05/01/2014 08:54 AM, Simon Glass wrote: > Hi York, > > On 30 April 2014 18:01, York

Re: [U-Boot] Possible race condition when accessing SPI NOR Flash ?

2014-05-01 Thread Wolfgang Denk
Dear Valentin, In message <53623597.8040...@keymile.com> you wrote: > > Now when fw_setenv ([1], [2]) updates the environment variables, it sometimes > (approximately 1 out of 100 runs) triggers such kernel errors: ... > I see the same behavior with both the 2013.10 and the 2014.04 releases of > u

Re: [U-Boot] [PATCH 03/11] kconfig: add board Kconfig and defconfig files

2014-05-01 Thread Scott Wood
On Mon, 2014-04-28 at 11:47 -0600, Stephen Warren wrote: > I guess the main issue I see here is that all the HW-configuration needs > to be repeated in seaboard_defconfig and spl/seaboard_defconfig. > > (As an aside, if there's nothing special about SPL-vs-not and they're > just different builds o

[U-Boot] [Patch v4 1/2] common/board_f: Initialized global data for generic board

2014-05-01 Thread York Sun
Some platforms (tested on mpc85xx, mpc86xx) use global data before calling function baord_inti_f(). The data should not be cleared later. Any arch which uses global data in generic board board_init_f() should define CONFIG_SYS_GENERIC_GLOBAL_DATA. Signed-off-by: York Sun CC: Scott Wood CC: Simon

[U-Boot] [Patch v4 2/2] common/board_f: Fix size variable

2014-05-01 Thread York Sun
DRAM size should use 64-bit variable when the size could be more than 4GB. Caught and verified on P4080DS with 4GB DDR. Signed-off-by: York Sun --- Change log v4: no change since v1 common/board_f.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/commo

Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-01 Thread Lukasz Majewski
Hi Stephen, > > On 05/01/2014 04:51 AM, Marek Vasut wrote: > > On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: > >> From: Stephen Warren > >> > >> It's easier to assign values to the variables inside an if > >> statement body if the assignment and declaration are separate. > >

Re: [U-Boot] [Patch v4 1/2] common/board_f: Initialized global data for generic board

2014-05-01 Thread Simon Glass
On 1 May 2014 16:00, York Sun wrote: > Some platforms (tested on mpc85xx, mpc86xx) use global data before calling > function baord_inti_f(). The data should not be cleared later. Any arch > which uses global data in generic board board_init_f() should define > CONFIG_SYS_GENERIC_GLOBAL_DATA. > > S

[U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-01 Thread Heiko Schocher
Hello Simon, Marek, just updating to current mainline code and defining CONFIG_SYS_GENERIC_BOARD pops up the following error: CC common/board_r.o In file included from include/linux/mtd/flashchip.h:21:0, from include/linux/mtd/nand.h:31, from include/nand.

Re: [U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-01 Thread Wolfgang Denk
Dear Heiko, In message <53632ac5.1030...@denx.de> you wrote: > > How to solve this double named struct? I do not want to change this > in Linux code as "struct device" is very much used, and this would > be a maintaining nightmare for future syncs with linux code. > > Should we rename the DM "st

Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 06:58:50 PM, Stephen Warren wrote: > On 05/01/2014 04:51 AM, Marek Vasut wrote: > > On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: > >> From: Stephen Warren > >> > >> It's easier to assign values to the variables inside an if statement > >> body if

Re: [U-Boot] [PATCH v4 5/9] sunxi: add support for Cubietruck booting in FEL mode

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:48 PM, Ian Campbell wrote: > Signed-off-by: Oliver Schinagl > Signed-off-by: Jens Kuske > Signed-off-by: Ian Campbell > Reviewed-by: Tom Rini > Reviewed-by: Marek Vasut > --- > v4: Based on d9fe0a1e061e "sunxi: mksunxiboot: remove unnecessary casts." > > v3:

Re: [U-Boot] [PATCH v4 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:51 PM, Ian Campbell wrote: > Add support for booting from an MMC card. > > Signed-off-by: Stefan Roese > Signed-off-by: Henrik Nordström > Signed-off-by: Ian Campbell > Cc: Tom Cubie Reviewed-by: Marek Vasut Best regards, Marek Vasut __

Re: [U-Boot] [PATCH 1/3] usb: tegra: fix PHY selection code

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 06:56:24 PM, Stephen Warren wrote: > On 05/01/2014 04:49 AM, Marek Vasut wrote: > > On Wednesday, April 30, 2014 at 11:09:55 PM, Stephen Warren wrote: > >> From: Stephen Warren > >> > >> The TRM for Tegra30 and later all state that USBMODE_CM_HC must be set > >> befor

Re: [U-Boot] [PATCH v4 7/9] sunxi: mmc support

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:50 PM, Ian Campbell wrote: > This adds support for the MMC controller on the Allwinner A20 (sun7i) > processor. > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Luke Leighton > Signed-off-by: Oliver Schinagl > Signed-off-by: Wills Wang > Signed-off-by: Ia

Re: [U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-01 Thread Marek Vasut
On Friday, May 02, 2014 at 07:19:01 AM, Heiko Schocher wrote: > Hello Simon, Marek, > > just updating to current mainline code and defining > CONFIG_SYS_GENERIC_BOARD pops up the following error: > > CC common/board_r.o > In file included from include/linux/mtd/flashchip.h:21:0, >

Re: [U-Boot] [PATCH v4 6/9] sunxi: add gmac Ethernet support

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:49 PM, Ian Campbell wrote: > Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i) > processors. Enable for the Cubietruck. > > Signed-off-by: Chen-Yu Tsai > Signed-off-by: Jens Kuske > Signed-off-by: Ian Campbell Reviewed-by: Marek Vasut Be

Re: [U-Boot] Possible race condition when accessing SPI NOR Flash ?

2014-05-01 Thread Valentin Longchamp
Hello Wolfgang, On 05/02/2014 12:31 AM, Wolfgang Denk wrote: > Dear Valentin, > > In message <53623597.8040...@keymile.com> you wrote: >> >> Now when fw_setenv ([1], [2]) updates the environment variables, it sometimes >> (approximately 1 out of 100 runs) triggers such kernel errors: > ... >> I s

Re: [U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-01 Thread Ian Campbell
On Thu, 2014-05-01 at 20:49 +0100, Ian Campbell wrote: > I'm going to go through the rest now and reply with a proper v3..v4 > changelog. If I don't reply to a particular patch it means nothing > much changed. FYI there were changes to patches marked here with a * * sunxi: add sun7i clocks and ti