Re: [U-Boot] [PATCH v2] net: e1000: support 'write_hwaddr' in DM

2018-11-22 Thread Hannes Schmelzer
On 30.10.2018 13:06, Hannes Schmelzer wrote: On 10/30/2018 09:13 AM, Bin Meng wrote: On Thu, Oct 25, 2018 at 10:25 PM Hannes Schmelzer wrote: This commit ports the existing (non-DM) function for writing the MAC- address into the shadow ram (and flash) for DM. Signed-off-by: Hannes

Re: [U-Boot] [PATCH v14 4/4] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-11-22 Thread Heinrich Schuchardt
On 11/22/18 9:50 PM, Simon Glass wrote: > Hi Heinrich, > > On Mon, 19 Nov 2018 at 12:41, Heinrich Schuchardt wrote: >> >> On 11/15/18 12:11 AM, Simon Glass wrote: >>> This function can be used from do_bootefi_exec() so that we use mostly the >>> same code for a normal EFI application and an EFI

[U-Boot] [PATCH v2 3/4] arm: baltos: move CONFIG_SYS_NAND_U_BOOT_OFFS to defconfig

2018-11-22 Thread yegorslists
From: Yegor Yefremov Also get rid of CONFIG_SYS_NAND_SPL_KERNEL_OFFS as SPL_OS_BOOT feature won't be used. Signed-off-by: Yegor Yefremov --- configs/am335x_baltos_defconfig | 2 ++ include/configs/baltos.h| 9 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH v2 1/4] arm: baltos: move the board to CONFIG_BLK

2018-11-22 Thread yegorslists
From: Yegor Yefremov Use DM for both MMC and USB subsystems and use dedicated DTS for U-Boot configuration. Disable SPL support for GPIO and remove EVMSK leftover for DDR power control via GPIO. Signed-off-by: Yegor Yefremov --- Changes v1 -> v2: - remove GPIO7 pinmux too

[U-Boot] [PATCH v2 4/4] arm: baltos: migrate Ethernet PHYs configuration to Kconfig

2018-11-22 Thread yegorslists
From: Yegor Yefremov Remove CONFIG_PHY_ATHEROS and CONFIG_PHY_SMSC from defconfig and select them in Kconfig. Signed-off-by: Yegor Yefremov --- configs/am335x_baltos_defconfig | 2 ++ include/configs/baltos.h| 4 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 03/11] mtd: Delete partitions attached to the device when a device is deleted

2018-11-22 Thread Boris Brezillon
On Mon, 19 Nov 2018 21:59:47 +0100 Boris Brezillon wrote: > If we don't do that, partitions might still be exposed while the > underlying device is gone. > > Fixes: 2a74930da57f ("mtd: mtdpart: implement proper partition handling") > Signed-off-by: Boris Brezillon > --- > Changes in v3: > -

Re: [U-Boot] [PATCH] configs: armada8k: use 2 DRAM banks

2018-11-22 Thread Stefan Roese
On 21.11.18 08:59, Baruch Siach wrote: Commit 2b4d964718c0 ("arm64: mvebu: a8k: autodetect RAM size") added an ATF query to get the detected RAM size on Armada 8K platforms. To be usable we must have 2 DRAM banks. Set Armada 8K configurations to 2 banks. Cc: Konstantin Porotchkin

Re: [U-Boot] [PATCH v3 11/11] mtd: sf: Make sf_mtd.c more robust

2018-11-22 Thread Boris Brezillon
On Thu, 22 Nov 2018 12:40:57 +0530 Jagan Teki wrote: > On Tue, Nov 20, 2018 at 2:33 AM Boris Brezillon > wrote: > > > > SPI flash based MTD devs can be registered/unregistered at any time > > through the sf probe command or the spi_flash_free() function. > > > > This commit does not try to fix

[U-Boot] [PATCH u-boot v2 02/19] configs: meson: remove unnecessary MESON_FDTFILE_SETTING

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet MESON_FDTFILE_SETTING is used to define the default name of the fdt file in u-boot environment. We can easily derive it from CONFIG_DEFAULT_DEVICE_TREE instead. This will help factorize the code a bit Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong ---

Re: [U-Boot] Uboot send pull request

2018-11-22 Thread Auer, Lukas
Hi Rick, On Thu, 2018-11-22 at 16:38 +0800, Rick Chen wrote: > Auer, Lukas 於 2018年11月21日 週三 > 下午9:09寫道: > > > > Hi Rick, > > > > On Wed, 2018-11-21 at 17:37 +0800, Rick Chen wrote: > > > Hi Lukas > > > > > > > > > > > > > Hi Rick, > > > > > > > > > > Thanks for pulling my changes! I have

[U-Boot] [PATCH u-boot v2 18/19] ARM: meson: factorize common code out amlogic's boards

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Now we have moved all the Amlogic board support to common generic board code, we can move the identical board_init() and ft_board_setup() functions to weak functions into the board-common mach-meson file. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong ---

