Re: [U-Boot] [PATCH 2/2] configs: Add Khadas VIM3 defconfig

2019-09-01 Thread Andreas Färber
Am 02.09.19 um 04:28 schrieb Andreas Färber: > diff --git a/board/amlogic/w400/README.khadas-vim3 > b/board/amlogic/w400/README.khadas-vim3 > new file mode 100644 > index 00..39b2b06000 > --- /dev/null > +++ b/board/amlogic/w400/README.khadas-vim3 [...] > + > DIR=vim3-u-boot > + > git

[U-Boot] [PATCH 2/2] configs: Add Khadas VIM3 defconfig

2019-09-01 Thread Andreas Färber
Derived from odroid-n2_defconfig and README.odroid-n2. Signed-off-by: Andreas Färber --- board/amlogic/w400/MAINTAINERS| 1 + board/amlogic/w400/README.khadas-vim3 | 132 ++ configs/khadas-vim3_defconfig | 54 ++ 3 files changed,

[U-Boot] [PATCH 1/2] arm: dts: Import and update DT for Khadas VIM3

2019-09-01 Thread Andreas Färber
In Linux meson-g12-common.dtsi was introduced as well as new g12b nodes and headers, as dependencies of new meson-g12b-a311d-khadas-vim3.dts. Signed-off-by: Andreas Färber --- arch/arm/dts/Makefile |3 +- arch/arm/dts/meson-g12-common.dtsi | 2435

[U-Boot] [PATCH 0/2] amlogic: Add Khadas VIM3 support

2019-09-01 Thread Andreas Färber
Hi, This mini-series adds initial support for Amlogic A311D based Khadas VIM3. Regards, Andreas Cc: Neil Armstrong Andreas Färber (2): arm: dts: Import and update DT for Khadas VIM3 configs: Add Khadas VIM3 defconfig arch/arm/dts/Makefile |3 +-

Re: [U-Boot] [PATCH] dm: mmc_spi: Fix NULL pointer dereference in mmc_spi_bind()

2019-09-01 Thread Peng Fan
> Subject: [PATCH] dm: mmc_spi: Fix NULL pointer dereference in > mmc_spi_bind() > > The mmc_spi driver's priv is not available in its bind phase(). Use platdata > instead. > > Fixes: 05e35d429745 ("mmc: mmc_spi: Re-write driver using DM framework") > Signed-off-by: Bin Meng > --- > >

Re: [U-Boot] [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board

2019-09-01 Thread Peng Fan
> Subject: [PATCH v3] imx: support i.MX8QM ROM 7720 a1 board > > Add i.MX8QM ROM 7720a1 board support > > Boot log as below: > U-Boot 2019.10-rc2-00283-g198673d9ab (Aug 30 2019 - 10:26:53 +0200) > > CPU: NXP i.MX8QM RevB A53 at 1200 MHz > > Model: Advantech iMX8QM Qseven series > Board:

[U-Boot] [PATCH 2/4] ARM: omapl138_lcdk: Split SPL BSS and increase malloc size

2019-09-01 Thread Adam Ford
In further preparation for device tree conversion in SPL, this patch separates BSS in SPL and increases malloc size. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 6813a8b2ae..98f101342d 100644 --- a/configs/omapl138_lcdk_defconfig

[U-Boot] [PATCH 4/4] ARM: omapl138_lcdk: Enable Pinctrl

2019-09-01 Thread Adam Ford
The single pinctrl supports the da8xx, so this patch enables pinctrl in U-Boot. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index c8a2b145bc..802e3971ff 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig

[U-Boot] [PATCH 3/4] ARM: omapl138_lcdk: Enable DM_GPIO and DM and GPIO Commands

2019-09-01 Thread Adam Ford
The da8xx GPIO driver is available with DM_GPIO support. This patch enables the CMD_GPIO, CMD_DM, and DM_GPIO and DA8XX_GPIO. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 98f101342d..c8a2b145bc 100644 ---

[U-Boot] [PATCH 1/4] ARM: omapl138_lcdk: Disable SPL_DM_USB

2019-09-01 Thread Adam Ford
The USB was just recently enabled, so it is unlikely anyone is using it in SPL, so this patch removes it from SPL to further reduce the SPL code size. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 7e470bf73e..6813a8b2ae 100644 ---

[U-Boot] [PATCH 3/5] sh: r2dplus: Enable OF control

2019-09-01 Thread Marek Vasut
Enable OF control for SH4 R2Dplus board. This is necessary, because the PCI uclass is designed in a way that makes it depend on DT and disallows instanciating devices without DT (e.g. with platdata). Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/Kconfig | 1 +

[U-Boot] [PATCH 2/5] sh: r2dplus: Enable DM

2019-09-01 Thread Marek Vasut
Enable driver model support for SH4 R2Dplus board. Thus far, no drivers are bound via the DM. The PCI drivers have yet to be converted to DM_PCI. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r2dplus_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH 5/5] sh: r2dplus: Switch to DM PCI driver

2019-09-01 Thread Marek Vasut
Add DT entry for the DM PCI driver, update board configs and drop ad-hoc board init code for the PCI bus. Instead, let the DM PCI driver initialize and operate the hardware. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/sh/dts/sh7751-r2dplus.dts | 14 ++

[U-Boot] [PATCH 4/5] pci: sh7751: Convert to DM and DT probing

