[PATCH v1 11/16] arm: socfpga: soc64: Add ATF support for Reset Manager driver

2020-08-16 Thread Chee Hong Ang
In non-secure mode (EL2), Reset Manager driver calls the SMC/PSCI service provided by ATF to enable/disable the SOCFPGA bridges. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/reset_manager_s10.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v1 13/16] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()

2020-08-16 Thread Chee Hong Ang
mbox_reset_cold() will invoke ATF's PSCI service when running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/mailbox_s10.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga/mailbox_s10.c index

[PATCH v1 03/16] arm: socfpga: Add function for checking description from FIT image

2020-08-16 Thread Chee Hong Ang
Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do nothing for now. Users

[PATCH v1 04/16] arm: socfpga: soc64: Load FIT image with ATF support

2020-08-16 Thread Chee Hong Ang
Instead of loading u-boot proper image (u-boot.img), SPL now loads FIT image (u-boot.itb) which includes u-boot proper, ATF and u-boot proper's DTB. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v1 15/16] arm: socfpga: soc64: Skip handoff data access in SSBL

2020-08-16 Thread Chee Hong Ang
SPL already setup the Clock Manager with the handoff data from OCRAM. When the Clock Manager's driver get probed again in SSBL, it shall skip the handoff data access in OCRAM. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH v1 14/16] arm: socfpga: soc64: SSBL shall not setup stack on OCRAM

2020-08-16 Thread Chee Hong Ang
Since SSBL is running in DRAM, it shall setup the stack in DRAM instead of OCRAM which is occupied by SPL and handoff data. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/socfpga_soc64_common.h

[PATCH v1 12/16] arm: socfpga: soc64: Add ATF support for FPGA reconfig driver

2020-08-16 Thread Chee Hong Ang
In non-secure mode (EL2), FPGA reconfiguration driver calls the SMC/PSCI services provided by ATF to configure the FPGA. Signed-off-by: Chee Hong Ang --- drivers/fpga/intel_sdm_mb.c | 139 1 file changed, 139 insertions(+) diff --git

[PATCH v1 01/16] arm: socfpga: soc64: Remove CONFIG_OF_EMBED

2020-08-16 Thread Chee Hong Ang
CONFIG_OF_EMBED was primarily enabled to support the S10/Agilex spl hex file requirements. Since this option now produces a warning during build, and the spl hex can be created using alternate methods, CONFIG_OF_EMBED is no longer needed. Signed-off-by: Chee Hong Ang ---

[PATCH v1 00/16] Enable ARM Trusted Firmware for U-Boot

2020-08-16 Thread Chee Hong Ang
Repost of the following patchs: https://lists.denx.de/pipermail/u-boot/2020-March/402705.html New U-boot flow with ARM Trusted Firmware (ATF) support: SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) SPL loads the u-boot.itb which consist of: 1) u-boot-nodtb.bin (U-Boot Proper

[PATCH v1 02/16] arm: socfpga: soc64: Add FIT generator script for pack itb with ATF

2020-08-16 Thread Chee Hong Ang
Generate a FIT image for Intel SOCFPGA (64bits) which include U-boot proper, ATF and DTB for U-boot proper. Signed-off-by: Chee Hong Ang --- board/altera/soc64/fit_spl_atf.sh | 91 +++ 1 file changed, 91 insertions(+) create mode 100755

[PATCH v1 09/16] mmc: dwmmc: socfpga: Add ATF support for MMC driver

2020-08-16 Thread Chee Hong Ang
In non-secure mode (EL2), MMC driver calls the SMC/PSCI services provided by ATF to set SDMMC's DRVSEL and SMPLSEL. Signed-off-by: Chee Hong Ang --- drivers/mmc/socfpga_dw_mmc.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mmc/socfpga_dw_mmc.c

[PATCH v1 05/16] arm: socfpga: soc64: Override 'lowlevel_init' to support ATF