[U-Boot] [PATCH u-boot v2 17/19] board: amlogic: add support for S400 board

2018-11-22 Thread Neil Armstrong
The S400 board is the Amlogic AXG SoC reference board including : - Amlogic A113DX ARM Cortex-A53 quad-core SoC @ 1.2GHz - 1GB DDR4 SDRAM - 10/100 Ethernet - 2 x USB 2.0 Host - eMMC - Infrared receiver - SDIO WiFi Module - MIPI DSI Connector - Audio HAT Connector - PCI-E M.2 Connectors

[U-Boot] [PATCH v4 08/28] riscv: fix use of incorrectly sized variables

2018-11-22 Thread Lukas Auer
The RISC-V arch incorrectly uses 32-bit instead of 64-bit variables in several places. Fix this. In addition, BITS_PER_LONG is set to 64 on RV64I systems. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: - Remove 0-padding in the format

[U-Boot] [PATCH v4 04/28] riscv: select CONFIG_PHYS_64BIT on RV64I systems

2018-11-22 Thread Lukas Auer
CONFIG_PHYS_64BIT should be enabled on RV64I systems. Select it. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig

[U-Boot] [PATCH v4 02/28] dts: riscv: update makefile to also clean the RISC-V dts directory

2018-11-22 Thread Lukas Auer
Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dts/Makefile b/dts/Makefile index 9a9a3d5c98..cd6e9a968e 100644 ---

[U-Boot] [PATCH v4 06/28] riscv: set -march and -mabi based on the Kconfig configuration

2018-11-22 Thread Lukas Auer
Use the new Kconfig entries to construct the ISA string for the -march compiler flag. The -mabi compiler flag is selected based on the base integer instruction set. With this change, the C (compressed instructions) ISA extension is now enabled for all boards with CONFIG_RISCV_ISA_C set. Buildman

Re: [U-Boot] [PATCH v1 15/16] configs: am335x_evm: Do not disable DM_USB in SPL

2018-11-22 Thread Lokesh Vutla
On 21/11/18 4:21 PM, Jean-Jacques Hiblot wrote: DM_USB is now supported in the SPL. Do not undef it Signed-off-by: Jean-Jacques Hiblot --- With this, I guess we can merge am335x_evm_usbspl_defconfig into am335x_evm_defconfig? or am I missing something? Thanks and regards, Lokesh

Re: [U-Boot] [PATCH v3 9/9] arm: sunxi: Reduce inrush current on Olimex OLinuXino-A20-Lime2-eMMC

2018-11-22 Thread Maxime Ripard
On Wed, Nov 21, 2018 at 08:05:33PM +0200, Priit Laes wrote: > From: Priit Laes > > The lime2 features a too large capacitor on the LDO3 output, which > causes the PMIC to shutdown when enabling power. To be able to still > boot up however, we must gradually enable power on LDO3 for this board. >

Re: [U-Boot] [PATCH v3 2/9] sunxi: pmic_bus: Decrease boot time by not writing duplicate data

2018-11-22 Thread Maxime Ripard
On Wed, Nov 21, 2018 at 08:05:26PM +0200, Priit Laes wrote: > From: Olliver Schinagl > > When we clear a pmic_bus bit, we do a read-modify-write operation. > We waste some time however, by writing back the exact samea value > that was already set in the chip. Let us thus only do the write > in

Re: [U-Boot] [PATCH v3 8/9] arm: sunxi: Reduce inrush current on Olimex OLinuXino-A20-Lime2

2018-11-22 Thread Maxime Ripard
On Wed, Nov 21, 2018 at 08:05:32PM +0200, Priit Laes wrote: > From: Olliver Schinagl > > The lime2 features a too large capacitor on the LDO3 output, which > causes the PMIC to shutdown when enabling power. To be able to still > boot up however, we must gradually enable power on LDO3 for this

Re: [U-Boot] [PATCH v3 7/9] power: axp209: Limit inrush current for broken boards

2018-11-22 Thread Maxime Ripard
On Wed, Nov 21, 2018 at 08:05:31PM +0200, Priit Laes wrote: > From: Olliver Schinagl > > Some boards feature a capacitance on LDO3's output that is too large, > causing inrush currents which as a result, shut down the AXP209. This > has been reported before, without knowing the actual cause. >

Re: [U-Boot] [PATCH v1] LS2080ardb: MMC: disable esdhc for dspi

2018-11-22 Thread Y.B. LU
Hi Yinbo, > -Original Message- > From: Yinbo Zhu > Sent: Thursday, November 22, 2018 4:17 PM > To: york...@freescale.com; Y.B. LU ; > u-boot@lists.denx.de > Cc: Yinbo Zhu ; Xiaobo Xie ; > Chuanhua Han > Subject: [PATCH v1] LS2080ardb: MMC: disable esdhc for dspi > > esdhc and dspi have

