Re: [U-Boot] [UBOOT PATCH 2/2] dm: core: Scan "/firmware" node by default

2018-08-20 Thread Michal Simek
On 17.8.2018 20:03, Simon Glass wrote: > Hi Michael, > > On 17 August 2018 at 07:22, Michal Simek wrote: >> On 17.8.2018 14:49, Simon Glass wrote: >>> On 10 August 2018 at 02:45, Rajan Vaja wrote: All Linux firmware drivers are put under "/firmware" node and it has support to populate

[U-Boot] [PATCH] arm64: zynqmp: Handle CONFIG_BOARD_LATE_INIT via Kconfig

2018-08-20 Thread Michal Simek
Disable BOARD_LATE_INIT via Kconfig. Signed-off-by: Michal Simek --- This is correct resolution of BOARD_LATE_INIT for xilinx boards where we want to disable late init for mini u-boot configurations. I have took Kconfig fragment description from Ramon. --- arch/arm/Kconfig

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Bin Meng
Hi Marek, On Fri, Aug 17, 2018 at 6:27 PM, Marek Vasut wrote: > On 08/17/2018 03:51 AM, Bin Meng wrote: >> Hi Marek, >> >> On Thu, Aug 16, 2018 at 7:47 PM, Marek Vasut wrote: >>> On 08/15/2018 01:25 PM, Tom Rini wrote: On Wed, Aug 15, 2018 at 06:19:25PM +0800, Bin Meng wrote: > Hi Marek

Re: [U-Boot] [U-Boot,v2] Convert CONFIG_BOARD_LATE_INIT to Kconfig

2018-08-20 Thread Marek Vasut
On 08/20/2018 04:42 AM, Tom Rini wrote: > On Sat, Aug 18, 2018 at 08:18:25PM +0300, Ramon Fried wrote: > >> This converts the remaining board defined >> CONFIG_BOARD_LATE_INIT to Kconfig. >> >> Signed-off-by: Ramon Fried >> --- >> Changes in v2: >> * Removed config from Kconfig as it already exis

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-20 Thread Marek Vasut
On 08/20/2018 09:18 AM, Bin Meng wrote: > Hi Marek, > > On Fri, Aug 17, 2018 at 6:27 PM, Marek Vasut wrote: >> On 08/17/2018 03:51 AM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Thu, Aug 16, 2018 at 7:47 PM, Marek Vasut wrote: On 08/15/2018 01:25 PM, Tom Rini wrote: > On Wed, Aug 15, 2018

Re: [U-Boot] [U-Boot,v2] Convert CONFIG_BOARD_LATE_INIT to Kconfig

2018-08-20 Thread Michal Simek
On 20.8.2018 10:02, Marek Vasut wrote: > On 08/20/2018 04:42 AM, Tom Rini wrote: >> On Sat, Aug 18, 2018 at 08:18:25PM +0300, Ramon Fried wrote: >> >>> This converts the remaining board defined >>> CONFIG_BOARD_LATE_INIT to Kconfig. >>> >>> Signed-off-by: Ramon Fried >>> --- >>> Changes in v2: >>>