2020-08-16 Thread Chee Hong Ang
Override 'lowlevel_init' to make sure secondary CPUs trapped in ATF instead of SPL. After ATF is initialized, it will signal the secondary CPUs to jump from SPL to ATF waiting to be 'activated' by Linux OS via PSCI call. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Makefile

[PATCH v1 16/16] configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF support

2020-08-16 Thread Chee Hong Ang
Booting Agilex and Stratix 10 with ATF support. SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) U-Boot proper now starts at 0x20 (CONFIG_SYS_TEXT_BASE). ATF will occupy the

[PATCH 2/3] firmware: ti_sci: Drop unused structure ti_sci_rm_type_map

2020-08-16 Thread Lokesh Vutla
struct ti_sci_rm_type_map is no longer used. Drop its definition and its declarations. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 52 +++ 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/drivers/firmware/ti_sci.c

[PATCH 0/3] arm: k3: Update to SYFW ABI 3.0 changes

2020-08-16 Thread Lokesh Vutla
Update the ti_sci driver and am65x dts to support SYSFW ABI 3.0. This series is meant to be merged only after sysfw releases 2020.02 binaries. Corresponding kernel changes are applied to linux-next[0] [0] https://patchwork.kernel.org/cover/11703313/ Lokesh Vutla (3): firmware: ti_sci: drop

[PATCH 1/3] firmware: ti_sci: drop the device ids to resource id translation table

2020-08-16 Thread Lokesh Vutla
With ABI 3.0, sysfw deprecated special resource types used for AM65x SoC. Instead started using device id as resource type similar to the convention used in J721E SOC. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-)

[PATCH 3/3] arm: dts: k3-am65: Update the RM resource types

2020-08-16 Thread Lokesh Vutla
Update the ringacc and udma dt nodes to use the latest RM resource types similar to the ones used in k3-j721e dt nodes. Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-am65-mcu.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/k3-am65-mcu.dtsi

RE: [PATCH v1 14/15] x86: intel: slimbootloader: Remove dead code

2020-08-16 Thread Park, Aiden
> -Original Message- > From: Andy Shevchenko > Sent: Thursday, August 6, 2020 7:55 AM > To: Simon Glass ; Bin Meng ; u- > b...@lists.denx.de > Cc: Andy Shevchenko ; Park, Aiden > > Subject: [PATCH v1 14/15] x86: intel: slimbootloader: Remove dead code > > start.S does nothing and can be

RE: [PATCH v1 01/15] x86: Introduce USE_EARLY_BOARD_INIT option

2020-08-16 Thread Park, Aiden
> -Original Message- > From: Andy Shevchenko > Sent: Thursday, August 6, 2020 7:54 AM > To: Simon Glass ; Bin Meng ; u- > b...@lists.denx.de > Cc: Andy Shevchenko ; Park, Aiden > ; Stefan Roese ; George McCollister > > Subject: [PATCH v1 01/15] x86: Introduce USE_EARLY_BOARD_INIT option

[PATCH v1 07/16] arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)

2020-08-16 Thread Chee Hong Ang
invoke_smc() allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. smc_send_mailbox() is a send mailbox command helper function

[PATCH v1 08/16] arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP services

2020-08-16 Thread Chee Hong Ang
This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers access, 2nd phase

[PATCH v1 06/16] arm: socfpga: Disable "spin-table" method for booting Linux

2020-08-16 Thread Chee Hong Ang
Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH v1 10/16] net: designware: socfpga: Add ATF support for MAC driver

2020-08-16 Thread Chee Hong Ang
In non-secure mode (EL2), MAC driver calls the SMC/PSCI services provided by ATF to setup the PHY interface. Signed-off-by: Chee Hong Ang --- drivers/net/dwmac_socfpga.c | 43 + 1 file changed, 39 insertions(+), 4 deletions(-) diff --git

RE: [PATCH v1 00/16] Enable ARM Trusted Firmware for U-Boot