[U-Boot] [PATCH u-boot v2 01/19] ARM: meson: clean-up platform selection

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Even if multiple board are selected through Kconfig, u-boot will only compile one. This makes sense since compiling these targets will export global symbols, such as board_init() The change rework amlogic Kconfig so only one board may be selected at a time Signed-off-by:

[U-Boot] [PATCH u-boot v2 00/19] Amlogic Meson cleanup for AXG SoC support

2018-11-22 Thread Neil Armstrong
This patchset will refactor the Amlogic Meson SoC support in order to easily add support for the Amlogic AXg SoC family, and later the G12x SoCs. In order : - Cleanup the mach-meson configs - Move board support to reference design common boards - Move board Kconfig into mach-meson - Add AXG

[U-Boot] [PATCH u-boot v2 10/19] pinctrl: meson: add axg support

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet This adds support for the Amlogic AXG SoC pinctrl and GPIO controller using a specific set of pinctrl functions which differs from the GX SoCs. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 8 +

[U-Boot] [PATCH u-boot v2 06/19] ARM: rework amlogic configuration

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Rework the board SYS_BOARD, SYS_VENDOR and SYS_CONFIG_NAME setup by moving the board Kconfig into the mach-meson Kconfig to make it easier to add new boards for a SoC architecture and add a custom config header or custom board handler for a platform. This drops the board

[U-Boot] [PATCH u-boot v2 13/19] ARM: meson: rework soc arch file to prepare for new SoC

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet We are about to add support for the Amlogic AXG SoC. While very close to the Gx SoC family, we will need to handle a few thing which are different in this SoC. Rework the meson arch directory to prepare for this. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong

[U-Boot] [PATCH v4 01/28] tools: .gitignore: add prelink-riscv

2018-11-22 Thread Lukas Auer
Ignore tools/prelink-riscv. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None tools/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/.gitignore b/tools/.gitignore index

[U-Boot] [PATCH v4 07/28] riscv: enable -fdata-sections

2018-11-22 Thread Lukas Auer
Enable the -fdata-sections compiler option for RISC-V. Buildman reports the binary size decrease from this as 8365.3 bytes. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: - Rebase on u-boot/master Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 21/28] riscv: qemu: use device tree passed by prior boot stage

2018-11-22 Thread Lukas Auer
QEMU provides a device tree, which is passed to U-Boot using register a1. We are now able to directly select the device tree with the configuration CONFIG_OF_PRIOR_STAGE. Replace the hard-coded address in qemu-riscv with it. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen

[U-Boot] [PATCH v4 22/28] riscv: qemu: support booting Linux

2018-11-22 Thread Lukas Auer
Support booting Linux (as payload of BBL) from FIT images. For this, the default CONFIG_SYS_BOOTM_LEN is increased to 16 MB, and the environment variables fdt_high and initrd_high are set to mark the device tree and initrd as in-place. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng ---

[U-Boot] [PATCH v4 12/28] riscv: treat undefined exception codes as reserved

2018-11-22 Thread Lukas Auer
Undefined exception codes currently lead to an out-of-bounds array access. Prevent this by treating undefined exception codes as "reserved". Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 13/28] riscv: hang on unhandled exceptions

2018-11-22 Thread Lukas Auer
Hang on unhandled exceptions to prevent execution in a faulty state. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None arch/riscv/lib/interrupts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [U-Boot] [PATCH] dts: mvebu: mcbin: enable 1G network interface

2018-11-22 Thread Stefan Roese
On 21.11.18 12:12, Baruch Siach wrote: Describe the 1Gb network interface with on-board 88E1512 PHY. Signed-off-by: Baruch Siach --- arch/arm/dts/armada-8040-mcbin.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/armada-8040-mcbin.dts

[U-Boot] [PATCH u-boot v3 3/3] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This driver, ported from the Linux meson-spi-spifc driver, add support for this controller on the Amlogic Meson GX SoCs in U-Boot. Reviewed-by: Jagan Teki Signed-off-by: Neil Armstrong --- drivers/spi/Kconfig | 8

