Re: [U-Boot] Azalia verb table from DT with Baytrail FSP

2016-05-20 Thread Bin Meng
Hi George, On Fri, May 20, 2016 at 11:05 PM, George McCollister wrote: > I'm working with an Advantech som-6867 (Baytrail com express CPU > module) and som-db5800 carrier board (with ALC892 HD audio codec) as > well as a custom carrier board (with CS4207 HD audio

Re: [U-Boot] style issue: ft_board_setup() versus ft_verify_fdt()?

2016-05-20 Thread Simon Glass
Hi Robert, On 19 May 2016 at 06:51, Robert P. J. Day wrote: > > curious about recommended coding style related to modifying and > verifying FDTs ... i'm perusing common/image-fdt.c and can see the > order of (possible) operations here in the function >

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Wills Wang
On 05/21/2016 01:08 AM, Marek Vasut wrote: On 05/20/2016 06:43 PM, Wills Wang wrote: On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um

Re: [U-Boot] Sharing code between Linux and bootloader (U-boot) ?

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 04:28:23PM +0200, Sebastian Frias wrote: > Hi, > > Some bootloaders (like U-boot) support several HW devices: serial, > network, NAND, USB, etc. most of which are also supported by Linux. > > So the question is: is code shared? I mean, I understand that the > drivers

Re: [U-Boot] [PATCH 0/9] sh: Convert generic board

2016-05-20 Thread Tom Rini
On Thu, May 19, 2016 at 09:26:46PM +0900, Yoshinori Sato wrote: > Hello. > This patch series convert generic board for SH. > Tested on r2dplus target. Since I believe you said before this was QEMU, how did you start it off? Thanks! -- Tom signature.asc Description: Digital signature

[U-Boot] [PATCH 0/5] Update fastboot sparse image handling

2016-05-20 Thread Steve Rae
While retaining the storage abstraction feature implemented in U-Boot, this series updates the fastboot sparse image handling by (1) fixing broken code, (2) resync'ing with the upstream code, and (3) improving performance when writing CHUNK_TYPE_FILL Steve Rae (5): fastboot: sparse: remove

[U-Boot] [PATCH 4/5] fastboot: sparse: implement reserve()

2016-05-20 Thread Steve Rae
In order to process the CHUNK_TYPE_DONT_CARE properly, there is a requirement to be able to 'reserve' a specified number of blocks in the storage media. Because of the special handling of "bad blocks" in NAND devices, this is implemented in a storage abstraction function. Signed-off-by: Steve Rae

[U-Boot] [PATCH 5/5] fastboot: sparse: improve CHUNK_TYPE_FILL write performance

2016-05-20 Thread Steve Rae
- increase the size of the fill buffer - testing has shown a 10x improvement when the sparse image has large CHUNK_TYPE_FILL chunks Signed-off-by: Steve Rae --- common/image-sparse.c | 37 +++-- 1 file changed, 27 insertions(+), 10

[U-Boot] [PATCH 2/5] fastboot: sparse: resync common/image-sparse.c (part 1)

2016-05-20 Thread Steve Rae
This file originally came from upstream code. While retaining the storage abstraction feature, this is the first set of the changes required to resync with the cmd_flash_mmc_sparse_img() in the file aboot.c from

[U-Boot] [PATCH 1/5] fastboot: sparse: remove session-id logic

2016-05-20 Thread Steve Rae
This "session-id" alogrithm is not required, and currently corrupts the stored image whenever more the one "session" is required. Signed-off-by: Steve Rae --- for more information, see the thread starting at [1] [1] http://lists.denx.de/pipermail/u-boot/2016-April/251889.html

[U-Boot] [PATCH 3/5] fastboot: sparse: resync common/image-sparse.c (part 2)

2016-05-20 Thread Steve Rae
- update fastboot_okay() and fastboot_fail() This file originally came from upstream code. While retaining the storage abstraction feature, this is the second set of the changes required to resync with the cmd_flash_mmc_sparse_img() in the file aboot.c from

Re: [U-Boot] [PATCH 1/3] SPL: Let spl_parse_image_header() return value

2016-05-20 Thread Fabio Estevam
On Fri, May 20, 2016 at 6:56 PM, Nishanth Menon wrote: > Marek, > > Just forwarding report from Suman (in CC) reporting that as of u-boot > master 4b6e1fd "Merge git://git.denx.de/u-boot-dm" > It looks like BeagleBoard-X15, DRA7 platforms fail due to this commit. > Fail signature

[U-Boot] [GIT PULL] u-boot-mips/next

2016-05-20 Thread Daniel Schwierzeck
Hi Tom, please pull the first batch of MIPS updates, thanks. The following changes since commit 4b6e1fda107e5244e80ebc41865650ac2873dc88: Merge git://git.denx.de/u-boot-dm (2016-05-17 13:58:27 -0400) are available in the git repository at: git://git.denx.de/u-boot-mips.git master for

Re: [U-Boot] [U-Boot,2/4] board: ti: am57xx: Fix USB configuration