2020-08-16 Thread Ang, Chee Hong
Chee Hong Ang mailto:chee.hong@intel.com>> schrieb am Mo., 17. Aug. 2020, 06:34: Repost of the following patchs: https://lists.denx.de/pipermail/u-boot/2020-March/402705.html > If this is a repost, please send as such instead of sending as a new series > v1. Sorry, please ignore the

Re: [PATCH v1 00/16] Enable ARM Trusted Firmware for U-Boot

2020-08-16 Thread Simon Goldschmidt
Chee Hong Ang schrieb am Mo., 17. Aug. 2020, 06:34: > Repost of the following patchs: > https://lists.denx.de/pipermail/u-boot/2020-March/402705.html If this is a repost, please send as such instead of sending as a new series v1. Regards, Simon > > New U-boot flow with ARM Trusted Firmware

Re: [PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-08-16 Thread Heiko Schocher
Hello Mario, Am 27.05.2020 um 14:43 schrieb Heiko Schocher: This patch series adds DM ethernet support for mpc83xx based keymile boards. Travis build: https://travis-ci.org/github/hsdenx/u-boot-test/builds/691607214 Changes in v2: - new in v2 - remove RFC - fixed Codingstyle errors,

Re: [PATCH] ARM: bootm: take into account gd->ram_top

2020-08-16 Thread Baruch Siach
Hi Patrick, all, On Thu, Feb 13 2020, Patrick Delaunay wrote: > From: Patrice Chotard > > If gd->ram_top has been tuned using board_get_usable_ram_top(), > it must be taken into account when reserving arch lmb. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick DELAUNAY > Signed-off-by:

Re: [PATCH 1/1] riscv: riscv_get_time() implementation for SMODE

2020-08-16 Thread Heinrich Schuchardt
On 8/15/20 5:55 PM, Anup Patel wrote: > On Sat, Aug 15, 2020 at 8:37 PM Heinrich Schuchardt > wrote: >> >> Am 15. August 2020 16:06:41 MESZ schrieb Anup Patel : >>> On Sat, Aug 15, 2020 at 12:57 AM Heinrich Schuchardt >>> wrote: On 8/14/20 8:38 PM, Anup Patel wrote: > On Fri, Aug

[PATCH v1 04/10] ahci: mediatek: add ahci driver

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich add AHCI driver ported from linux https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/ata/ahci_mtk.c Signed-off-by: Frank Wunderlich --- drivers/ata/Kconfig| 8 +++ drivers/ata/Makefile | 1 + drivers/ata/mtk_ahci.c | 130

[PATCH v1 03/10] reset: add basic reset controller for pciesys

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich bind reset controller to pciesys Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index

[PATCH v1 02/10] phy: mtk-tphy: add PHY_TYPE_SATA

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich add support for PHY_TYPE_SATA to Mediateks TPHY driver Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 105 + 1 file changed, 105 insertions(+) diff --git a/drivers/phy/phy-mtk-tphy.c

[PATCH v1 09/10] arm: dts: mt7622: add USB nodes

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich Add DTS nodes for MT7622/BPI-R64 Signed-off-by: Frank Wunderlich --- v1->v2: - add USB nodes to MT7622 reference board --- arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 8 +++ arch/arm/dts/mt7622-rfb.dts | 8 +++ arch/arm/dts/mt7622.dtsi |

[PATCH v1 10/10] arm: dts: mt7623: add USB nodes

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich This adds USB nodes for MT7623/BPI-R2 Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7623.dtsi | 46 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16 + 2 files changed, 62 insertions(+) diff --git

[PATCH v1 07/10] arm: dts: add dts for Bananapi-R64

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich add a separate DTS for BananaPi R64 because it has 1GB RAM and SATA-Support Signed-off-by: Frank Wunderlich --- v1->v2: - changed name --- arch/arm/dts/Makefile| 1 + arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 206 +++ 2 files

[PATCH v1 08/10] dts: r64: add sata- and asm_sel nodes

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich asm_sel is for switching between sata and pcie mode on r64 there is GPIO90 connected to ASM1480 which switches RX/TX pairs to PCIe/SATA connector output-low means sata-controller is active with 2020-10 now reg is also needed for the phy itself Signed-off-by: Frank

Aw: [PATCH 11/11] usb: xhci: convet to readx_poll_sleep_timeout()

2020-08-16 Thread Frank Wunderlich
> Gesendet: Donnerstag, 13. August 2020 um 05:25 Uhr > Von: "Chunfeng Yun" > Betreff: [PATCH 11/11] usb: xhci: convet to readx_poll_sleep_timeout() just a small typo "convet" maybe it can be fixed while applying? regards Frank

Re: [RESEND PATCH v2 09/18] lib: sscanf: add sscanf implementation

2020-08-16 Thread Andy Shevchenko
On Thu, Aug 6, 2020 at 12:45 PM Anastasiia Lukianenko wrote: > +++ b/lib/sscanf.c > @@ -0,0 +1,823 @@ > +// SPDX-License-Identifier: BSD-3-Clause Hmm... Tom, can you point out to the possibility of using this code in U-Boot? Can we call it from the GPL only code or can it call GPL code (is

[PATCH v1 01/10] arm: dts: mt7622: add SATA reset constants

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich add reset constants used for SATA to header file Signed-off-by: Frank Wunderlich --- include/dt-bindings/reset/mt7629-reset.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/mt7629-reset.h

[PATCH v1 05/10] clk: mt7622: add needed clocks for ssusb-node

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich MT7622 needs additional clock definitions to work properly Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7622.c

[PATCH v1 06/10] arm: dts: add watchdog-reboot node for mt7622

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich adding a wdt-reboot node to mt7622 dtsi Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7622.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/mt7622.dtsi b/arch/arm/dts/mt7622.dtsi index d0783bc9ff..fec071643e 100644 ---

[PATCH v1 00/10] Add MTK AHCI driver, BPI-R64 dts and USB-Nodes for mt7622/mt7623

2020-08-16 Thread Frank Wunderlich
From: Frank Wunderlich Hi, i rebased (2020-10-rc2) my latest patches together to make it easier to maintain (dts depencies) Add DTS for BananaPi-R64: https://patchwork.ozlabs.org/project/uboot/list/?series=194922 add SATA/AHCI support for BananaPi R64 (v3)

[PATCH 1/1] doc: update UEFI documentation

2020-08-16 Thread Heinrich Schuchardt
* UEFI variables can be persisted * describe that the sequence of files loaded before bootefi matters Signed-off-by: Heinrich Schuchardt --- doc/uefi/uefi.rst | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst index

[Xilinx Zynq]: spurious UART receive on startup

2020-08-16 Thread Norbert Braun
Hi, I am running into a problem with U-Boot v2020.07 on Xilinx Zynq (Zedboard). If I build U-Boot with the default config (xilinx_zynq_virt_defconfig, DEVICE_TREE=zynq-zed), autoboot will abort, even if no key is pressed. This happens regardless of whether the USB UART is even connected to a PC.

Re: [PATCH 1/1] riscv: riscv_get_time() implementation for SMODE

2020-08-16 Thread Anup Patel
On Sun, Aug 16, 2020 at 3:49 PM Heinrich Schuchardt wrote: > > On 8/15/20 5:55 PM, Anup Patel wrote: > > On Sat, Aug 15, 2020 at 8:37 PM Heinrich Schuchardt > > wrote: > >> > >> Am 15. August 2020 16:06:41 MESZ schrieb Anup Patel : > >>> On Sat, Aug 15, 2020 at 12:57 AM Heinrich Schuchardt >

RE: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-16 Thread Tan, Ley Foon
> -Original Message- > From: Westergreen, Dalon > Sent: Saturday, August 15, 2020 3:24 AM > To: u-boot@lists.denx.de; Ang, Chee Hong > Cc: See, Chin Liang ; Tan, Ley Foon > ; Chee, Tien Fong ; > Lim, Elly Siew Chin > Subject: Re: [PATCH v1] Makefile: socfpga: Generate

Re: [PATCH v2 3/3] doc: verified-boot: add required-mode information

2020-08-16 Thread Thirupathaiah Annapureddy
On 7/28/2020 11:58 AM, Simon Glass wrote: > Hi Thirupathaiah, > > On Fri, 17 Jul 2020 at 21:20, Thirupathaiah Annapureddy > wrote: >> >> Signed-off-by: Thirupathaiah Annapureddy >> --- >> >> Changes in v2: >> - New >> >> doc/uImage.FIT/signature.txt | 14 ++ >> 1 file changed,

Re: Aw: [PATCH 11/11] usb: xhci: convet to readx_poll_sleep_timeout()

2020-08-16 Thread Chunfeng Yun
On Sun, 2020-08-16 at 09:56 +0200, Frank Wunderlich wrote: > > Gesendet: Donnerstag, 13. August 2020 um 05:25 Uhr > > Von: "Chunfeng Yun" > > Betreff: [PATCH 11/11] usb: xhci: convet to readx_poll_sleep_timeout() > > just a small typo "convet" Will fix it, thanks > > maybe it can be fixed

Re: Aw: [PATCH 03/11] usb: xhci: add quirks flag to support MediaTek xHCI 0.96

2020-08-16 Thread Chunfeng Yun
On Thu, 2020-08-13 at 12:35 +0200, Frank Wunderlich wrote: > > Gesendet: Donnerstag, 13. August 2020 um 05:25 Uhr > > Von: "Chunfeng Yun" > > Betreff: [PATCH 03/11] usb: xhci: add quirks flag to support MediaTek xHCI > > 0.96 > > > > There some vendor quirks for MTK xHCI 0.96 host controller: >

Re: [PATCH v1 10/10] arm: dts: mt7623: add USB nodes

2020-08-16 Thread Chunfeng Yun
On Sun, 2020-08-16 at 10:24 +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > This adds USB nodes for MT7623/BPI-R2 > > Signed-off-by: Frank Wunderlich > --- > arch/arm/dts/mt7623.dtsi | 46 > arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16

Re: [PATCH v1 09/10] arm: dts: mt7622: add USB nodes

2020-08-16 Thread Chunfeng Yun
On Sun, 2020-08-16 at 10:24 +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add DTS nodes for MT7622/BPI-R64 > > Signed-off-by: Frank Wunderlich > --- > v1->v2: > - add USB nodes to MT7622 reference board > --- > arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 8 +++ >

Re: [PATCH v1 10/10] arm: dts: mt7623: add USB nodes

2020-08-16 Thread Chunfeng Yun
On Sun, 2020-08-16 at 10:24 +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > This adds USB nodes for MT7623/BPI-R2 > > Signed-off-by: Frank Wunderlich > --- > arch/arm/dts/mt7623.dtsi | 46 > arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16

[PATCH 1/1] cmd: provide command sbi

2020-08-16 Thread Heinrich Schuchardt
Provide a command to display information about the SBI implementation. The output might look like: => sbi SBI 0.2 OpenSBI Extensions: sbi_set_timer sbi_console_putchar sbi_console_getchar sbi_clear_ipi sbi_send_ipi sbi_remote_fence_i sbi_remote_sfence_vma

[PATCH] net: smc911x: Automatically Update ethaddr with MAC

2020-08-16 Thread Adam Ford
The ethernet controller can read the MAC from EEPROM and display it, but if ethaddr is not set, the ethernet is still unavailable. This patch checks will automatically set the MAC address if it has not already been set. Signed-off-by: Adam Ford diff --git a/drivers/net/smc911x.c