[U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This patchset add the driver ported from linux, but also import the regmap regmap_read_poll_timeout() to implify the register polling in the driver. Neil Armstrong (3): regmap: add regmap_read_poll_timeout() helper

[U-Boot] [PATCH u-boot v3 1/3] regmap: add regmap_read_poll_timeout() helper

2018-11-22 Thread Neil Armstrong
Add the regmap_read_poll_timeout() macro based on the Linux implementation to simplify register polling with configurable timeout and sleep. Acked-by: Jagan Teki Signed-off-by: Neil Armstrong --- include/regmap.h | 38 ++ 1 file changed, 38 insertions(+)

[U-Boot] [PATCH v4 03/28] riscv: rename CPU_RISCV_32/64 to match architecture names ARCH_RV32I/64I

2018-11-22 Thread Lukas Auer
RISC-V defines the base integer instruction sets as RV32I and RV64I. Rename CPU_RISCV_32 and CPU_RISCV_64 to ARCH_RV32I and ARCH_RV64I to match this convention. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2:

[U-Boot] [PATCH v4 18/28] riscv: remove unused labels in start.S

2018-11-22 Thread Lukas Auer
The labels nmi_vector, trap_vector and handle_reset in start.S are not used for RISC-V. Remove them. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng --- Changes in v4: None Changes in v3: None Changes in v2: - Drop removal of code that stores the contents of a2; this broke the board

[U-Boot] [PATCH v4 14/28] riscv: implement the invalidate_icache_* functions

2018-11-22 Thread Lukas Auer
Implement the functions invalidate_icache_range() and invalidate_icache_all(). RISC-V does not have instructions for explicit cache-control. The functions in this patch are implemented with the memory ordering instruction for synchronizing the instruction and data streams. This may be implemented

Re: [U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
On 22/11/2018 07:40, Jagan Teki wrote: > On Wed, Nov 14, 2018 at 3:55 PM Neil Armstrong > wrote: >> >> The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. >> >> This patchset add the driver ported from linux, but also import the regmap >> regmap_read_poll_timeout() to

[U-Boot] [PATCH v1] LS2080ardb: MMC: disable esdhc for dspi

2018-11-22 Thread Yinbo Zhu
esdhc and dspi have Multiplexed pins, if dspi is enabled and esdhc need to be disabled, This patch is to disable esdhc when rcw config dspi enabled. Signed-off-by: Yinbo Zhu --- include/configs/ls2080ardb.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 6/9] power: axp209: Add support for voltage rate control on LDO3

2018-11-22 Thread Maxime Ripard
On Wed, Nov 21, 2018 at 08:05:30PM +0200, Priit Laes wrote: > From: Olliver Schinagl > > The AXP209 LDO3 regulator supports voltage rate control, or can set a > slew rate. > > This allows for the power to gradually rise up to the desired voltage, > instead of spiking up as fast as possible.

Re: [U-Boot] Uboot send pull request

2018-11-22 Thread Rick Chen
Auer, Lukas 於 2018年11月21日 週三 下午9:09寫道: > > Hi Rick, > > On Wed, 2018-11-21 at 17:37 +0800, Rick Chen wrote: > > Hi Lukas > > > > > > > > > > Hi Rick, > > > > > > > > Thanks for pulling my changes! I have some notes and questions on > > > > it. > > > > > > > > I can't find all of your patches on

Re: [U-Boot] [PATCH 1/2] net: mvpp2: fix lookup of mdio registers base address

2018-11-22 Thread Stefan Roese
On 21.11.18 12:05, Baruch Siach wrote: Current mdio base lookup code relies on a 'reg' property at the upper CP node. There is no 'reg' property there in current DT files of Armada CP110. Use ofnode_get_addr() instead since it provides proper DT address translation. Cc: Ken Ma Cc: Stefan

Re: [U-Boot] [PATCH 2/2] net: mvpp2: mdio device per port

2018-11-22 Thread Stefan Roese
On 21.11.18 12:05, Baruch Siach wrote: Current code forces all ports on a given Ethernet device to use the same mdio device. In practice different ports might be wired to separate mdio devices. Move the mdio device from the container struct mvpp2 to the per port struct mvpp2_port. Cc: Ken Ma

[U-Boot] [PATCH u-boot v2 03/19] board: amlogic: remove p212 derivatives

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet The Khadas vim and the libretech aml-s905x-cc (aka Potato) derive from amlogic s905x reference design (P212). All the code in these board is a copy/paste from the p212, which is tedious to maintain. This change use p212 u-boot board for all these boards, while keeping a

[U-Boot] [PATCH u-boot v2 16/19] clk: Add clock driver for AXG

2018-11-22 Thread Neil Armstrong
This patch adds a minimal clock driver for the Amlogic AXG SoC to handle the basic gates and PLLs. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-axg.h | 104 +++ drivers/clk/Makefile| 2 +- drivers/clk/clk_meson_axg.c | 316

[U-Boot] [PATCH u-boot v2 14/19] ARM: meson: Add support for AXG family

2018-11-22 Thread Neil Armstrong
This patch adds support for the Amlogic AXG SoC, which is very close from the Amlogic GXL SoCs with : - Same 4xCortex-A53 CPUs but clocked at 1.2GHZ max - DDR Interface limited to DDR4 16bit - The whole physical register address space has been moved to 0xfxxx - The pinctrl setup has changed -

[U-Boot] [PATCH v4 05/28] riscv: add Kconfig entries for the C and A ISA extensions

2018-11-22 Thread Lukas Auer
Add Kconfig entries for the C (compressed instructions) and A (atomic instructions) ISA extensions. Only the C ISA extension is selectable. This matches the configuration in Linux. The Kconfig entries are not used yet. A follow-up patch will select the appropriate compiler flags based on the

[U-Boot] [PATCH v4 28/28] riscv: qemu: clear kernel-start/-end in device tree as workaround for BBL

2018-11-22 Thread Lukas Auer
QEMU specifies the location of Linux (supplied with the -kernel argument) in the device tree using the riscv,kernel-start and riscv,kernel-end properties. We currently rely on the SBI implementation of BBL to run Linux and therefore embed Linux as payload in BBL. This causes an issue, because BBL

[U-Boot] [PATCH v4 09/28] riscv: make use of the barrier functions from Linux

2018-11-22 Thread Lukas Auer
Replace the barrier functions in arch/riscv/include/asm/io.h with those defined in barrier.h, which is imported from Linux. This version is modified to remove the include statement of asm-generic/barrier.h, which is not available in U-Boot or required. Signed-off-by: Lukas Auer Reviewed-by: Bin

[U-Boot] [PATCH v4 20/28] riscv: save hart ID and device tree passed by prior boot stage

2018-11-22 Thread Lukas Auer
Store the hart ID and device tree passed by the prior boot stage (in a0 and a1) in registers s0 and s1. Replace one use of s1 in start.S to avoid overwriting it. The device tree is also stored in memory to make it available to U-Boot with the configuration CONFIG_OF_PRIOR_STAGE. Signed-off-by:

Re: [U-Boot] [PATCH v3 1/3] spi: pl022: Simplify platdata code

2018-11-22 Thread Jagan Teki
On Thu, Nov 22, 2018 at 1:21 PM Quentin Schulz wrote: > > Hi Jagan, > > On Thu, Nov 22, 2018 at 12:03:47PM +0530, Jagan Teki wrote: > > pl022 spi driver support both OF_CONTROL and PLATDATA, this > > patch is trying to simplify the code that differentiating > > platdata vs of_control. > > - Move

Re: [U-Boot] [PATCH 2/3] configs: kirkwood: ds109: Convert to DM_SPI

2018-11-22 Thread Stefan Roese
On 21.11.18 10:22, Chris Packham wrote: Enable CONFIG_DM_SPI=y and CONFIG_DM_SPI_FLASH=y in the defconfig. Signed-off-by: Chris Packham --- configs/ds109_defconfig | 2 ++ include/configs/ds109.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/ds109_defconfig

Re: [U-Boot] [PATCH 1/3] configs: kirkwood: Convert Allied Telesis boards to DM_SPI

2018-11-22 Thread Stefan Roese
On 21.11.18 10:22, Chris Packham wrote: Enable CONFIG_DM_SPI=y and CONFIG_DM_SPI_FLASH=y in the defconfig. Signed-off-by: Chris Packham --- configs/SBx81LIFKW_defconfig | 2 ++ configs/SBx81LIFXCAT_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git

[U-Boot] [PATCH u-boot v2 04/19] board: amlogic: move khadas-vim2 as q200 ref board

2018-11-22 Thread Neil Armstrong
The Khadas vim2 derive from amlogic s912 reference design (Q200). This patch moves the khadas-vim2 board support to a generic Q200 board, while keeping a dedicated defconfig to customize the names and device tree. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig

[U-Boot] [PATCH u-boot v2 05/19] board: amlogic: factorise gxbb boards

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet The nanopi-k2 and the odroid-c2 are similar enough to be supported by the same u-boot board. This change use odroid-c2 u-boot board for the nanopi-k2 as well. Dedicated defconfig are kept to customize the names and device tree. Signed-off-by: Jerome Brunet Signed-off-by:

[U-Boot] [PATCH u-boot v2 07/19] configs: meson: change default load addresses

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet The original chosen addresses conflict with the BL2 initialisation. So far there was no issue with them but if we preload binaries in RAM (ROMUSB boot) before running the BL2 they get corrupted by the execution of BL2 init. If we load them around 0x0800, there is no such

[U-Boot] [PATCH u-boot v2 15/19] ARM: dts: Sync Amlogic Meson AXG DT from Linux 4.20-rc1

2018-11-22 Thread Neil Armstrong
Synchronize the Amlogic AXG Device Tree files and bindings include from the recent Linux 4.20-rc1, because it includes patches fixing support for U-boot. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile |3 +-

[U-Boot] [PATCH u-boot v2 19/19] ARM: meson: Add boot device discovery

2018-11-22 Thread Neil Armstrong
The Amlogic Meson SoCs ROM supports a boot over USB with a custom protocol. When no other boot medium are available (or by forcing the USB mode), the ROM sets the primary USB port as device mode and waits for a Host to enumerate. When enumerated, a custom protocol described at [1] permits

[U-Boot] [PATCH u-boot v2 09/19] pinctrl: meson: select generic pinctrl

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Meson pinctrl needs generic pinctrl, rather than depending on it select it Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/Kconfig

[U-Boot] [PATCH u-boot v3 2/3] test: regmap: add regmap_read_poll_timeout test

2018-11-22 Thread Neil Armstrong
Add test to regmap_read_poll_timeout() helper to check the timeout works properly but cannot test proper condition matching since read/write calls are not executed in sandbox. Acked-by: Jagan Teki Signed-off-by: Neil Armstrong --- test/dm/regmap.c | 26 ++ 1 file

Re: [U-Boot] Uboot send pull request

2018-11-22 Thread Auer, Lukas
Hi Rick, On Thu, 2018-11-22 at 17:42 +0800, Rick Chen wrote: > Auer, Lukas 於 2018年11月22日 週四 > 下午5:18寫道: > > > > Hi Rick, > > > > On Thu, 2018-11-22 at 16:38 +0800, Rick Chen wrote: > > > Auer, Lukas 於 2018年11月21日 週三 > > > 下午9:09寫道: > > > > > > > > Hi Rick, > > > > > > > > On Wed, 2018-11-21

[U-Boot] [PATCH v4 10/28] riscv: do not reimplement generic io functions

2018-11-22 Thread Lukas Auer
RISC-V U-Boot reimplements the generic io functions from asm-generic/io.h. Remove the redundant implementation and include the generic io.h instead. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 17/28] Drop CONFIG_INIT_CRITICAL