2016-05-20 Thread Tom Rini
On Fri, May 13, 2016 at 03:17:51PM +0300, Roger Quadros wrote: > This fixes build. > > Signed-off-by: Roger Quadros > --- > include/configs/am57xx_evm.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h >

Re: [U-Boot] [PATCH 1/3] SPL: Let spl_parse_image_header() return value

2016-05-20 Thread Nishanth Menon
Marek, Just forwarding report from Suman (in CC) reporting that as of u-boot master 4b6e1fd "Merge git://git.denx.de/u-boot-dm" It looks like BeagleBoard-X15, DRA7 platforms fail due to this commit. Fail signature looks like the following: ... DRA752 ES2.0 Trying to boot from MMC1 reading args

Re: [U-Boot] [PATCH] ts4800: add CONFIG_SYS_FSL_ERRATUM_ESDHC_A001

2016-05-20 Thread Fabio Estevam
Hi Sebastien, On Fri, May 20, 2016 at 5:13 PM, Sebastien Bourdelin wrote: > This issue happen with the SD card, i currently didn't found the time to > try with eMMC. Ok, we also boot from SD card on the mx51evk and never observed this issue there.

[U-Boot] [PATCH 1/2] arm: Introduce setjmp/longjmp

2016-05-20 Thread Alexander Graf
To quit an EFI application we will need logic to jump to the caller of a function without returning from the function we called into, so we need setjmp/longjmp functionality. This patch introduces a trivial implementation of these that I verified works on armv7, thumb2 and aarch64.

[U-Boot] [PATCH 2/2] efi_loader: Add exit support

2016-05-20 Thread Alexander Graf
Some times you may want to exit an EFI payload again, for example to default boot into a PXE installation and decide that you would rather want to boot from the local disk instead. This patch adds exit functionality to the EFI implementation, allowing EFI payloads to exit. Signed-off-by:

[U-Boot] [PATCH 0/2] efi_loader: Implement exit

2016-05-20 Thread Alexander Graf
In some environments it makes sense to try different boot paths in order, for example boot from network, then determine that network boot is not for you based on a configuration file, then continue descending the list to SD boot. The usual way this works in an EFI world is to just exit th EFI

Re: [U-Boot] Please pull u-boot-dm

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 09:12:57PM +0200, Karsten Merker wrote: > On Fri, May 20, 2016 at 01:55:12PM -0400, Tom Rini wrote: > > On Fri, May 20, 2016 at 05:53:34PM +0200, Hans de Goede wrote: > > > > >>I've been happy when I can use gcc-6.x for all the free cost savings but > > > >>current Debian

Re: [U-Boot] [PATCH 03/13] imx-common: use simpler runtime cpu dection macros

2016-05-20 Thread Benoît Thébaudeau
Hi Peng, On Fri, May 20, 2016 at 10:41 AM, Peng Fan wrote: > On Fri, May 20, 2016 at 01:02:10AM +0200, Benoît Thébaudeau wrote: >>On Wed, May 18, 2016 at 9:53 AM, Peng Fan wrote: >>> Use simpler runtime cpu dection macros. >>> >>> Signed-off-by:

Re: [U-Boot] [PATCH] ts4800: add CONFIG_SYS_FSL_ERRATUM_ESDHC_A001

2016-05-20 Thread Sebastien Bourdelin
Hi Fabio, On 05/10/2016 04:43 PM, Fabio Estevam wrote: > Hi Sebastien, > > On Thu, Apr 21, 2016 at 2:37 PM, Sebastien Bourdelin > wrote: >> This commit fixes the MMC data transactions timeout problem on the >> TS4800. >> >> The changes introduced in the

Re: [U-Boot] [PATCH v1 11/12] doc, spl, am335x: update am335x-network

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:37PM +0200, Heiko Schocher wrote: > on the shc board we see when booting in net boot mode, > that the ROM bootloader sends "AM335x ROM" as > vendor-class-identifier. U-Boots doc says "DM814x ROM". > > So, add the info to the doc, that there is also > "AM335x ROM"

Re: [U-Boot] [PATCH v1 09/12] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM33xx

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:35PM +0200, Heiko Schocher wrote: > Enable 8bit interface on HSMMC2 for am33xx to support 8bit eMMC chips. > > Signed-off-by: Heiko Schocher Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v1 12/12] am335x, shc: add support for the am335x based bosch shc board

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:38PM +0200, Heiko Schocher wrote: > U-Boot SPL 2016.03-rc3-00019-g6dfb4c2-dirty (Mar 09 2016 - 07:40:06) > SHC C3-Sample > MPU reference clock runs at 6 MHz > Setting MPU clock to 594 MHz > Enabling Spread Spectrum of 18 permille for MPU > Trying to boot from MMC >

