Re: [U-Boot] [PATCH v5 0/8] x86: Add basic Slim Bootloader payload support

2019-07-21 Thread Bin Meng
Hi Aiden, On Mon, Jul 22, 2019 at 1:13 PM Park, Aiden wrote: > > Hi Bin/Andy, > > > -Original Message- > > From: Park, Aiden > > Sent: Tuesday, July 16, 2019 9:41 PM > > To: U-Boot Mailing List ; Simon Glass > > ; Bin Meng ; Andy Shevchenko > > > > Subject: [PATCH v5 0/8] x86: Add basic

Re: [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o

2019-07-21 Thread Bin Meng
On Mon, Jul 22, 2019 at 2:06 PM Heinrich Schuchardt wrote: > > When changing the architecture without calling 'make clean' a subsequent > make fails with > lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized > > Force efi_crt0.o to be always rebuild. > > Reported-by: Kever Y

Re: [U-Boot] [PATCH 00/14] ARM: davinci: driver-model improvements

2019-07-21 Thread Bartosz Golaszewski
wt., 9 lip 2019 o 09:55 Bartosz Golaszewski napisał(a): > > From: Bartosz Golaszewski > > Hi Tom, > > the following series contains all the patches for davinci that have > been sent to the mailing list recently rebased on top of v2019.07 and > retested on da850-lcdk and da850-evm. I collected all

Re: [U-Boot] U-Boot build error when switch different SoC without clean

2019-07-21 Thread Heinrich Schuchardt
On 7/22/19 6:47 AM, Bin Meng wrote: On Mon, Jul 22, 2019 at 11:10 AM Kever Yang wrote: Hi, I always met below error when build latest U-Boot for different board and defconfig without "make clean", anyone know how to fix this? LD lib/efi_loader/helloworld_efi.so lib/efi_loader

Re: [U-Boot] [EXT] Re: [Patch V3] drivers: mtd :spi: Enable 4B opcodes for SPANSION s25fl512s

2019-07-21 Thread Jagan Teki
On Mon, Jul 22, 2019 at 11:11 AM Ashish Kumar wrote: > > > > > -Original Message- > > From: Vignesh Raghavendra > > Sent: Friday, July 19, 2019 11:41 PM > > To: Ashish Kumar ; Jagan Teki > > ; h...@denx.de > > Cc: U-Boot-Denx > > Subject: Re: [EXT] Re: [Patch V3] drivers: mtd :spi: Enabl

[U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o

2019-07-21 Thread Heinrich Schuchardt
When changing the architecture without calling 'make clean' a subsequent make fails with lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized Force efi_crt0.o to be always rebuild. Reported-by: Kever Yang Signed-off-by: Heinrich Schuchardt --- scripts/Makefile.lib | 2 +-

Re: [U-Boot] [EXT] Re: [Patch V3] drivers: mtd :spi: Enable 4B opcodes for SPANSION s25fl512s

2019-07-21 Thread Ashish Kumar
> -Original Message- > From: Vignesh Raghavendra > Sent: Friday, July 19, 2019 11:41 PM > To: Ashish Kumar ; Jagan Teki > ; h...@denx.de > Cc: U-Boot-Denx > Subject: Re: [EXT] Re: [Patch V3] drivers: mtd :spi: Enable 4B opcodes for > SPANSION s25fl512s > > Caution: EXT Email > > >

Re: [U-Boot] [PATCH v5 0/8] x86: Add basic Slim Bootloader payload support

2019-07-21 Thread Park, Aiden
Hi Bin/Andy, > -Original Message- > From: Park, Aiden > Sent: Tuesday, July 16, 2019 9:41 PM > To: U-Boot Mailing List ; Simon Glass > ; Bin Meng ; Andy Shevchenko > > Subject: [PATCH v5 0/8] x86: Add basic Slim Bootloader payload support > > This patch is to enable U-Boot as a payload w

[U-Boot] [PATCH v1 5/5] mxc_ipuv3_fb.c: enable a backlight on a panel

2019-07-21 Thread Heiko Schocher
check if we get a panel device, if so, enable the backlight on it. Signed-off-by: Heiko Schocher --- drivers/video/imx/mxc_ipuv3_fb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index aca76bd9cc..c64be38e49 100644

[U-Boot] [PATCH v1 4/5] mxc_ipuv3_fb.c: call display_enable

2019-07-21 Thread Heiko Schocher
call display_enable, so a display gets enabled. Signed-off-by: Heiko Schocher --- drivers/video/imx/mxc_ipuv3_fb.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index cf672156cd..aca76bd9cc 100644 --- a/dri

[U-Boot] [PATCH v1 3/5] bdinfo: show fb base with DM_VIDEO

2019-07-21 Thread Heiko Schocher
show Framebuffer base with CONFIG_DM_VIDEO enabled. Signed-off-by: Heiko Schocher --- cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f576e226ee..86c17dc427 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -328,7 +328,7 @@ static

[U-Boot] [PATCH v1 2/5] mxc_ipuv3_fb.c: set gd->fb_base

2019-07-21 Thread Heiko Schocher
set gd->fb_base so it can be shown with bdinfo command. Signed-off-by: Heiko Schocher --- drivers/video/imx/mxc_ipuv3_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 29ecac40a2..cf672156cd 100644 --- a/drivers/

[U-Boot] [PATCH v1 1/5] global_data: enable fb_base for DM_VIDEO

2019-07-21 Thread Heiko Schocher
with CONFIG_VIDEO we store fb base address in global data fb_base variable. Do this also in DM_VIDEO case. Signed-off-by: Heiko Schocher --- include/asm-generic/global_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/global_data.h b/include/asm-ge

[U-Boot] [PATCH v1 0/5] imx6, display: enhancements for upcoming aristainetos DM support

2019-07-21 Thread Heiko Schocher
some small enhancements for display support for the DM conversion of the aristainetos port. Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/559790510 Heiko Schocher (5): global_data: enable fb_base for DM_VIDEO mxc_ipuv3_fb.c: set gd->fb_base bdinfo: show fb base with DM_VIDE

Re: [U-Boot] U-Boot build error when switch different SoC without clean

2019-07-21 Thread Bin Meng
On Mon, Jul 22, 2019 at 11:10 AM Kever Yang wrote: > > Hi, > > I always met below error when build latest U-Boot for different board > > and defconfig without "make clean", anyone know how to fix this? > >LD lib/efi_loader/helloworld_efi.so > lib/efi_loader/efi_crt0.o: file not recog

Re: [U-Boot] [PATCH] remoteproc: Fix potential build issues with SPL remoteproc

2019-07-21 Thread Lokesh Vutla
On 19/07/19 8:57 PM, Suman Anna wrote: > The rproc uclass driver can either be built with SPL_REMOTEPROC > or REMOTEPROC, but the function prototypes in remoteproc.h are > defined only when CONFIG_REMOTEPROC is defined. This can cause > build issues in SPL if CONFIG_REMOTEPROC is not selected. >

[U-Boot] U-Boot build error when switch different SoC without clean

2019-07-21 Thread Kever Yang
Hi,     I always met below error when build latest U-Boot for different board and defconfig without "make clean", anyone know how to fix this?   LD  lib/efi_loader/helloworld_efi.so lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized   CC  lib/strto.o scripts/Make

[U-Boot] [PATCH v5 2/5] spi: add spi-mem driver for MediaTek MT7629 SoC

2019-07-21 Thread Weijie Gao
This patch adds spi-mem driver for MediaTek MT7629 SoC to access SPI-NOR and SPI-NAND flashes. Cc: Jagan Teki Signed-off-by: Weijie Gao --- Changes since v1: rename mtk_spimem to spi_snfi_spi. change pinctrl name. Changes since v2: remove udevice in mtk_snfi_priv. Changes since v3: remove check

[U-Boot] [PATCH v5 5/5] MAINTAINERS: change spi driver entry

2019-07-21 Thread Weijie Gao
Change mtk_qspi.c to mtk_snfi_spi.c Signed-off-by: Weijie Gao --- Changes since v1: rename mtk_spimem.c to spi_snfi_spi.c Changes since v2: none --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index bc67c49965..e836f5050d 100644 --- a

[U-Boot] [PATCH v5 4/5] configs: mt7629_rfb: change MTK_QSPI to MTK_SNFI_SPI

2019-07-21 Thread Weijie Gao
This patch replaces MTK_QSPI with MTK_SNFI_SPI to ensure mtk_snfi_spi driver is built by default. Signed-off-by: Weijie Gao --- Changes since v1: none --- configs/mt7629_rfb_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/mt7629_rfb_defconfig b/configs/mt762

[U-Boot] [PATCH v5 1/5] spi: remove obsolete mtk_qspi driver

2019-07-21 Thread Weijie Gao
Since u-boot has added the spi-mem framework and replaced the spi-nor framework, the mtk_qspi is no longer compatible with the new spi-nor driver. Remove this driver, and a new driver will be added later. Cc: Jagan Teki Signed-off-by: Weijie Gao --- Changes since v1: none --- drivers/spi/Kconf

[U-Boot] [PATCH v5 0/5] Add spi-mem driver for MediaTek MT7629 SoC

2019-07-21 Thread Weijie Gao
Since u-boot has added the spi-mem framework and replaced the spi-nor framework, the mtk_qspi is no longer compatible with the new spi-nor driver. This patch series add a new spi-mem driver to replace the mtk_qspi driver. - Changes since v4: Add WATCHDOG_RESET() to the exec_op() of mtk_snfi_spi d

[U-Boot] [PATCH v5 3/5] arm: dts: change MT7629 to use spi-mem rather than qspi

2019-07-21 Thread Weijie Gao
The original mtk_qspi driver has been removed. We change MT7629 to use newly added mtk-spimem driver. Signed-off-by: Weijie Gao --- Changes since v1: rename node spimem to snfi. change pinctrl name and order. Changes since v2: none --- arch/arm/dts/mt7629-rfb.dts | 18 +- arch/ar

[U-Boot] [PATCH V3 5/5] imx8qm_mek: switch to use container image

2019-07-21 Thread Peng Fan
Because FIT could not be used for AHAB secure boot on i.MX8, so switch to use container image that could let SPL verify ATF and U-Boot with AHAB. Enable HUSH_PARSER in defconfig to make run netboot could work. Note: The AHAB related code has not been added. Signed-off-by: Peng Fan --- board/fr

[U-Boot] [PATCH V3 4/5] imx8qxp_mek: switch to use container image

2019-07-21 Thread Peng Fan
Because FIT could not be used for AHAB secure boot on i.MX8, so switch to use container image that could let SPL verify ATF and U-Boot with AHAB. Note: The AHAB related code has not been added. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 4 +--- board/freescal

[U-Boot] [PATCH V3 3/5] imx: add container target

2019-07-21 Thread Peng Fan
To support SPL loading container file, add a new Makefile target, and introduce a new Kconfig file to source the cfg file which will be parsed by mkimage. Signed-off-by: Peng Fan --- Makefile | 8 arch/arm/mach-imx/Makefile | 14 -- arch/arm/mach-i

[U-Boot] [PATCH V3 2/5] spl: mmc: support loading i.MX container format file

2019-07-21 Thread Peng Fan
i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: York Sun Cc: Marek Vasut Cc: Alex Kiernan Cc: Simon Glass Cc: Phil

[U-Boot] [PATCH V3 1/5] imx8: support parsing i.MX8 Container file

2019-07-21 Thread Peng Fan
Add parsing i.MX8 Container file support, this is to let SPL could load images in a container file to destination address. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/image.h | 56 +++ arch/arm/mach-imx/imx8/Kconfig | 6 ++ arch/arm/mach-imx/imx8/Makefil

[U-Boot] [PATCH V3 0/5] add i.MX8 container loading support

2019-07-21 Thread Peng Fan
V3: Drops patch 1/5 from V2, add 8QM support, nothing else changed. Stefano, This patchset was pending in patchwork for more that one month, please consider to apply. V2: Drop cleanup Makefile since V1, that patch is not correct. Rebased on master The V2 version: https://patchwork.ozlabs.or

Re: [U-Boot] [PATCH RESEND 01/14] imx: i.MX7ULP: add get_boot_device

2019-07-21 Thread Fabio Estevam
On Sun, Jul 21, 2019 at 10:24 PM Peng Fan wrote: > > Add get_boot_device for i.MX7ULP > > Signed-off-by: Peng Fan For the entire series: Tested-by: Fabio Estevam Without this series I cannot boot Linux on imx7ulp-evk. With this series applied I can. Thanks ___

[U-Boot] [PATCH RESEND 14/14] i.MX7ULP: Change clock rate calculation for NIC1 BUS and EXT

2019-07-21 Thread Peng Fan
From: Ye Li On i.MX7ULP B0, there is change in NIC clock dividers architecture. On A0, the NIC1 BUS and EXT dividers were in a chain with NIC1 DIV, but on B0 they are parallel with NIC1 DIV. So now the dividers are independent. This patch modifies the scg_nic_get_rate function according to this c

[U-Boot] [PATCH RESEND 13/14] i.MX7ULP: Set A7 core frequency to 500Mhz for B0 chip

2019-07-21 Thread Peng Fan
From: Ye Li The normal target frequency for ULP A7 core is 500Mhz, but now ROM set the core frequency to 413Mhz. So change it to 500Mhz in u-boot. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/scg.h | 1 + arch/arm/mach-imx/mx7ulp/clock.c | 2 ++ ar

[U-Boot] [PATCH RESEND 12/14] i.MX7ULP: Add CPU revision check for B0

2019-07-21 Thread Peng Fan
Since there is no register for CPU revision, we use ROM version to check the A0 or B0 chip. Signed-off-by: Peng Fan --- arch/arm/mach-imx/mx7ulp/soc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/mx7ulp/soc.c b/arch/arm/mach-imx/mx7ulp/soc.c index

[U-Boot] [PATCH RESEND 11/14] i.MX7ULP: Workaround APLL PFD2 to 345.6Mhz

2019-07-21 Thread Peng Fan
From: Ye Li The GPU uses APLL PFD2 as its clock parent (483.84Mhz) with divider set to 1. This frequecy is out of ULP A0 spec. The MAX rate for GPU is 350Mhz. So we simply configure the APLL PFD2 to 345.6Mhz (FRAC=28) to workaround the problem. The correct fix should let GPU handle the clock rate

[U-Boot] [PATCH RESEND 10/14] i.MX7ULP: Fix SPLL/APLL clock rate calculation issue

2019-07-21 Thread Peng Fan
From: Ye Li The num/denom is a float value, but in the calculation it is convert to integer 0, and cause the result wrong. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/mx7ulp/scg.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/ma

[U-Boot] [PATCH RESEND 09/14] i.MX7ULP: evk: Enable fuse comamnd

2019-07-21 Thread Peng Fan
Enable fuse command Signed-off-by: Peng Fan --- configs/mx7ulp_evk_defconfig| 1 + configs/mx7ulp_evk_plugin_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/mx7ulp_evk_defconfig b/configs/mx7ulp_evk_defconfig index 3c5d75de0b..0f39d878e7 100644 --- a/configs/mx7ul

[U-Boot] [PATCH RESEND 08/14] misc: Kconfig: make i.MX7ULP could use MXC_OCOTP

2019-07-21 Thread Peng Fan
Signed-off-by: Peng Fan --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index cb8b5c04db..9968cc4f1f 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -200,7 +200,7 @@ config JZ4780_EFUSE con

[U-Boot] [PATCH RESEND 07/14] i.MX7ULP: Fix wrong i2c configuration name

2019-07-21 Thread Peng Fan
From: Ye Li Wrong I2c driver configuration name is used in codes, so I2c driver is not built. Correct it. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/clock.h | 2 +- arch/arm/mach-imx/mx7ulp/clock.c | 2 +- configs/mx7ulp_evk_defconfig

[U-Boot] [PATCH RESEND 06/14] i.MX7ULP: Add CONFIG_MX7ULP to kconfig

2019-07-21 Thread Peng Fan
From: Ye Li Since many drivers need this CONFIG_MX7ULP to distiguish the settings for i.MX7ULP only. Add this entry to cpu's kconfig. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/mx7ulp/Kconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH RESEND 04/14] i.MX7ULP: Correct the clock index

2019-07-21 Thread Peng Fan
From: Bai Ping On i.MX7ULP, value zero is reserved in SCG1 RCCR register, so the val should be decreased by 1 to get the correct clock source index. Signed-off-by: Bai Ping Signed-off-by: Peng Fan --- arch/arm/mach-imx/mx7ulp/scg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[U-Boot] [PATCH RESEND 05/14] i.MX7ULP: Fix PCC register bits mask and offset issue

2019-07-21 Thread Peng Fan
From: Ye Li The offset for FRAC and the mask for PCD are not correct. If we set FRAC, we can't get the right frequency. Fix them to correct value. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/pcc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH RESEND 03/14] i.MX7ULP: Fix system reset after a7 rtc alarm expired.

2019-07-21 Thread Peng Fan
From: Bai Ping The board will reboot if A7 core enter mem mode by rtc, then M4 core enter VLLS mode after the RTC alarm expired. Enable the dumb PMIC mode to fix this issue. Since i.MX7ULP B0 moves the SNVS LP into M4 domain, A core can't access it. So check the CPU rev and not apply the settings

[U-Boot] [PATCH RESEND 02/14] i.MX7ULP: evk: Modify FDT file to disable SD3.0 for usb boot

2019-07-21 Thread Peng Fan
Since the SD3.0 kernel driver needs M4 image support, this causes problem for usb boot booting into kernel. To decouple the relationship, we modify the FDT file in u-boot to disable SD3.0. So the kernel won't depend on M4 image. Signed-off-by: Peng Fan --- board/freescale/mx7ulp_evk/mx7ulp_evk.

[U-Boot] [PATCH RESEND 01/14] imx: i.MX7ULP: add get_boot_device

2019-07-21 Thread Peng Fan
Add get_boot_device for i.MX7ULP Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/imx-regs.h | 13 + arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 1 + arch/arm/mach-imx/mx7ulp/soc.c | 27 +++ 3 files changed, 41 insertions(+) dif

Re: [U-Boot] pmic_get() broken after 4213609cc7("drivers: core: use strcmp when find device by name")

2019-07-21 Thread Peng Fan
Hi Igor > Subject: pmic_get() broken after 4213609cc7("drivers: core: use strcmp when > find device by name") > > Hi, > > Today found out that U-boot isn't booting anymore on Colibri iMX7 and hangs > with: > U-Boot 2019.07-00788-g0ef6e69a1e-dirty (Jul 19 2019 - 15:27:02 +0300) > > CPU: Freesc

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-21 Thread Heinrich Schuchardt
On 7/21/19 11:46 AM, Peter Robinson wrote: On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt wrote: In GRUB before 2.04 a bug existed which did not allow booting some ARM32 boards if U-Boot did not disable caches, cf. https://lists.linaro.org/pipermail/cross-distro/2019-July/000933.html In

[U-Boot] [RFC PATCH 11/11] doc: update QEMU RISC-V documentation

2019-07-21 Thread Lukas Auer
The available defconfigs for RISC-V QEMU have changed. We now have configurations to compile U-Boot to run in supervisor mode and for U-Boot SPL. Update the QEMU RISC-V documentation to reflect these changes. Signed-off-by: Lukas Auer --- doc/README.qemu-riscv | 56 +

[U-Boot] [RFC PATCH 09/11] riscv: set default FIT generator script and build target for SPL builds

2019-07-21 Thread Lukas Auer
Now that we have a generic FIT generator script for RISC-V, set it as the default. To also build the FIT image by default, set the default build target to "u-boot.itb" if CONFIG_SPL_LOAD_FIT is enabled. Signed-off-by: Lukas Auer --- Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(

[U-Boot] [RFC PATCH 10/11] riscv: qemu: add SPL configuration

2019-07-21 Thread Lukas Auer
Add two new configurations (qemu-riscv{32,64}_spl_defconfig) with SPL enabled for RISC-V QEMU. QEMU does not require SPL to run U-Boot. The configurations are meant to help the development of SPL on RISC-V. The configurations enable RAM as the only SPL boot device. Images must be loaded at address

[U-Boot] [RFC PATCH 08/11] riscv: add a generic FIT generator script

2019-07-21 Thread Lukas Auer
Add a generic FIT generator script for RISC-V to generate images containing U-Boot, OpenSBI FW_DYNAMIC firmware, and optionally one or more device trees. The location of the OpenSBI firmware binary can be specified with the OPENSBI environment variable. By default, it is assumed to be "fw_dynamic.b

[U-Boot] [RFC PATCH 07/11] riscv: support SPL stack and global data relocation

2019-07-21 Thread Lukas Auer
To support relocation of the stack and global data on RISC-V, the secondary harts must be notified of the change using IPIs. We can reuse the hart relocation code for this purpose. It uses global data to store the new stack pointer and global data pointer for the secondary harts. This means that we

[U-Boot] [RFC PATCH 06/11] riscv: add SPL support

2019-07-21 Thread Lukas Auer
U-Boot SPL on the generic RISC-V CPU supports two boot flows, directly jumping to the image and via OpenSBI firmware. In the first case, both U-Boot SPL and proper must be compiled to run in the same privilege mode. Using OpenSBI firmware, U-Boot SPL must be compiled for machine mode and U-Boot pro

[U-Boot] [RFC PATCH 04/11] riscv: add run mode configuration for SPL

2019-07-21 Thread Lukas Auer
U-Boot SPL can be run in a different privilege mode from U-Boot proper. Add new configuration entries for SPL to allow the run mode to be configured independently of U-Boot proper. Extend all uses of the CONFIG_RISCV_SMODE and CONFIG_RISCV_MMODE configuration symbols to also cover the SPL equivale

[U-Boot] [RFC PATCH 03/11] spl: fit: use U-Boot device tree when FIT image has no device tree

2019-07-21 Thread Lukas Auer
As part of the SPL FIT boot flow, the device tree is appended to U-Boot proper. The device tree is used to record information on the loadables to make them available to the SPL framework and U-Boot proper. Depending on the U-Boot device tree provider, the FIT image might not include a device tree.

[U-Boot] [RFC PATCH 02/11] Makefile: support building SPL FIT images without device trees

2019-07-21 Thread Lukas Auer
When building a U-Boot FIT image, the device trees specified by the board are unconditionally built for inclusion in the FIT image. However, not all device tree providers, such as CONFIG_OF_PRIOR_STAGE, require a device tree to be built and bundled with the U-Boot binary. They rely on other mechani

[U-Boot] [RFC PATCH 01/11] fdtdec: make CONFIG_OF_PRIOR_STAGE available in SPL

2019-07-21 Thread Lukas Auer
The current preprocessor logic prevents CONFIG_OF_PRIOR_STAGE from being used in U-Boot SPL. Change the logic to also make it available in U-Boot SPL. Signed-off-by: Lukas Auer --- include/fdtdec.h | 2 +- lib/fdtdec.c | 6 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git

Re: [U-Boot] [PATCH v1 0/5] usb, ohci-hcd: add usb ohci pci DM driver

2019-07-21 Thread Marek Vasut
On 7/16/19 10:49 AM, Heiko Schocher wrote: > add DM support for USB OHCI over PCI. Therefore first add > some small fixes to get usb ohci-hcd driver working again > with mpc85xx. > > Base for the patchset is: > 6070ef409c - Merge branch '2019-07-12-master-imports' Applied all, thanks. ___

Re: [U-Boot] [PATCH v4] spl: kconfig: separate sysreset and firmware drivers from misc

2019-07-21 Thread Marek Vasut
On 7/16/19 9:29 PM, Simon Goldschmidt wrote: > This adds separate kconfig options for drivers/sysreset and > drivers/firmware. > > Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL > build but also added drivers/firmware and drivers/sysreset at the same > time. > > Since that i

Re: [U-Boot] [PATCH V2 2/3] usb: musb-new: Add support for da8xx-musb

2019-07-21 Thread Marek Vasut
On 7/17/19 5:25 PM, Adam Ford wrote: > On Fri, Jul 12, 2019 at 12:14 AM Marek Vasut wrote: >> >> On 7/10/19 8:59 PM, Adam Ford wrote: >>> With the recently added phy driver, this patch will enable the >>> musb driver on the da8xx to operate in host mode. >>> >>> Signed-off-by: Adam Ford >>> --- >

Re: [U-Boot] [PATCH] fpga: arria10: Fix error in fpga pin configuration

2019-07-21 Thread Marek Vasut
On 7/16/19 6:28 PM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Pin configuration of the FPGA devicetree block should be done > after core configuration in the arria10 fpga driver. This fix > corrects the check of status, and ensures that the fpga pin mux > is configured on correct co

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-21 Thread Marek Vasut
On 7/15/19 9:47 PM, Simon Goldschmidt wrote: > This adds a define for the bit in rstmgr's ctrl regiser that issues > a cold reset (we had a define for the warm reset bit only) in preparation > for a proper sysrese driver. > Applied all four, thanks. -- Best regards, Marek Vasut

Re: [U-Boot] [PATCH 2/3] USB: host: Add the USB3 host driver

2019-07-21 Thread Marek Vasut
On 7/16/19 2:08 PM, sherry sun wrote: > From: Sherry Sun > > This driver is ported from NXP i.MX U-Boot version imx_v2019.04 > and some changes have also been made to adapt to U-Boot. I don't this this line above is particularly useful. > Add the USB3 host driver for NXP imx8 platform, and the

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-21 Thread Peter Robinson
> >>> On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt > >>> wrote: > > In GRUB before 2.04 a bug existed which did not allow booting some ARM32 > boards if U-Boot did not disable caches, cf. > https://lists.linaro.org/pipermail/cross-distro/2019-July/000933.html > > >