2018-11-22 Thread Lukas Auer
From: Bin Meng This is now deprecated and no board is using it. Drop it. Signed-off-by: Bin Meng Signed-off-by: Lukas Auer --- Changes in v4: None Changes in v3: None Changes in v2: - New patch to replace patch "riscv: remove CONFIG_INIT_CRITICAL" arch/nds32/cpu/n1213/start.S | 51

[U-Boot] [PATCH v4 27/28] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-22 Thread Lukas Auer
QEMU embeds the location of the kernel image in the device tree. Store this address in the environment as variable kernel_start. It is used in the board-local distro boot command QEMU to boot the kernel with the U-Boot device tree. The QEMU boot command is added as the first boot target device.

[U-Boot] [PATCH v4 16/28] riscv: align mtvec on a 4-byte boundary

2018-11-22 Thread Lukas Auer
The machine trap-vector base address (mtvec) must be aligned on a 4-byte boundary. Add the necessary align directive to trap_entry. This patch also removes the global directive for trap_entry, which is not required. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng --- Changes in v4: None

[U-Boot] [PATCH v4 23/28] riscv: align bootm implementation with that of other architectures

2018-11-22 Thread Lukas Auer
The bootm implementation of RISC-V diverges from that of other architectures. Update it to match the implementation of other architectures. The ARM implementation is used as a reference. This adds the following features and changes to RISC-V. * Add support for the BOOTM_STATE_OS_FAKE_GO command *