Re: [U-Boot] [PATCH v1 05/12] am335x: add some missing CM_CLKMODE_DPLL_SSC macros

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:31PM +0200, Heiko Schocher wrote: > add missing CM_CLKMODE_DPLL_SSC_ACK_MASK, > CM_CLKMODE_DPLL_SSC_DOWNSPREAD_MASK and > CM_CLKMODE_DPLL_SSC_TYPE_MASK > defines. Used for enabling spread spectrum. > > Signed-off-by: Heiko Schocher Reviewed-by: Tom

Re: [U-Boot] [PATCH v1 06/12] arm, am335x: Enable Spread Spectrum for the MPU

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:32PM +0200, Heiko Schocher wrote: > Enable Spread Spectrum for the MPU by calculating the required > values and setting the registers accordingly. > > Signed-off-by: Heiko Schocher Reviewed-by: Tom Rini -- Tom signature.asc

Re: [U-Boot] [PATCH v1 04/12] arm, am335x: add some missing GPIO register definitions

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:30PM +0200, Heiko Schocher wrote: > add missing: > OMAP_GPIO_IRQSTATUS_SET_0 and OMAP_GPIO_IRQSTATUS_SET_1 > registers. > > Signed-off-by: Heiko Schocher Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH v1 03/12] power, tps65217: add some defines

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:29PM +0200, Heiko Schocher wrote: > add the following defines, needed for the upcoming shc board > support: > > Signed-off-by: Heiko Schocher Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 0/2] Add support for Amlogic Meson MMC controller

2016-05-20 Thread Carlo Caione
On 20/05/16 11:58, Robert Gadsdon wrote: > On 05/20/2016 01:07 AM, Carlo Caione wrote: > > On 20/05/16 08:27, Carlo Caione wrote: > >> On 19/05/16 21:51, Robert Gadsdon wrote: > >>> Applied this on my Odroid C2, and it worked OK when installed on the > >>> SDcard, but failed when installed on the

Re: [U-Boot] [PATCH 0/2] Add support for Amlogic Meson MMC controller

2016-05-20 Thread Robert Gadsdon
On 05/20/2016 01:07 AM, Carlo Caione wrote: > On 20/05/16 08:27, Carlo Caione wrote: >> On 19/05/16 21:51, Robert Gadsdon wrote: >>> Applied this on my Odroid C2, and it worked OK when installed on the >>> SDcard, but failed when installed on the eMMC module: > > Oh, reading this again you meant

Re: [U-Boot] Please pull u-boot-dm

2016-05-20 Thread Hans de Goede
Hi, On 20-05-16 19:55, Tom Rini wrote: On Fri, May 20, 2016 at 05:53:34PM +0200, Hans de Goede wrote: Hi, On 20-05-16 17:23, Simon Glass wrote: Hi Tom, On 19 May 2016 at 10:02, Tom Rini wrote: On Thu, May 19, 2016 at 08:41:05AM -0600, Simon Glass wrote: Hi Tom, On 19

[U-Boot] [PATCH] cosmetic: mx6slevk: Minor coding-style fix

2016-05-20 Thread Sebastien Bourdelin
Fix the brace indentation in board_mmc_init(). Signed-off-by: Sebastien Bourdelin --- board/freescale/mx6slevk/mx6slevk.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/freescale/mx6slevk/mx6slevk.c

Re: [U-Boot] Please pull u-boot-dm

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 05:53:34PM +0200, Hans de Goede wrote: > Hi, > > On 20-05-16 17:23, Simon Glass wrote: > >Hi Tom, > > > >On 19 May 2016 at 10:02, Tom Rini wrote: > >>On Thu, May 19, 2016 at 08:41:05AM -0600, Simon Glass wrote: > >>>Hi Tom, > >>> > >>>On 19 May 2016 at

[U-Boot] uboot xHCI driver crash sometimes when endpoint stalls