2019-09-01 Thread Marek Vasut
Convert the SH7751 PCI driver to DM and add DT probing. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Bin Meng --- drivers/pci/pci_sh7751.c | 164 +-- 1 file changed, 106 insertions(+), 58 deletions(-) diff --git a/drivers/pci/pci_sh7751.c

[U-Boot] [PATCH 1/5] sh: Fix OF_SEPARATE support

2019-09-01 Thread Marek Vasut
If the OF_SEPARATE is enabled, the DT is appended past the _end symbol. The current code however clears BSS very early, which overwrites the DT blob with zeroes. Moreover, the early code relocates U-Boot into RAM to the correct location, but does not relocate the DT. This patch adds code to

[U-Boot] [PATCH] sh: tmu: Fix SH4 TCNT0 offset

2019-09-01 Thread Marek Vasut
Fix the offset of TCNT0 register, which is 0xc on SH4. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/sh/include/asm/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/include/asm/config.h b/arch/sh/include/asm/config.h index df38c82abc..406156dff5

[U-Boot] [PATCH] dm: core: Decouple DM from DT

2019-09-01 Thread Marek Vasut
Some of the DM functions depend on OF_CONTROL, which is incorrect. DM and DT are orthogonal. Add macro guards around such functions to avoid compiling them in when DM is enabled, while OF_CONTROL is not. Signed-off-by: Marek Vasut Cc: Simon Glass --- drivers/core/device.c | 4

[U-Boot] [PATCH 2/5] efi_selftest: check EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT

2019-09-01 Thread Heinrich Schuchardt
Check that when the WaitForPacket event occurs EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT is set. Check the return value of Receive(). Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_snp.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 1/5] efi_loader: interrupts in simple network protocol

2019-09-01 Thread Heinrich Schuchardt
GetStatus() must clear the interrupt status. Transmit() should set the TX interrupt. Receive() should clear the RX interrupt. Initialize() and Start() should clear the interrupt status. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h| 2 ++ lib/efi_loader/efi_net.c | 40

[U-Boot] [PATCH 5/5] efi_loader: implement MCastIPtoMAC

2019-09-01 Thread Heinrich Schuchardt
Implement the MCastIPtoMAC service of the simple network protocol. It converts an multicast IPv4 (or IPv6) address to a multicast Ethernet address. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_net.c | 44 ++-- 1 file changed, 42 insertions(+), 2

[U-Boot] [PATCH 4/5] efi_loader: fix status management in network stack

2019-09-01 Thread Heinrich Schuchardt
The network should start in status EfiSimpleNetworkStopped. Add and correct status checks in the simple network protocol. Correct the unit test: * Shutdown() and Stop() during setup if needed * invoke Shutdown() before Stop() when tearing down Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 0/5] efi_loader: fix simple network protocol

2019-09-01 Thread Heinrich Schuchardt
This patch series fixes several bugs in the simple network protocol: * Correctly set and reset the interrupt status. * Support filling the header in the Transmit() service. * Correct the checking and setting of the network state. * Implement the MCastIPtoMAC() service. * Adjust the simple network

[U-Boot] [PATCH 3/5] efi_loader: EFI_SIMPLE_NETWORK.Transmit() fill header

2019-09-01 Thread Heinrich Schuchardt
Fill the media header in EFI_SIMPLE_NETWORK.Transmit(). Check that the buffer size is large enough for the header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_net.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size

2019-09-01 Thread Adam Ford
In preparation to use the device tree in SPL, the code + malloc space needs to fit into 32k of space. This patch reduces the code size by converting to Thumb instructions and using tiny libraries when possible. The result is over 7k in code size reduction in SPL and a 140k reduction in U-Boot.

[U-Boot] [PATCH] ARM: omapl138_lcdk: Remove dead RMII code

2019-09-01 Thread Adam Ford
The omapl138-lcdk does not need to care about RMII code. It appears to be more legacy code when branched from the da850-evm. This patch removes the #ifdefs and #defines related to the enabling/disabling and checking for that option. Signed-off-by: Adam Ford diff --git

Re: [U-Boot] [PATCH v4 0/8] add PCIe, its PHY and AHCI support for mt7623

2019-09-01 Thread Aleksandr Rybalko
Hello fellow hackers! anybody interesting in continue to improve Mediatek MT7623 support? If so, please review comment and/or commit that change-set. Thank you! ср, 28 серп. 2019 о 12:17 Frank Wunderlich пише: > Any comments on this series? > > just a friendly reminder :) > > regards Frank >

[U-Boot] [PATCH] ARM: omapl138_lcdk: Setup MTDIDS and MTDPARTS

2019-09-01 Thread Adam Ford
The schematic shows the NAND to be a 256M part, and the device tree shows the partition mapping. This patch defines MTDIDS and MTDPARTS to match the partition mapping found in the device tree. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig

Re: [U-Boot] [PULL] u-boot-usb/master

2019-09-01 Thread Marek Vasut
On 8/31/19 9:40 PM, Tom Rini wrote: > On Thu, Aug 29, 2019 at 02:08:05PM +0200, Marek Vasut wrote: > >> The following changes since commit 8c56ea5c1e033f16993e5427300399ef848234bb: >> >> Merge branch 'u-boot-stm32_20190827' of >> https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-08-27