[U-Boot] [PATCH v4 24/28] distro_bootcmd: add VirtIO distro boot command

2018-11-22 Thread Lukas Auer
Add a boot command to distro boot to support disks connected over the VirtIO bus. The boot command uses the shared block environment. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Alexander Graf --- Changes in v4: None Changes in v3: - New patch to add VirtIO distro boot

Re: [U-Boot] [PATCH v3 1/3] spi: pl022: Simplify platdata code

2018-11-22 Thread Quentin Schulz
Hi Jagan, On Thu, Nov 22, 2018 at 01:31:25PM +0530, Jagan Teki wrote: > On Thu, Nov 22, 2018 at 1:21 PM Quentin Schulz > wrote: > > > > Hi Jagan, > > > > On Thu, Nov 22, 2018 at 12:03:47PM +0530, Jagan Teki wrote: > > > pl022 spi driver support both OF_CONTROL and PLATDATA, this > > > patch is

[U-Boot] [PATCH v2 2/4] arm: baltos: remove unused header

2018-11-22 Thread yegorslists
From: Yegor Yefremov OnRISC Baltos series uses SoM with tps65910 PMIC, so remove "power/tps65217.h" header inclusion. Signed-off-by: Yegor Yefremov --- board/vscom/baltos/board.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c index

Re: [U-Boot] [PATCH 3/3] configs: kirkwood: dreamplug: Convert to DM_SPI

2018-11-22 Thread Stefan Roese
On 21.11.18 10:22, Chris Packham wrote: Enable CONFIG_DM_SPI=y and CONFIG_DM_SPI_FLASH=y in the defconfig. Signed-off-by: Chris Packham --- configs/dreamplug_defconfig | 2 ++ include/configs/dreamplug.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2] armv8: ls2080ardb: enable eSDHC pin mux support

2018-11-22 Thread Yinbo Zhu
CONFIG_FSL_ESDHC_PIN_MUX should be enabled for ls2080ardb whose eSDHC has pin mux with DSPI. This config makes sure esdhc dts node would be fixed with disabled status if DSPI is used, in case of any mmc issue in linux. Also, esdhc should be added in default hwconfig since eSDHC is used in default.