2016-05-20 Thread Mohammed Mohisin
Hi All, Sometimes crash is observed, when the endpoint stalls. And the crash happens in xhci_ctrl_tx() -> xhci_acknowledge_event() In my case, 1) scsi read command is sent successfully, 2) Then for Get data command stall is received (as i mentioned issue is seen sometimes, which means data is

Re: [U-Boot] why so little use of ft_system_setup()?

2016-05-20 Thread Robert P. J. Day
On Fri, 20 May 2016, Stephen Warren wrote: > On 05/19/2016 12:19 PM, Robert P. J. Day wrote: > > > >still crawling through the code related to FDTs, and while i see a > > pile of boards that define CONFIG_OF_SYSTEM_SETUP, i see very few that > > define the corresponding(?) ft_system_setup()

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Marek Vasut
On 05/20/2016 06:43 PM, Wills Wang wrote: > > > On 05/20/2016 07:59 PM, Marek Vasut wrote: >> On 05/20/2016 06:18 AM, Wills Wang wrote: >>> >>> On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! > Am 05.05.2016 um 21:34

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Wills Wang
On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21:34 schrieb Marek Vasut: Add ethernet driver for the AR933x and AR934x Atheros MIPS

Re: [U-Boot] [PATCH] mmc: tegra: add basic Tegra186 support

2016-05-20 Thread Stephen Warren
On 05/18/2016 10:02 PM, Simon Glass wrote: Hi Stephen, On 12 May 2016 at 12:11, Stephen Warren wrote: ... arch/arm/include/asm/arch-tegra/tegra_mmc.h | 2 ++ drivers/mmc/tegra_mmc.c | 32 - include/fdtdec.h

Re: [U-Boot] [PATCH v2] ARM: fix ifdef in ARMv8 lowlevel_init() again

2016-05-20 Thread Stephen Warren
On 05/19/2016 09:13 PM, Masahiro Yamada wrote: Commit 116611937faa ("ARM: fix ifdefs in ARMv8 lowlevel_init()") accidentally inverted the logic of CONFIG_ARMV8_MULTIENTRY. Fixes: 116611937faa ("ARM: fix ifdefs in ARMv8 lowlevel_init()") Signed-off-by: Masahiro Yamada

Re: [U-Boot] why so little use of ft_system_setup()?

2016-05-20 Thread Stephen Warren
On 05/19/2016 12:19 PM, Robert P. J. Day wrote: still crawling through the code related to FDTs, and while i see a pile of boards that define CONFIG_OF_SYSTEM_SETUP, i see very few that define the corresponding(?) ft_system_setup() routine. $ grep -r CONFIG_OF_SYSTEM_SETUP *

Re: [U-Boot] Please pull u-boot-dm

2016-05-20 Thread Hans de Goede
Hi, On 20-05-16 17:23, Simon Glass wrote: Hi Tom, On 19 May 2016 at 10:02, Tom Rini wrote: On Thu, May 19, 2016 at 08:41:05AM -0600, Simon Glass wrote: Hi Tom, On 19 May 2016 at 06:09, Tom Rini wrote: On Tue, May 17, 2016 at 11:46:53AM -0600, Simon

Re: [U-Boot] [PATCH v7 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-20 Thread Carlo Caione
On 08/05/16 08:30, Beniamino Galvani wrote: > This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a > board definition for ODROID-C2. This initial submission only supports > UART and Ethernet (through the existing Designware driver). DTS files > are the ones submitted to Linux

[U-Boot] Sharing code between Linux and bootloader (U-boot) ?

2016-05-20 Thread Sebastian Frias
Hi, Some bootloaders (like U-boot) support several HW devices: serial, network, NAND, USB, etc. most of which are also supported by Linux. So the question is: is code shared? I mean, I understand that the drivers need to talk to the appropriate API, and such API could be different between

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-05-20 Thread Rajesh Bhagat
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Marek Vasut > Sent: Tuesday, May 10, 2016 6:02 PM > To: Diego > Cc: u-boot@lists.denx.de; Stefan Roese > Subject: Re: [U-Boot] Issue with USB mass storage (thumb

Re: [U-Boot] [PATCH 0/2] Add support for Amlogic Meson MMC controller

2016-05-20 Thread Carlo Caione
On 19/05/16 21:51, Robert Gadsdon wrote: > Applied this on my Odroid C2, and it worked OK when installed on the > SDcard, but failed when installed on the eMMC module: > > => version > U-Boot 2016.05-rc3 (May 14 2016 - 21:06:28 -0700) odroid-c2 > aarch64-linux-gnu-gcc (GCC) 5.3.1 20160212 (Red

Re: [U-Boot] [PATCH 0/2] Add support for Amlogic Meson MMC controller

2016-05-20 Thread Carlo Caione
On 20/05/16 08:27, Carlo Caione wrote: > On 19/05/16 21:51, Robert Gadsdon wrote: > > Applied this on my Odroid C2, and it worked OK when installed on the > > SDcard, but failed when installed on the eMMC module: Oh, reading this again you meant that you put u-boot directly on the eMMC? Ok then,

Re: [U-Boot] [PATCH] driver/ddr/fsl: Force enabling parity for A-009803

2016-05-20 Thread York Sun
On 05/20/2016 01:15 AM, Shengzhou Liu wrote: > Default address parity is disabled for DDR4 UDIMM for considing > performance, it needs to enable parity for A-009803 workaround. > > Signed-off-by: Shengzhou Liu > --- > drivers/ddr/fsl/options.c | 3 +++ > 1 file changed, 3

Re: [U-Boot] [PATCH v5 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-20 Thread Simon Glass
Hi Vignesh, On 19 May 2016 at 23:01, Vignesh R wrote: > > Convert davinci_spi driver so that it complies with SPI DM framework. > > Signed-off-by: Vignesh R > Reviewed-by: Tom Rini > --- > > v5: correct error message. > > v4: Check error

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 03:19:46PM +0200, Daniel Schwierzeck wrote: > Am 20.05.2016 um 15:09 schrieb Tom Rini: > > On Wed, May 18, 2016 at 04:18:27PM +0200, Heiko Schocher wrote: > > > >> move CONFIG_BOOTDELAY into a Kconfig option. Used for this > >> purpose the moveconfig.py tool in tools. > >>

Re: [U-Boot] [PATCH v4 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-20 Thread Simon Glass
On 16 May 2016 at 03:38, Vignesh R wrote: > Convert davinci_spi driver so that it complies with SPI DM framework. > > Signed-off-by: Vignesh R > Reviewed-by: Tom Rini > --- > > v4: Check error returned by dev_map_physmem(). > > v3: No

Re: [U-Boot] Please pull u-boot-dm

2016-05-20 Thread Simon Glass
Hi Tom, On 19 May 2016 at 10:02, Tom Rini wrote: > On Thu, May 19, 2016 at 08:41:05AM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 19 May 2016 at 06:09, Tom Rini wrote: >> > On Tue, May 17, 2016 at 11:46:53AM -0600, Simon Glass wrote: >> > >> >> Hi Tom,

[U-Boot] Azalia verb table from DT with Baytrail FSP

2016-05-20 Thread George McCollister
I'm working with an Advantech som-6867 (Baytrail com express CPU module) and som-db5800 carrier board (with ALC892 HD audio codec) as well as a custom carrier board (with CS4207 HD audio codec). After adding DT entries for the correct HDA pad configuration, I got the ALC892 working by hacking

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Marek Vasut
On 05/20/2016 04:23 PM, Tim Harvey wrote: > On Fri, May 20, 2016 at 6:16 AM, Marek Vasut wrote: >>> Marek, >>> >>> Could you revert 291000894ed4d6257830baba547764b86e335b5c and/or >>> submit a patch to move CONFIG_SPL_EXT_SUPPORT back into the board >>> config? It looks like the

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Tim Harvey
On Fri, May 20, 2016 at 6:16 AM, Marek Vasut wrote: >> Marek, >> >> Could you revert 291000894ed4d6257830baba547764b86e335b5c and/or >> submit a patch to move CONFIG_SPL_EXT_SUPPORT back into the board >> config? It looks like the novena board was the only one using it and >> it

[U-Boot] [PATCH 2/7] spl: nand: rename the SYS_NAND_U_BOOT_OFFS Kconfig option

2016-05-20 Thread Boris Brezillon
The SYS_NAND_U_BOOT_OFFS is quite generic, but the Kconfig entry is forced to explicitly depend on platforms that are not already defining it in their include/configs/.h header. Rename this Kconfig option into SPL_NAND_U_BOOT_OFFS, remove the dependency on NAND_SUNXI and make it dependent on SPL

[U-Boot] [PATCH 3/7] spl: nand: support redundant u-boot image

2016-05-20 Thread Boris Brezillon
On modern NAND it's more than recommended to have a backup copy of the u-boot binary to recover from corruption: bitflips are quite common on MLC NANDs, and the read-disturbance will corrupt your u-boot partitition more quickly than what you would see on an SLC NAND. Add an extra Kconfig option

[U-Boot] [PATCH 4/7] spl: nand: sunxi: stop guessing the redundant u-boot offset

2016-05-20 Thread Boris Brezillon
Use CONFIG_SPL_NAND_U_BOOT_OFFS_REDUND value instead of trying to guess where the redundant u-boot image is based on simple (and most of the time erroneous) heuristics. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand_spl.c | 20

[U-Boot] [PATCH 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-05-20 Thread Boris Brezillon
NAND chips are supposed to expose their capabilities through advanced mechanisms like READID, ONFI or JEDEC parameter tables. While those methods are appropriate for the bootloader itself, it's way to complicated and takes too much space to fit in the SPL. Replace those mechanisms by a dumb

[U-Boot] [PATCH 5/7] spl: nand: sunxi: rework status polling loop

2016-05-20 Thread Boris Brezillon
check_value_xxx() helpers are using a 1ms delay between each test, which can be quite long for some operations (like a page read on an SLC NAND). Since we don't have anything to do but to poll this register, reduce the delay between each test to 1us. While we're at it, rename the

[U-Boot] [PATCH 6/7] spl: nand: sunxi: split 'load page' and 'read page' logic

2016-05-20 Thread Boris Brezillon
Split the 'load page' and 'read page' logic in 2 different functions so we can later load the page and test different ECC configs without the penalty of reloading the same page in the NAND cache. We also move common setup to a dedicated function (nand_apply_config()) to avoid rewriting the same

[U-Boot] [PATCH 1/7] spl: nand: sunxi: remove support for so-called 'syndrome' mode

2016-05-20 Thread Boris Brezillon
The sunxi SPL NAND controller driver supports use 'BootROM'-like configs, that is, configs where the ECC bytes and real data are interleaved in the page instead of putting ECC bytes in the OOB area. Doing that has several drawbacks: - since you're interleaving data and ECC bytes you can't use the

[U-Boot] [PATCH 0/7] spl: nand: sunxi: implement auto-detection

2016-05-20 Thread Boris Brezillon
Hello, This patch series aims at adding support for NAND auto-detection to the sunxi SPL NAND driver. As explained in patch 7, this auto-detection is nothing more than a dumb "trial and error" logic, but it allows one to use the same SPL binary for all kind of sunxi boards booting from NAND. Of

[U-Boot] [PATCH] ARM: zynq: Simplify zynq configuration

2016-05-20 Thread Michal Simek
Extending Kconfig for adding new platform is a lot of work for nothing. Setting SYS_CONFIG_NAME directly in Kconfig and remove all dependencies on TARGET_ZYNQ_* options including SPL. As a side-effect it also remove custom init folder for ps7_init_gpl.* files. Folder is choosed based on

Re: [U-Boot] [PATCH 2/2] tools: env: Add support for direct read/write UBI volumes

2016-05-20 Thread Marcin Niestroj
On 06.05.2016 14:58, Marcin Niestroj wrote: Up to now we were able to read/write environment data from/to UBI volumes only indirectly by gluebi driver. This driver creates NAND MTD on top of UBI volumes, which is quite a workaroung for this use case. Add support for direct read/write UBI

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Stefano Babic
Hi Marek, Tim, On 20/05/2016 15:16, Marek Vasut wrote: >> Could you revert 291000894ed4d6257830baba547764b86e335b5c and/or >> submit a patch to move CONFIG_SPL_EXT_SUPPORT back into the board >> config? It looks like the novena board was the only one using it and >> it breaks Ventana build. > >

Re: [U-Boot] [PATCH 1/2] tools: env: Fix format warnings in debug

2016-05-20 Thread Marcin Niestroj
ping On 06.05.2016 14:58, Marcin Niestroj wrote: Format warnings (-Wformat) were shown in printf() calls after defining DEBUG macro. Update format string and explicitly cast variables to suppress all warnings. Signed-off-by: Marcin Niestroj ---

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-20 Thread Daniel Schwierzeck
Am 20.05.2016 um 15:09 schrieb Tom Rini: > On Wed, May 18, 2016 at 04:18:27PM +0200, Heiko Schocher wrote: > >> move CONFIG_BOOTDELAY into a Kconfig option. Used for this >> purpose the moveconfig.py tool in tools. >> >> Signed-off-by: Heiko Schocher > > So, my question here is

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Marek Vasut
On 05/20/2016 03:10 PM, Tim Harvey wrote: > On Fri, May 20, 2016 at 5:50 AM, Marek Vasut wrote: >> On 05/20/2016 02:41 PM, Stefano Babic wrote: >>> Hi Tim, >>> >>> On 19/05/2016 16:34, Tim Harvey wrote: On Thu, May 19, 2016 at 7:05 AM, Stefano Babic wrote:

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Tim Harvey
On Fri, May 20, 2016 at 5:50 AM, Marek Vasut wrote: > On 05/20/2016 02:41 PM, Stefano Babic wrote: >> Hi Tim, >> >> On 19/05/2016 16:34, Tim Harvey wrote: >>> On Thu, May 19, 2016 at 7:05 AM, Stefano Babic wrote: Hi Tim, On 19/05/2016 15:48, Tim

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-20 Thread Tom Rini
On Wed, May 18, 2016 at 04:18:27PM +0200, Heiko Schocher wrote: > move CONFIG_BOOTDELAY into a Kconfig option. Used for this > purpose the moveconfig.py tool in tools. > > Signed-off-by: Heiko Schocher So, my question here is did you do a buildman -S (sizes) before/after this

Re: [U-Boot] [PATCH v3 10/15] ti_omap5_common: Update SPL start address on secure parts

2016-05-20 Thread Tom Rini
On Thu, May 19, 2016 at 07:10:50PM -0500, Daniel Allred wrote: > Updated the CONFIG_SPL_TEXT_BASE to support secure parts (moving > the start address past secure reserved memory and the size of the > security certificate that precedes the boot image on secure devices). > Updated the related

Re: [U-Boot] [PATCH] SPL: fat: Fix spl_parse_image_header() return value handling

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 01:45:24AM +0200, Marek Vasut wrote: > The spl_parse_image_header() can return 0 and it is not an error. > Only treat non-zero return value as an error. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan

Re: [U-Boot] [PATCH] ARM: dts: dra7x: Support QSPI MODE-0 operation at 64MHz

2016-05-20 Thread Tom Rini
On Fri, May 20, 2016 at 04:11:22PM +0530, Vignesh R wrote: > According to Data Manual(SPRS915P) of AM57x, TI QSPI controller on > DRA74(rev 1.1+)/DRA72 EVM can support up to 64MHz in MODE-0, whereas > MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better > throughput. > > Signed-off-by:

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Marek Vasut
On 05/20/2016 02:41 PM, Stefano Babic wrote: > Hi Tim, > > On 19/05/2016 16:34, Tim Harvey wrote: >> On Thu, May 19, 2016 at 7:05 AM, Stefano Babic wrote: >>> Hi Tim, >>> >>> On 19/05/2016 15:48, Tim Harvey wrote: On Thu, May 19, 2016 at 6:02 AM, Stefano Babic

Re: [U-Boot] Breakage on gw_ventana

2016-05-20 Thread Stefano Babic
Hi Tim, On 19/05/2016 16:34, Tim Harvey wrote: > On Thu, May 19, 2016 at 7:05 AM, Stefano Babic wrote: >> Hi Tim, >> >> On 19/05/2016 15:48, Tim Harvey wrote: >>> On Thu, May 19, 2016 at 6:02 AM, Stefano Babic wrote: Hi Tim, last changes break

[U-Boot] coding style question: when to use __weak function attributes?

2016-05-20 Thread Robert P. J. Day
pardon yet another question on coding style and pedantry, but i'm curious about the following. i'm crawling through the code in common/image-fdt.c, specifically in image_setup_libfdt(), and first i see the following: __weak int arch_fixup_fdt(void *blob) { return 0; } ...

[U-Boot] [PATCH] board: ge: bx50v3: don't configure the backlight when there's no display

2016-05-20 Thread Andrew Shadura
Don't try to configure the backlight when CONFIG_VIDEO_IPUV3 isn't set. Signed-off-by: Andrew Shadura --- board/ge/bx50v3/bx50v3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index e167cd5..fb112ee

[U-Boot] [PATCH v2] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3

2016-05-20 Thread Andrew Shadura
detect_baseboard() function doesn't depend on CONFIG_VIDEO_IPUV3. Make sure it's available when CONFIG_VIDEO_IPUV3 is off. Signed-off-by: Andrew Shadura --- The first version of the patch moved the function down below its first use, thus making the code

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Marek Vasut
On 05/20/2016 06:18 AM, Wills Wang wrote: > > > On 05/08/2016 11:22 PM, Marek Vasut wrote: >> On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: >> >> Hi! >> >>> Am 05.05.2016 um 21:34 schrieb Marek Vasut: Add ethernet driver for the AR933x and AR934x Atheros MIPS machines. The driver

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-05-20 Thread Marek Vasut
On 05/20/2016 07:07 AM, Rajesh Bhagat wrote: > > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Marek Vasut >> Sent: Tuesday, May 10, 2016 6:02 PM >> To: Diego >> Cc: u-boot@lists.denx.de; Stefan Roese >>

[U-Boot] [PATCH] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3

2016-05-20 Thread Andrew Shadura
detect_baseboard() function doesn't depend on CONFIG_VIDEO_IPUV3. Make sure it's available when CONFIG_VIDEO_IPUV3 is off. Signed-off-by: Andrew Shadura --- board/ge/bx50v3/bx50v3.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[U-Boot] abbreviating header files with CONFIG_IS_ENABLED()?

2016-05-20 Thread Robert P. J. Day
just want to make sure i'm interpreting the use of this macro correctly in that, if i look in include/image.h, i see (abbreviated snippet): #if IMAGE_ENABLE_FIT # ifdef CONFIG_SPL_BUILD # ifdef CONFIG_SPL_CRC32_SUPPORT # define IMAGE_ENABLE_CRC32 1 # endif # ifdef

Re: [U-Boot] [PATCH v3 01/11] ARM: PSCI: change PSCI function IDs base and offsets

2016-05-20 Thread Hongbo Zhang
On Thu, May 19, 2016 at 5:07 PM, Andre Przywara wrote: > Hi, > > On 19/05/16 09:45, Hongbo Zhang wrote: >> On Wed, May 18, 2016 at 6:07 PM, Andre Przywara >> wrote: >>> Hi, >>> >>> On 18/05/16 10:10, macro.wav...@gmail.com wrote: From: Wang

[U-Boot] [PATCH 3/4] mmc: fsl_esdhc: add error recovery for data transfer with Auto CMD12

2016-05-20 Thread Yangbo Lu
For data transfer with Auto CMD12, the host will not send an Auto CMD12 to stop when the transfer fails. So this patch adds a flag to indicate the READ/WRITE command error, and makes the driver continue to send a CMD12 manually. Signed-off-by: Yangbo Lu ---

[U-Boot] [PATCH 2/4] mmc: send STOP command when the READ/WIRTE commands fail

2016-05-20 Thread Yangbo Lu
The STOP command should be sent to stop data transfer when the READ/WRITE commands fail. Otherwise, any subsequent command will fail to be sent. Signed-off-by: Yangbo Lu --- drivers/mmc/mmc.c | 28 +++- drivers/mmc/mmc_private.h | 1 +

[U-Boot] [PATCH] ARM: dts: dra7x: Support QSPI MODE-0 operation at 64MHz

2016-05-20 Thread Vignesh R
According to Data Manual(SPRS915P) of AM57x, TI QSPI controller on DRA74(rev 1.1+)/DRA72 EVM can support up to 64MHz in MODE-0, whereas MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better throughput. Signed-off-by: Vignesh R --- arch/arm/dts/dra7-evm.dts | 6 ++

[U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-05-20 Thread Yangbo Lu
Erratum Title: Data timeout error not getting set in case of command with busy response (R1b) as well as for busy period after last write block transfer. Description: In the event that a busy timeout occurs for a command with a busy response (e.g. R1b response) as well as busy period after the

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: don't set XFERTYP_RSPTYP_48_BUSY for CMD with busy response

2016-05-20 Thread Yangbo Lu
For CMD with busy response, the eSDHC driver would poll DAT0 until CMD completion rather than polling IRQSTAT. So, don't set XFERTYP_RSPTYP_48_BUSY to avoid interrupts (DTOE or TC) in IRQSTAT. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 12 ++-- 1 file

Re: [U-Boot] [PATCH] SPL: fat: Fix spl_parse_image_header() return value handling

2016-05-20 Thread Stefano Babic
On 20/05/2016 01:45, Marek Vasut wrote: > The spl_parse_image_header() can return 0 and it is not an error. > Only treat non-zero return value as an error. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc:

Re: [U-Boot] [PATCH] SPL: fat: Fix spl_parse_image_header() return value handling

2016-05-20 Thread Peng Fan
On Fri, May 20, 2016 at 01:45:24AM +0200, Marek Vasut wrote: >The spl_parse_image_header() can return 0 and it is not an error. >Only treat non-zero return value as an error. > >Signed-off-by: Marek Vasut >Cc: Fabio Estevam >Cc: Peng Fan

[U-Boot] Please pull u-boot-marvell/master

2016-05-20 Thread Stefan Roese
Hi Tom, please pull those 2 patches. Thanks, Stefan The following changes since commit 4b6e1fda107e5244e80ebc41865650ac2873dc88: Merge git://git.denx.de/u-boot-dm (2016-05-17 13:58:27 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-marvell.git for you to

Re: [U-Boot] [PATCH] arm: mvebu: theadorable: Enable CONFIG_ZERO_BOOTDELAY_CHECK

2016-05-20 Thread Stefan Roese
On 13.04.2016 11:02, Stefan Roese wrote: Enable bootdelay 0 check so that booting can be interrupted even with bootdelay configured to 0. Signed-off-by: Stefan Roese --- include/configs/theadorable.h | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [U-Boot] [PATCH] arm: mvebu: a38x: Weed out floating point use

2016-05-20 Thread Stefan Roese
On 30.04.2016 14:45, Marek Vasut wrote: For reason unknown, recently, the DDR init code writers are really fond of hiding some small floating point operating deep in their creations. This patch removes one from the Marvell A38x code. Instead of returning size of chip as float from

Re: [U-Boot] [PATCH 03/13] imx-common: use simpler runtime cpu dection macros

2016-05-20 Thread Peng Fan
Hi Benoît, On Fri, May 20, 2016 at 01:02:10AM +0200, Benoît Thébaudeau wrote: >Dear Peng Fan, > >On Wed, May 18, 2016 at 9:53 AM, Peng Fan wrote: >> Use simpler runtime cpu dection macros. >> >> Signed-off-by: Peng Fan >> Cc: Stefano Babic

Re: [U-Boot] [PATCH v2 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-05-20 Thread Huan Wang
> On 20.05.16 10:26, Huan Wang wrote: > >> On 20.05.16 08:53, Huan Wang wrote: > On 05/19/2016 10:26 AM, Alison Wang wrote: > > To support loading a 32-bit OS, the execution state will change > > from > > AArch64 to AArch32 when jumping to kernel. > > > > The architecture

Re: [U-Boot] [PATCH v2 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-05-20 Thread Alexander Graf
On 20.05.16 10:26, Huan Wang wrote: >> On 20.05.16 08:53, Huan Wang wrote: On 05/19/2016 10:26 AM, Alison Wang wrote: > To support loading a 32-bit OS, the execution state will change from > AArch64 to AArch32 when jumping to kernel. > > The architecture information will be

Re: [U-Boot] [PATCH v2 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-05-20 Thread Huan Wang
> On 20.05.16 08:53, Huan Wang wrote: > >> On 05/19/2016 10:26 AM, Alison Wang wrote: > >>> To support loading a 32-bit OS, the execution state will change from > >>> AArch64 to AArch32 when jumping to kernel. > >>> > >>> The architecture information will be got through checking FIT image, > >>>

[U-Boot] [PATCH] driver/ddr/fsl: Force enabling parity for A-009803

2016-05-20 Thread Shengzhou Liu
Default address parity is disabled for DDR4 UDIMM for considing performance, it needs to enable parity for A-009803 workaround. Signed-off-by: Shengzhou Liu --- drivers/ddr/fsl/options.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ddr/fsl/options.c

Re: [U-Boot] [PATCH v2 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-05-20 Thread Alexander Graf
On 20.05.16 08:53, Huan Wang wrote: >> On 05/19/2016 10:26 AM, Alison Wang wrote: >>> To support loading a 32-bit OS, the execution state will change from >>> AArch64 to AArch32 when jumping to kernel. >>> >>> The architecture information will be got through checking FIT image, >>> then U-Boot

  1   2   >