Re: [U-Boot] [PATCH v2 u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-20 Thread Neil Armstrong
On 16/08/2018 10:15, Beniamino Galvani wrote: > On Mon, Aug 06, 2018 at 02:49:19PM +0200, Neil Armstrong wrote: >> The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the >> Video Processing Unit. >> This patch implements support for this power domain in preparation of the >> future

Re: [U-Boot] [PATCH u-boot 1/3] boards: amlogic: remove ethernet gpio reset code from boards

2018-08-20 Thread Neil Armstrong
On 14/08/2018 15:07, Beniamino Galvani wrote: > The reset is already handled by the designware driver using > information from device tree. > > Signed-off-by: Beniamino Galvani > --- > board/amlogic/nanopi-k2/nanopi-k2.c | 6 -- > board/amlogic/odroid-c2/odroid-c2.c | 6 -- > 2 files cha

Re: [U-Boot] [PATCH u-boot 2/3] boards: amlogic: use common function for environment initialization

2018-08-20 Thread Neil Armstrong
Hi Beniamino, On 14/08/2018 15:07, Beniamino Galvani wrote: > Clean up board files by moving the duplicate environment > initialization to arch code. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/include/asm/arch-meson/sm.h | 1 + > arch/arm/mach-meson/sm.c | 27 +

Re: [U-Boot] [PATCH v6 27/31] mtd: move mtdparts_init() declaration

2018-08-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 16 Aug 2018 18:05:26 +0200: > On Thu, 16 Aug 2018 17:30:25 +0200 > Miquel Raynal wrote: > > > mtdparts_init() is called from various source files. It is declared in > > include/jffs2/load_kernel.h while it has nothing to do with jffs2 > > anymore. > > >

[U-Boot] [PATCH v2 0/3] Convert fdtdec_setup_memory_banksize() to use livetree

2018-08-20 Thread Jens Wiklander
Hi, As requested while reviewing 452bc121027d ("fdt: fix fdtdec_setup_memory_banksize()") heres a patch set converting fdtdec_setup_memory_banksize() to use livetree. v2: * Added test code for the new function ofnode_by_prop_value() * The patch "fdt: fdtdec_setup_memory_banksize() use livetree":

[U-Boot] [PATCH v2 1/3] ofnode: add ofnode_by_prop_value()

2018-08-20 Thread Jens Wiklander
Adds ofnode_by_prop_value() to search for nodes with a given property and value, an ofnode version of fdt_node_offset_by_prop_value(). Signed-off-by: Jens Wiklander --- drivers/core/of_access.c | 27 +++ drivers/core/ofnode.c| 14 ++ include/dm/of_access.h

[U-Boot] [PATCH v2 3/3] test: ofnode: test ofnode_by_prop_value()

2018-08-20 Thread Jens Wiklander
Test ofnode_by_prop_value() Signed-off-by: Jens Wiklander --- test/dm/ofnode.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 8db1f9857f7d..907d1ddbdb6f 100644 --- a/test/dm/ofnode.c +++ b/test/dm/ofnode.c @@ -15,3 +15,3

[U-Boot] [PATCH v2 2/3] fdt: fdtdec_setup_memory_banksize() use livetree

2018-08-20 Thread Jens Wiklander
Converts fdtdec_setup_memory_banksize() to use ofnode functions instead. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- lib/fdtdec.c | 46 +- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

Re: [U-Boot] [PATCH] configs: sun7i: Fix to use emmc dts for OLinuXino_MICRO-eMMC

2018-08-20 Thread Maxime Ripard
On Mon, Aug 13, 2018 at 11:04:15PM +0530, Jagan Teki wrote: > A20 OLinuXino Micro eMMC board has emmc with mmc2 slot > so use proper dts, sun7i-a20-olinuxino-micro-emmc.dts > > Cc: Stefan Mavrodiev > Cc: Hans de Goede > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Rip

Re: [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:27:02PM +0530, Jagan Teki wrote: > Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. > > Tested-by: Fahad Sadah > Signed-off-by: Jagan Teki This has nothing to do in this serie. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kerne

Re: [U-Boot] [U-Boot, 1/4] env: fat: drop not needed #ifdef CMD_SAVEENV

2018-08-20 Thread Tom Rini
On Tue, Aug 14, 2018 at 11:21:16AM +0200, Christian Gmeiner wrote: > env_save_ptr(..) macro handles CMD_SAVEENV already. > > Signed-off-by: Christian Gmeiner > Reviewed-by: Simon Glass > --- > env/fat.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/env/fat.c b/env/fat.c > index 7f

Re: [U-Boot] arm: omap: configs: various: Remove references to OMAP34XX_UARTx

2018-08-20 Thread Tom Rini
On Tue, Aug 07, 2018 at 07:28:11AM -0500, Adam Ford wrote: > Two boards include a reference to ti_omap3_common.h which > points the UART driver to OMAP34XX_UARTx so the extra define > should be unnecessary. > > Signed-off-by: Adam Ford > --- > include/configs/omap3_evm.h | 1 - > include/co

Re: [U-Boot] [PATCH v3 02/58] reset: Add default request ops

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:19PM +0530, Jagan Teki wrote: > Missing request ops from respective uclass driver > generating "synchronous abort" in Allwinner platform, > may be in arm. So add default request ops and give a > chance to uclass driver to think whether they really > need request or not

Re: [U-Boot] [PATCH v3 14/58] musb-new: sunxi: Use CLK and RESET support

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:31PM +0530, Jagan Teki wrote: > Now clock and reset drivers are available for respective > SoC's so use clk and reset ops on musb driver. > > Signed-off-by: Jagan Teki > --- > drivers/usb/musb-new/sunxi.c | 82 +++- > 1 file changed,

Re: [U-Boot] [PATCH v3 18/58] clk: sunxi: Implement AHB bus MMC clocks

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:35PM +0530, Jagan Teki wrote: > Implement AHB bus MMC clocks for all Allwinner SoC > clock drivers via clock map descriptor table. > > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki That should be merged in the clock driver patches. Maxime -- Maxime Ripard, Bootl

Re: [U-Boot] [PATCH v3 20/58] clk: sunxi: Implement AHB bus MMC resets

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:37PM +0530, Jagan Teki wrote: > Implement AHB bus MMC resets for all Allwinner SoC > clock drivers via reset map descriptor table. > > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki That should be merged in the reset driver patches. Maxime -- Maxime Ripard, Bootl

Re: [U-Boot] [U-Boot,v2] Convert CONFIG_BOARD_LATE_INIT to Kconfig

2018-08-20 Thread Marek Vasut
On 08/20/2018 10:11 AM, Michal Simek wrote: > On 20.8.2018 10:02, Marek Vasut wrote: >> On 08/20/2018 04:42 AM, Tom Rini wrote: >>> On Sat, Aug 18, 2018 at 08:18:25PM +0300, Ramon Fried wrote: >>> This converts the remaining board defined CONFIG_BOARD_LATE_INIT to Kconfig. Signe

Re: [U-Boot] [PATCH v3 19/58] clk: sunxi: Implement direct MMC clocks

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:36PM +0530, Jagan Teki wrote: > Implement direct MMC clocks for all Allwinner SoC > clock drivers via clock map descriptor table. > > This includes adding ccu_clk_set_rate function pointer, > which indeed support CLK set_rate API, so update clock > handling in sunxi_m

Re: [U-Boot] [PATCH v3 21/58] reset: Add get reset by name optionally

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:38PM +0530, Jagan Teki wrote: > Reset is an optional for some controllers with some families > of CPU's with same SoC where the common IP driver can handle > to drive the entire SoC families. optional reset get by name > is useful for those drivers to make common way o

Re: [U-Boot] [PATCH v3 24/58] arm64: allwinner: dts: h6: fix Pine H64 MMC bus width

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:41PM +0530, Jagan Teki wrote: > Currently the enabled MMC controllers on Pine H64 do not have bus-width > set, which make them fall back to 1-bit mode and become quite slow. > > Fix this by add the corresponding bus-width properties. > > Same commit is there in maili

Re: [U-Boot] [PATCH v3 26/58] dm: mmc: sunxi: Add CLK and RESET support

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:43PM +0530, Jagan Teki wrote: > - debug("mmc %d, cmd %d(0x%08x), arg 0x%08x\n", priv->mmc_no, > + debug("mmc cmd %d(0x%08x), arg 0x%08x\n", > cmd->cmdidx, cmdval | cmd->cmdidx, cmd->cmdarg); Why is priv->mmc_no removed? Maxime -- Maxime Ripard,

Re: [U-Boot] [PATCH v3 24/58] arm64: allwinner: dts: h6: fix Pine H64 MMC bus width

2018-08-20 Thread Jagan Teki
On Mon, Aug 20, 2018 at 5:05 PM, Maxime Ripard wrote: > On Sun, Aug 19, 2018 at 07:26:41PM +0530, Jagan Teki wrote: >> Currently the enabled MMC controllers on Pine H64 do not have bus-width >> set, which make them fall back to 1-bit mode and become quite slow. >> >> Fix this by add the correspond

Re: [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver

2018-08-20 Thread Jagan Teki
On Mon, Aug 20, 2018 at 4:48 PM, Maxime Ripard wrote: > On Sun, Aug 19, 2018 at 07:27:02PM +0530, Jagan Teki wrote: >> Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. >> >> Tested-by: Fahad Sadah >> Signed-off-by: Jagan Teki > > This has nothing to do in this serie. Driver require CLK, RE

Re: [U-Boot] [PATCH] configs: sun7i: Fix to use emmc dts for OLinuXino_MICRO-eMMC

2018-08-20 Thread Jagan Teki
On Mon, Aug 20, 2018 at 4:40 PM, Maxime Ripard wrote: > On Mon, Aug 13, 2018 at 11:04:15PM +0530, Jagan Teki wrote: >> A20 OLinuXino Micro eMMC board has emmc with mmc2 slot >> so use proper dts, sun7i-a20-olinuxino-micro-emmc.dts >> >> Cc: Stefan Mavrodiev >> Cc: Hans de Goede >> Signed-off-by:

Re: [U-Boot] [PATCH v3 27/58] fastboot: sunxi: Update fastboot mmc default device

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:44PM +0530, Jagan Teki wrote: > Usually eMMC is default mmc device for fastboot. > > By enabling DM_MMC, the mmc devices are probed as per > DT status not with respect to MMC_SUNXI_SLOT_EXTRA in > U-Boot proper. > > Allwinner SoC has maximum of 4 mmc controllers star

Re: [U-Boot] [PATCH v3 29/58] sunxi: Get fat device wrt boot device, 'auto' partition

2018-08-20 Thread Maxime Ripard
On Sun, Aug 19, 2018 at 07:26:46PM +0530, Jagan Teki wrote: > Setting fat device, partition using CONFIG_ENV_FAT_DEVICE_AND_PART > via Kconfig option is difficult to maintain since Allwinner > support more than one mmc controllers with SD and eMMC. > > So, add dynamic function to get the device ba

Re: [U-Boot] sunxi: USB gadget does not work on H2+ after 92a30692b2b18f45aae6fdaae38d67ed03dd2d11

2018-08-20 Thread Nuno Gonçalves
On Sat, Aug 18, 2018 at 8:08 PM Jagan Teki wrote: > > On Sat, Aug 18, 2018 at 11:35 PM, Nuno Gonçalves wrote: > > With the basic defconfig + CMD_USB_MASS_STORAGE, I don't get the driver to > > load: > > > > Controller uninitialized > > g_dnl_register: failed!, error: -6 > > g_dnl_register failed

Re: [U-Boot] [PATCH 4/8] pinctrl: renesas: Fix "left shift in type int" undefined behavior

2018-08-20 Thread Marek Vasut
On 08/20/2018 02:00 AM, Eugeniu Rosca wrote: > Booting R-Car H3-Salvator-X (CONFIG_UBSAN=y) consistently results in: > > = > UBSAN: Undefined behaviour in drivers/pinctrl/renesas/pfc.c:402:40 > left shift of 1 by 31 places cannot

Re: [U-Boot] [PATCH 6/8] net: ravb: Fix "left shift in type int" undefined behavior

2018-08-20 Thread Marek Vasut
On 08/20/2018 02:00 AM, Eugeniu Rosca wrote: > Running "tftp" on R-Car H3 Salvator-X with CONFIG_UBSAN=y results in: > [...] > > = > UBSAN: Undefined behaviour in drivers/net/ravb.c:205:20 > left shift of 12 by 28 places cannot be

[U-Boot] [PATCH v1 3/3] ARMv8: SError exception handling in PSCI exception vectors

2018-08-20 Thread chee . hong . ang
From: Chee Hong Ang Allow platform vendors to handle SError interrupt exceptions from ARMv8 PSCI exception vectors by overriding this weak function 'plat_error_handler'. Signed-off-by: Chee Hong Ang --- arch/arm/cpu/armv8/psci.S | 26 ++ 1 file changed, 26 insertions(+)

[U-Boot] [PATCH v1 0/3] Enable all asynchronous abort exceptions taken to EL3

2018-08-20 Thread chee . hong . ang
From: "Ang, Chee Hong" This patchset allow PSCI exception vectors to handle all external abort and SError exception from all exception levels. This will allow EL3 to handle asynchronous abort exceptions such as ECC DBE (Double Bit Error) taken from OS running at lower exception level. Chee Hong

Re: [U-Boot] Chain loading U-Boot on ARM v7, data abort

2018-08-20 Thread Neil Stainton
On Fri, Aug 17, 2018 at 10:57 AM, Neil Stainton wrote: > New Stack Pointer is: 9ef92ea0 > Relocation Offset is: 18795000 > Relocating to 9ff95000, new gd at 9ef92ec0, sp at 9ef92ea0 > data abort > pc : [<87800c5c>] lr : [<9ff9570c>] > sp : 9ef92ea0 ip : 0030 fp : 000

[U-Boot] [PATCH] u-boot: fixup the iommu-map property of fsl-mc node

2018-08-20 Thread Nipun Gupta
The iommu-map property in the fsl-mc node is updated by valid stream-ids by u-boot. This patch is to fixup this property for LS208x and LS1088. Signed-off-by: Nipun Gupta --- This patch fixes iommu-map property added for fsl-mc in kernel patch series: https://patchwork.codeaurora.org/patch/56943

[U-Boot] [PATCH v1 2/3] ARMv8: Add EL3 exception handling for ARMv8's Kconfig

2018-08-20 Thread chee . hong . ang
From: Chee Hong Ang Kconfig option to allow all External Abort and SError exception taken to EL3. Signed-off-by: Chee Hong Ang --- arch/arm/cpu/armv8/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig index c8bebab..ff4279

[U-Boot] [PATCH v1 1/3] ARMv8: Enable all asynchronous abort exceptions taken to EL3

2018-08-20 Thread chee . hong . ang
From: Chee Hong Ang Allow EL3 to handle all the External Abort and SError interrupt exception occur in all exception levels. Signed-off-by: Chee Hong Ang --- arch/arm/include/asm/macro.h | 4 arch/arm/include/asm/system.h | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/inc

Re: [U-Boot] env: Merge Rockchip, Sunxi, Zynq and ZynqMP

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 08:42:07AM +0200, Michal Simek wrote: > On 19.8.2018 21:14, Tom Rini wrote: > > On Thu, Jul 19, 2018 at 08:45:45AM +0200, Michal Simek wrote: > > > >> There is no reason to have the same Kconfig options for different SoCs > >> separately. The patch is merging them together

Re: [U-Boot] [U-Boot,v2] Convert CONFIG_BOARD_LATE_INIT to Kconfig

2018-08-20 Thread Tom Rini
On Mon, Aug 20, 2018 at 10:02:29AM +0200, Marek Vasut wrote: > On 08/20/2018 04:42 AM, Tom Rini wrote: > > On Sat, Aug 18, 2018 at 08:18:25PM +0300, Ramon Fried wrote: > > > >> This converts the remaining board defined > >> CONFIG_BOARD_LATE_INIT to Kconfig. > >> > >> Signed-off-by: Ramon Fried >

[U-Boot] [PATCH] board: sunxi: Remove unused local variables

2018-08-20 Thread Jagan Teki
variables buf from board_mmc_init, and ret from misc_init_r were unused on the functions, so remove it. Signed-off-by: Jagan Teki --- board/sunxi/board.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 857d5ff010..d1d7f9f400 100644 --- a/board

[U-Boot] [PATCH] dts: mvebu: mcbin: drop redundant SD slot node

2018-08-20 Thread Baruch Siach
Commit 61dccf73d302 (dts: mvebu: a80x0: Enable SD/eMMC interfaces) added a redundant DT node for SD card slot. Drop it. Cc: Konstantin Porotchkin Signed-off-by: Baruch Siach --- arch/arm/dts/armada-8040-mcbin.dts | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/dts/armada-804

Re: [U-Boot] [PATCH] efi_loader: Rename sections to allow for implicit data

2018-08-20 Thread Alexander Graf
On 08/20/2018 03:43 AM, Bin Meng wrote: On Fri, Aug 17, 2018 at 8:49 PM, Simon Glass wrote: Hi, On 9 August 2018 at 23:45, Bin Meng wrote: Hi Alex, On Wed, Aug 8, 2018 at 1:16 AM, Alexander Graf wrote: Am 07.08.2018 um 18:12 schrieb Simon Glass : Hi Alex, On 11 June 2018 at 23:48, Al

Re: [U-Boot] [PATCH] efi_loader: Rename sections to allow for implicit data

2018-08-20 Thread Alexander Graf
On 08/17/2018 02:49 PM, Simon Glass wrote: Hi, On 9 August 2018 at 23:45, Bin Meng wrote: Hi Alex, On Wed, Aug 8, 2018 at 1:16 AM, Alexander Graf wrote: Am 07.08.2018 um 18:12 schrieb Simon Glass : Hi Alex, On 11 June 2018 at 23:48, Alexander Graf wrote: Some times gcc may generate da

Re: [U-Boot] [PATCH] board: sunxi: Remove unused local variables

2018-08-20 Thread Maxime Ripard
On Mon, Aug 20, 2018 at 05:45:47PM +0530, Jagan Teki wrote: > variables buf from board_mmc_init, and ret from misc_init_r > were unused on the functions, so remove it. > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Li

Re: [U-Boot] [PATCH] sunxi: disable Pine A64 model detection code on non-A64 SoCs

2018-08-20 Thread Maxime Ripard
Hi! On Sun, Aug 05, 2018 at 02:55:35AM +0800, Icenowy Zheng wrote: > The Pine A64 Plus/non-Plus model detection code is now built on all > 64-bit ARM SoCs, even if the code cannot be triggered when H5/H6 is in > use. > > Disable them when the SoC is not A64 by use #ifdef to wrap them. > > On GCC

[U-Boot] [PATCH 2/3] x86: Enable -fdata-sections always

2018-08-20 Thread Alexander Graf
We left -fdata-sections disabled for x86_64 before because we encountered random bugs that were at that time inexplicable. Turns out this really was just side effects of missing .bss* statements in the linker scripts. With those fixed, we can enable data sections for all targets. Signed-off-by: A

[U-Boot] [PATCH 0/3] efi_loader: Fix -fdata-section fallout with bss

2018-08-20 Thread Alexander Graf
While trying to fix efi_loader problems that could only be resolved by enabling individual function and data sections (commit 7e21fbca26d18 "efi_loader: Rename sections to allow for implicit data") some cases where .bss was included in the linker scripts slipped through. This lead to random breaka

[U-Boot] [PATCH 1/3] x86: Include bss subsections in linker script

2018-08-20 Thread Alexander Graf
When we build with -fdata-sections we may end up with bss subsections. Our linker script explicitly lists only a single consecutive bss section though. Adapt the statement to also include subsections. This fixes booting efi-x86_app_defconfig. Signed-off-by: Alexander Graf --- arch/x86/cpu/u-bo

[U-Boot] [PATCH 3/3] riscv: Include bss subsections in linker script

2018-08-20 Thread Alexander Graf
When we build with -fdata-sections we may end up with bss subsections. Our linker script explicitly lists only a single consecutive bss section though. Adapt the statement to also include subsections. Signed-off-by: Alexander Graf --- arch/riscv/cpu/ax25/u-boot.lds | 2 +- 1 file changed, 1 ins

Re: [U-Boot] [PATCH] board: sunxi: Remove unused local variables

2018-08-20 Thread Jagan Teki
On Mon, Aug 20, 2018 at 5:54 PM, Maxime Ripard wrote: > On Mon, Aug 20, 2018 at 05:45:47PM +0530, Jagan Teki wrote: >> variables buf from board_mmc_init, and ret from misc_init_r >> were unused on the functions, so remove it. >> >> Signed-off-by: Jagan Teki > > Acked-by: Maxime Ripard Applied t

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

2018-08-20 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit f05ebbf47a9dc863ff4bb084649ecb34d728b5f2: bcm968380gerg: Add MAINTAINERS file (2018-08-09 11:48:39 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sunxi.git master for you to fetch cha

Re: [U-Boot] arm: omap: configs: various: Remove references to OMAP34XX_UARTx

2018-08-20 Thread Adam Ford
On Mon, Aug 20, 2018 at 6:21 AM Tom Rini wrote: > > On Tue, Aug 07, 2018 at 07:28:11AM -0500, Adam Ford wrote: > > > Two boards include a reference to ti_omap3_common.h which > > points the UART driver to OMAP34XX_UARTx so the extra define > > should be unnecessary. > > > > Signed-off-by: Adam For

Re: [U-Boot] [PATCH 1/8] UBSAN: run-time undefined behavior sanity checker

2018-08-20 Thread Eugeniu Rosca
Hi Tom, On Sun, Aug 19, 2018 at 09:51:32PM -0400, Tom Rini wrote: > On Mon, Aug 20, 2018 at 02:00:25AM +0200, Eugeniu Rosca wrote: [..] > > To enable UBSAN, two prerequisites must be met from Kconfig perspective: > > - ARCH has to select CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL > > - defconfig has to

Re: [U-Boot] [PATCH 3/8] armv8: mmu: Fix "left shift in type int" undefined behavior

2018-08-20 Thread Eugeniu Rosca
Hi Tom, On Sun, Aug 19, 2018 at 09:51:42PM -0400, Tom Rini wrote: > On Mon, Aug 20, 2018 at 02:00:27AM +0200, Eugeniu Rosca wrote: [..] > > diff --git a/arch/arm/include/asm/armv8/mmu.h > > b/arch/arm/include/asm/armv8/mmu.h > > index 62d00d15c26d..b2ce13db0d2b 100644 > > --- a/arch/arm/include/a

[U-Boot] [PATCH 0/2] socfpga: cleanup files generated for spl

2018-08-20 Thread Dalon Westergreen
These patches add a hex output of the spl image for Stratix10 devices, and remove the sfp mkimage output for Stratix10 devices. In Stratix10, the spl image is added to the initial FPGA configuration bitstream. A hex file is needed to do this. Dalon Westergreen (2): spl: socfpga: only gen5 devi

[U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-20 Thread Dalon Westergreen
Stratix10 requires a hex image of the spl for boot. The hex image is added to the FPGA configuration image and loaded to the processor memory by the configuration engine. Signed-off-by: Dalon Westergreen --- scripts/Makefile.spl | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sc

[U-Boot] [PATCH 1/2] spl: socfpga: only gen5 devices and arria10 require sfp image

2018-08-20 Thread Dalon Westergreen
Only the Cyclone5/Arria5 and Arria10 devices require the sfp formated image for booting. This path ensures that the file is only generated for those devices. Signed-off-by: Dalon Westergreen --- scripts/Makefile.spl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Ma

Re: [U-Boot] [PATCH v3 01/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-08-20 Thread Simon Glass
On 17 August 2018 at 08:38, Yannick Fertré wrote: > > Manage a bridge insert between the display controller & a panel. > > Signed-off-by: Yannick Fertré > --- > drivers/video/stm32/stm32_ltdc.c | 143 > ++- > 1 file changed, 82 insertions(+), 61 deletions(-)

Re: [U-Boot] [PATCH v3 02/10] include: Add new DCS commands in the enum list

2018-08-20 Thread Simon Glass
On 17 August 2018 at 08:38, Yannick Fertré wrote: > Adding new DCS commands which are specified in the > DCS 1.3 spec related to CABC. > > Signed-off-by: Yannick Fertré > --- > include/mipi_display.h | 8 > 1 file changed, 8 insertions(+) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v3 24/58] arm64: allwinner: dts: h6: fix Pine H64 MMC bus width

2018-08-20 Thread Maxime Ripard
On Mon, Aug 20, 2018 at 05:09:54PM +0530, Jagan Teki wrote: > On Mon, Aug 20, 2018 at 5:05 PM, Maxime Ripard > wrote: > > On Sun, Aug 19, 2018 at 07:26:41PM +0530, Jagan Teki wrote: > >> Currently the enabled MMC controllers on Pine H64 do not have bus-width > >> set, which make them fall back to

Re: [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver

2018-08-20 Thread Maxime Ripard
1;5202;0c On Mon, Aug 20, 2018 at 05:12:20PM +0530, Jagan Teki wrote: > On Mon, Aug 20, 2018 at 4:48 PM, Maxime Ripard > wrote: > > On Sun, Aug 19, 2018 at 07:27:02PM +0530, Jagan Teki wrote: > >> Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. > >> > >> Tested-by: Fahad Sadah > >> Signed-o

[U-Boot] [PATCH] ARM: display5: Remove "factory procedure" from display5 board config

2018-08-20 Thread Lukasz Majewski
This code now is regarded as dead one and hence shall be removed. Signed-off-by: Lukasz Majewski --- configs/display5_factory_defconfig | 2 +- include/configs/display5.h | 22 -- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/configs/display5_facto

[U-Boot] [PATCH v3 00/34] Add support for 1wire protocol and 1wire eeproms

2018-08-20 Thread Eugen Hristev
This is a patch series originally written by Maxime Ripard, https://lists.denx.de/pipermail/u-boot/2016-November/272138.html titled: [U-Boot] [PATCH RESEND 0/9] sunxi: chip: Enable the DIP auto-detection and reworked to include support for the EEPROMs on the PDAs connected to the sama xplained b

[U-Boot] [PATCH v3 02/34] w1: Add 1-Wire gpio driver

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard Add a bus driver for bitbanging a 1-Wire bus over a GPIO. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: fixed some issues] Signed-off-by: Eugen Hristev --- drivers/w1/Kconfig | 7 ++ drivers/w1/Makefile | 2 + drivers/w1/w1-gpio.c | 176

[U-Boot] [PATCH v3 01/34] w1: Add 1-Wire uclass

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard We might want to use 1-Wire devices connected on boards such as EEPROMs in U-Boot. Provide a framework to be able to do that. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked] Signed-off-by: Eugen Hristev --- drivers/Kconfig| 2 + drivers/Make

[U-Boot] [PATCH v3 06/34] W1-EEPROM: add support for Maxim DS24 eeprom families

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard Add a driver that supports Maxim 1 wire EEPROMs families DS24B33 and DS2431. Can be extended for other families as well. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked driver] Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6 + dri

[U-Boot] [PATCH v3 08/34] W1-EEPROM: add sandbox driver

2018-08-20 Thread Eugen Hristev
Add a sandbox driver for a one wire EEPROM memory Signed-off-by: Eugen Hristev --- drivers/w1-eeprom/Kconfig | 6 drivers/w1-eeprom/Makefile | 1 + drivers/w1-eeprom/eep_sandbox.c | 61 + include/w1.h| 1 + 4 files ch

[U-Boot] [PATCH v3 09/34] dt-bindings: w1-eeprom: eep_sandbox: create bindings

2018-08-20 Thread Eugen Hristev
Bindings for sandbox onewire eeprom driver Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt diff --git a/doc/device-tree-bindin

[U-Boot] [PATCH v3 11/34] pinctrl: sandbox: add gpio onewire w1 group

2018-08-20 Thread Eugen Hristev
Add onewire "w1" groups and pin function for onewire GPIOs in sandbox. Signed-off-by: Eugen Hristev --- drivers/pinctrl/pinctrl-sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 468fa2a..755ac08 100644 --

[U-Boot] [PATCH v3 04/34] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-08-20 Thread Eugen Hristev
From: Maxime Ripard We might want to access data stored onto one wire EEPROMs. Create a framework to provide a consistent API. Signed-off-by: Maxime Ripard [eugen.hris...@microchip.com: reworked patch] Signed-off-by: Eugen Hristev --- drivers/Kconfig | 2 + drivers/Make

[U-Boot] [PATCH v3 16/34] configs: sama5d27_som1_ek: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs/sama5d27_som1_ek_mmc_defconf

[U-Boot] [PATCH v3 07/34] dt-bindings: w1-eeprom: ds24xxx: create bindings

2018-08-20 Thread Eugen Hristev
Bindings for Maxim's ds24 onewire EEPROM families driver Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1-eeprom/ds24xxx.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 04 doc/device-tree-bindings/w1-eeprom create mode 100644 doc/device-tree-bi

[U-Boot] [PATCH v3 03/34] dt-bindings: W1: w1-gpio: added bindings for w1-gpio

2018-08-20 Thread Eugen Hristev
Added bindings specification for bitbanged gpio driver for Dallas one wire protocol Signed-off-by: Eugen Hristev --- doc/device-tree-bindings/w1/w1-gpio.txt | 40 + 1 file changed, 40 insertions(+) create mode 04 doc/device-tree-bindings/w1 create mode 10064

[U-Boot] [PATCH v3 10/34] w1: add command for onewire protocol

2018-08-20 Thread Eugen Hristev
Add basic command for bus information and read for onewire bus using Dallas 1-Wire protocol. Signed-off-by: Eugen Hristev --- cmd/Kconfig | 7 cmd/Makefile | 1 + cmd/w1.c | 126 +++ 3 files changed, 134 insertions(+) create

[U-Boot] [PATCH v3 26/34] configs: sama5d3_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d3_xplained_mmc_defconfig | 1 + configs/sama5d3_xplained_nandflash_defconfig | 1 + 2 file

[U-Boot] [PATCH v3 19/34] board: atmel: add support for pda detection

2018-08-20 Thread Eugen Hristev
This adds the support for PDA detection as common code for Atmel boards. Using the one wire interface over GPIO , an EEPROM memory is read and compared to preprogrammed values for PDA screens TM4300, TM7000 and TM7000B. Once the PDA is detected, an environment variable is set accordingly. Signed-o

[U-Boot] [PATCH v3 23/34] board: sama5d2_ptc_ek: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 1 + board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 10 ++ 2 files changed, 11 insertions(+) diff --git

[U-Boot] [PATCH v3 27/34] configs: sama5d2_ptc_ek: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 + 2 files ch

[U-Boot] [PATCH v3 17/34] configs: sama5d2_ptc_ek: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs/sama5d2_ptc_ek_mmc_defconfig

[U-Boot] [PATCH v3 22/34] board: sama5d27_som1_ek: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c b/boar

[U-Boot] [PATCH v3 05/34] w1: identify devices with w1-eeprom uclass

2018-08-20 Thread Eugen Hristev
When a new device is discovered, this may be a w1 eeprom device. Attempt to find the proper node and driver from the w1-eeprom subsystem. Signed-off-by: Eugen Hristev --- drivers/w1/w1-uclass.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.

[U-Boot] [PATCH v3 29/34] configs: sama5d4_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d4_xplained_mmc_defconfig | 1 + configs/sama5d4_xplained_nandflash_defconfig | 1 + config

[U-Boot] [PATCH v3 13/34] configs: sandbox: add onewire w1 and sandbox eeprom

2018-08-20 Thread Eugen Hristev
To be able to test Dallas onewire protocol and one wire eeproms driver and subsystem, add in sandbox defconfig the drivers' config. Signed-off-by: Eugen Hristev --- configs/sandbox_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defco

[U-Boot] [PATCH v3 14/34] configs: sama5d2_xplained: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D2 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_mmc_defconf

[U-Boot] [PATCH v3 28/34] configs: sama5d27_som1_ek: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d27_som1_ek_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama5d27_so

[U-Boot] [PATCH v3 20/34] board: sama5d2_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/boar

[U-Boot] [PATCH v3 32/34] ARM: dts: at91: sama5d27_som1_ek: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d27_som1_ek.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_som1_ek.dts b/arch/arm/dts/at91-sama5d27_som1_ek.dts index 5e62d4a..4cd6db

[U-Boot] [PATCH v3 34/34] ARM: dts: at91: sama5d4_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d4_xplained.dts | 16 arch/arm/dts/sama5d4.dtsi | 5 + 2 files changed, 21 insertions(+) diff --git a/arch/arm/dts/at91-sama5d4_xplained.dts b/arch/arm/

[U-Boot] [PATCH v3 31/34] ARM: dts: at91: sama5d3_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d3_xplained.dts | 17 + arch/arm/dts/sama5d3.dtsi | 5 + 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d3_xplained.dts b/arch/arm

[U-Boot] [PATCH v3 33/34] ARM: dts: at91: sama5d2_ptc: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_ptc_ek.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_ptc_ek.dts b/arch/arm/dts/at91-sama5d2_ptc_ek.dts index ab5ab21..068a117 1006

[U-Boot] [PATCH v3 21/34] board: sama5d3_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/Kconfig | 1 + board/atmel/sama5d3_xplained/sama5d3_xplained.c | 10 ++ 2 files changed, 11 insertions(+) di

[U-Boot] [PATCH v3 30/34] ARM: dts: at91: sama5d2_xplained: add onewire connector for LCD eeprom

2018-08-20 Thread Eugen Hristev
Add onewire node in device tree for TM series LCDs Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_xplained.dts | 17 + arch/arm/dts/sama5d2.dtsi | 5 + 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_xplained.dts b/arch/arm

[U-Boot] [PATCH v3 25/34] configs: sama5d2_xplained: add fdt overlay support

2018-08-20 Thread Eugen Hristev
Add commands for fdt overlay merging. This is required for the boot scripts that detect PDAs and apply specific overlays to the DTB passed on to kernel. Signed-off-by: Eugen Hristev --- configs/sama5d2_xplained_mmc_defconfig | 1 + configs/sama5d2_xplained_spiflash_defconfig | 1 + 2 files

[U-Boot] [PATCH v3 12/34] sandbox: DTS: w1: add node for one wire interface on GPIO

2018-08-20 Thread Eugen Hristev
Add a node for the one wire uclass and one wire gpio driver in sandbox. Signed-off-by: Eugen Hristev --- arch/sandbox/dts/sandbox.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index 0ea2452..2be836d 10064

[U-Boot] [PATCH v3 24/34] board: sama5d4_xplained: add pda detect call at init time

2018-08-20 Thread Eugen Hristev
Call the PDA detection mechanism at boot time so we can have the pda environment variable ready for use. Signed-off-by: Eugen Hristev --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/boar

[U-Boot] [PATCH v3 15/34] configs: sama5d3_xplained: add onewire and eeprom drivers

2018-08-20 Thread Eugen Hristev
SAMA5D3 SoC can have extra clip boards (PDAs) connected, which have an EEPROM memory for identification. A special GPIO can be used to read this memory over 1wire protocol. Enabling one wire and eeprom drivers for this memory. Signed-off-by: Eugen Hristev --- configs/sama5d3_xplained_mmc_defconf

  1   2   >