[U-Boot] [PATCH u-boot v2 12/19] clk: meson: silence debug print

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet This debug print was not designed to be active in non-debug mode. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c

[U-Boot] [PATCH u-boot v2 11/19] clk: meson: add static to meson_gates table

2018-11-22 Thread Neil Armstrong
The meson_gates table should be set static in the clk_meson driver. Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c index c44858822d..a096a3582c 100644 ---

[U-Boot] [PATCH u-boot v2 08/19] pinctrl: meson: rework gx pmx function

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet In preparation of supporting the new Amlogix AGX SoCs, we need to move the Amlogic GX pinmux functions out of the common code to be able to add a different set of SoC specific pinmux functions for AXG. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong ---

Re: [U-Boot] Uboot send pull request

2018-11-22 Thread Rick Chen
Auer, Lukas 於 2018年11月22日 週四 下午5:18寫道: > > Hi Rick, > > On Thu, 2018-11-22 at 16:38 +0800, Rick Chen wrote: > > Auer, Lukas 於 2018年11月21日 週三 > > 下午9:09寫道: > > > > > > Hi Rick, > > > > > > On Wed, 2018-11-21 at 17:37 +0800, Rick Chen wrote: > > > > Hi Lukas > > > > > > > > > > > > > > > > Hi

[U-Boot] [PATCH v4 15/28] riscv: fix inconsistent use of spaces and tabs in start.S

2018-11-22 Thread Lukas Auer
start.S uses both tabs and spaces after instructions. Fix this by only using tabs after instructions. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None arch/riscv/cpu/start.S | 322

[U-Boot] [PATCH v4 11/28] riscv: complete the list of exception codes

2018-11-22 Thread Lukas Auer
Only the first four exception codes are defined. Add the missing exception codes from the definition in RISC-V Privileged Architecture Version 1.10. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 26/28] dm: core: add missing prototype for ofnode_read_u64

2018-11-22 Thread Lukas Auer
Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Move prototype location to match the location of the function in ofnode.c include/dm/ofnode.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH v4 25/28] riscv: qemu: enable distro boot

2018-11-22 Thread Lukas Auer
Enable distro boot on the qemu-riscv32/64 boards. Supported boot target devices are VirtIO and DHCP. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Alexander Graf --- Changes in v4: None Changes in v3: - New patch to enable distro boot on qemu-riscv32/64 Changes in v2: None

[U-Boot] [PATCH v4 19/28] riscv: do not blindly modify the mstatus CSR

2018-11-22 Thread Lukas Auer
The mstatus CSR includes WPRI (writes preserve values, reads ignore values) fields and must therefore not be set to zero without preserving these fields. It is not apparent why mstatus is set to zero here since it is not required for U-Boot to run. Remove it. This instruction and others encode

[U-Boot] [PATCH] microblaze: Showing model information from DT by default

2018-11-22 Thread Michal Simek
Show information about board read from DT by default to know what board U-Boot is running at. Signed-off-by: Michal Simek --- configs/microblaze-generic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig

[U-Boot] [Uboot]Marvell armada_38x can't detect USB storage device

2018-11-22 Thread 吳冠勳
Hi all, I've tried the first time booting a self compiled u-boot on armada_38x:CUSTOMER_BOARD_0. Here is the Boot messages: Board: A38x-Customer-Board-0 SoC: MV88F6820 Rev B0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU@ 1600 [MHz] L2 @

Re: [U-Boot] [PATCH v2 17/18] spi: mtk_qspi: add qspi driver for MT7629 SoC

2018-11-22 Thread Guochun Mao
On Thu, 2018-11-22 at 11:51 +0530, Jagan Teki wrote: > On Wed, Nov 21, 2018 at 5:16 PM Guochun Mao wrote: > > > > Hi Jagan, > > > > On Wed, 2018-11-21 at 15:08 +0530, Jagan Teki wrote: > > > > > > > > +static int mtk_qspi_tx_rx(struct mtk_qspi_priv *priv) > > > > > > +{ > > > > > > + int

[U-Boot] [PATCH v8 06/12] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-11-22 Thread Jean-Jacques Hiblot
For USB ports that use the Driver Model, turn on the clocks during the late init stage. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v8 09/12] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-11-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v8: None Changes in v7: - Fix build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of DWC3_OF_SIMPLE. disable non DM USB options Changes in

[U-Boot] [PATCH v8 10/12] configs: am57xx_evm: Enable DM_USB and DM_USB_DEV

2018-11-22 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_DEV for AM57xx based boards. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v8: None Changes in v7: - Fixed build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - AM57 configs: enable DM_USB and DM_USB_DEV.

[U-Boot] [PATCH v8 12/12] board: ti: am57xx: remove USB platform code

2018-11-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v8: - Fix edison build Changes in v7: None Changes in v6: - Supports DM USB for peripherals - Removed DTS changes that disabled USB1 on DRA7 because DM_USB_DEV is now supported Changes in v5: None Changes in v4: None Changes in v3: None

Re: [U-Boot] [PATCH v1 16/16] configs: am335x_boneblack_vboot: enable DM_USB and RNDIS boot in SPl

2018-11-22 Thread Tom Rini
On Wed, Nov 21, 2018 at 11:51:18AM +0100, Jean-Jacques Hiblot wrote: > Enable DM_USB and DM_USB_GADGET for this platform. Also enable RNDIS boot > support (SPL load u-boot over USB RNDIS) > > Signed-off-by: Jean-Jacques Hiblot > --- > > configs/am335x_boneblack_vboot_defconfig | 8 >

Re: [U-Boot] [PATCH v1 03/16] spl: drivers: Link usb common library to SPL if USB gadget is enabled

2018-11-22 Thread Tom Rini
On Wed, Nov 21, 2018 at 11:51:05AM +0100, Jean-Jacques Hiblot wrote: > Some drivers might need to access common USB functions such as > usb_get_maximum_speed() or usb_get_dr_mode(). > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

[U-Boot] [PATCH v8 00/12] Add support for DM_USB and DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms.

2018-11-22 Thread Jean-Jacques Hiblot
This series applies on top of the series "[PATCH v3 0/7] Improvements for the dwc3_generic driver" The branch is also available on github: https://github.com/jjhiblot/u-boot/tree/dm_usb_dra7_v8 Moving to DM_USB and DM_USB_DEV brings some benefits: - it is required to support DM_ETH and USB

Re: [U-Boot] [PATCH v1 04/16] spl: net: dm: usb: bind the gadget before attempting to load the image

2018-11-22 Thread Tom Rini
On Wed, Nov 21, 2018 at 11:51:06AM +0100, Jean-Jacques Hiblot wrote: > If DM_USB_GADGET is used, the usb ethernet gadget driver must be bound to a > controller before the image can be downloaded over the network. > In u-boot this can be done with the bind command. In SPL it must be done >

Re: [U-Boot] [PATCH 2/4] ARM: dts: am335x-chiliboard: add /chosen/stdout-path

2018-11-22 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:32:01PM +0100, Marcin Niestroj wrote: > Add that node path in u-boot overlay dtsi file for now to keep > am335x-chiliboard.dts in sync with Linux. > > Signed-off-by: Marcin Niestroj Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v1 16/16] configs: am335x_boneblack_vboot: enable DM_USB and RNDIS boot in SPl

2018-11-22 Thread Lokesh Vutla
On 22/11/18 6:59 PM, Tom Rini wrote: On Wed, Nov 21, 2018 at 11:51:18AM +0100, Jean-Jacques Hiblot wrote: Enable DM_USB and DM_USB_GADGET for this platform. Also enable RNDIS boot support (SPL load u-boot over USB RNDIS) Signed-off-by: Jean-Jacques Hiblot ---

Re: [U-Boot] [PATCH v1 11/16] configs: am43xx: Enable RNDIS support in SPL

2018-11-22 Thread Tom Rini
On Wed, Nov 21, 2018 at 11:51:13AM +0100, Jean-Jacques Hiblot wrote: > The AM43xx SOCs have the ability to download the SPl through USB (RNDIS). > Adding support for RNDIS in SPL allows to also download u-boot through USB. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom

[U-Boot] [PATCH v2] arm64: mvebu: fix crash in EFI memory allocation

2018-11-22 Thread Baruch Siach
EFI memory allocation code return values that are not mapped by U-Boot MMU. This causes a crash when tftp calls efi_set_bootdev(). Fix this similarly to commit 0797f7f0b7e1 ("ARM: tegra: reserve unmapped RAM so EFI doesn't use it"). Signed-off-by: Baruch Siach --- v2: Fix the

[U-Boot] armada_38x can't detect USB device

2018-11-22 Thread 吳冠勳
Hi all, I've tried the first time booting a self compiled u-boot on armada_38x:CUSTOMER_BOARD_0. Here is the Boot messages: Board: A38x-Customer-Board-0 SoC: MV88F6820 Rev B0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU@ 1600 [MHz] L2 @

Re: [U-Boot] [PATCH v3 1/3] riscv: Add kconfig option to run u-boot in S-mode

2018-11-22 Thread Palmer Dabbelt
On Wed, 21 Nov 2018 14:06:00 PST (-0800), lukas.a...@aisec.fraunhofer.de wrote: Hi Palmer, On Wed, 2018-11-21 at 08:28 -0800, Palmer Dabbelt wrote: On Tue, 20 Nov 2018 19:41:10 PST (-0800), a...@brainfault.org wrote: > This patch adds kconfig option RISCV_SMODE to run u-boot in > S-mode. When

  1   2   3   >