[PATCH] mmc: meson_gx_mmc: control ddr_mode bit

2020-11-09 Thread Jaehoon Chung
EMMC_CFG register has a cfg_ddr bit(BIT[2]). It needs to set when mmc is running to ddr mode. Otherwise, its bit should be cleared. CFG_DDR[2] - 1: DDR mode, 0: SDR mode Signed-off-by: Jaehoon Chung --- arch/arm/include/asm/arch-meson/sd_emmc.h | 1 + drivers/mmc/meson_gx_mmc.c|

[PATCH 1/2 v3] tpm: Add some headers from the spec

2020-11-09 Thread Ilias Apalodimas
A following patch introduces EFI_TCG2_PROTOCOL. Add the required TPMv2 headers to support it. Signed-off-by: Ilias Apalodimas --- changes since v2: - Added description and pointers to TCG specs - updated copyright info include/tpm-v2.h | 77 1

[PATCH 2/2 v3] efi: Add basic EFI_TCG2_PROTOCOL support

2020-11-09 Thread Ilias Apalodimas
Since U-boot EFI implementation is getting richer it makes sense to add support for EFI_TCG2_PROTOCOL taking advantage of any hardware TPM available on the device. This is the initial implementation of the protocol which only adds support for GetCapability(). It's limited in the newer and safer

Re: [PATCH] usb: xhci: fix event trb handling missed

2020-11-09 Thread Bin Meng
Hi Ran, On Tue, Nov 10, 2020 at 3:36 PM Ran Wang wrote: > > Hi Bin, > > On Tuesday, November 10, 2020 1:43 PM Bin Meng wrote: > > > > Hi Ran, > > > > On Tue, Nov 10, 2020 at 1:30 PM Bin Meng wrote: > > > > > > Hi Ran, > > > > > > On Tue, Sep 22, 2020 at 1:02 PM Ran Wang wrote: > > > > > > > >

Re: [RESEND,PATCH v2 1/1] riscv: Add timer_get_us() for tracing

2020-11-09 Thread Rick Chen
Hi Pragnesh > Hi Rick, > > >-Original Message- > >From: Rick Chen > >Sent: 09 November 2020 13:44 > >To: Pragnesh Patel > >Cc: U-Boot Mailing List ; Atish Patra > >; Bin Meng ; Paul Walmsley ( > >Sifive) ; Anup Patel ; Sagar > >Kadam ; Simon Glass ; Sean > >Anderson ;

Re: [PATCH] rockchip: rockpro64: fix boot from SPI flash on spi1

2020-11-09 Thread Kever Yang
On 2020/11/8 下午10:00, Hugh Cole-Baker wrote: Commit c4cea2bbf995 ("rockchip: Enable building a SPI ROM image on bob") added an alias spi1 referring to spi@ff1d, however there was already an alias spi0 referring to the same node in rockpro64's u-boot.dtsi, and having both aliases present

RE: [PATCH] usb: xhci: fix event trb handling missed

2020-11-09 Thread Ran Wang
Hi Bin, On Tuesday, November 10, 2020 1:43 PM Bin Meng wrote: > > Hi Ran, > > On Tue, Nov 10, 2020 at 1:30 PM Bin Meng wrote: > > > > Hi Ran, > > > > On Tue, Sep 22, 2020 at 1:02 PM Ran Wang wrote: > > > > > > In functiion xhci_bulk_tx(), when buffer cross 64KB boundary, it > > > will > > > >

Re: [PATCH] rockchip: Move Bob specific bits to it's specific u-boot.dtsi

2020-11-09 Thread Kever Yang
Hi Peter, On 2020/11/9 上午7:02, Peter Robinson wrote: Move the bits that are device specific to the -u-boot.dtsi as the bits may be different on other devices and hence breaks SPI on those devices such as the Pinebook Pro. Signed-off-by: Peter Robinson Fixes: c4cea2bbf995 ("rockchip: Enable

[v1 5/5] configs: socfpga: Add defconfig for Agilex and Diamond Mesa with VAB support

2020-11-09 Thread Siew Chin Lim
Booting Agilex and Diamond Mesa with Vendor Authorized Boot. Signed-off-by: Siew Chin Lim --- configs/{socfpga_agilex_atf_defconfig => socfpga_agilex_vab_defconfig} | 3 ++- configs/{socfpga_dm_atf_defconfig => socfpga_dm_vab_defconfig} | 3 ++- 2 files changed, 4 insertions(+), 2

[v1 4/5] configs: socfpga: soc64: Remove 'run linux_qspi_enable' from bootcommand

2020-11-09 Thread Siew Chin Lim
Remove 'run linux_qspi_enable' from bootcommand. When using FIT for OS boot, 'run linux_qspi_enable' will be called 'board_prep_linux' function. Signed-off-by: Siew Chin Lim --- include/configs/socfpga_soc64_common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[v1 3/5] arm: socfpga: dts: soc64: Update filename in binman node of FIT image with VAB support

2020-11-09 Thread Siew Chin Lim
FIT image of Vendor Authentication Coot (VAB) contains signed images. Signed-off-by: Siew Chin Lim --- arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi

[v1 1/5] arm: socfpga: soc64: Support Vendor Authorized Boot (VAB)

2020-11-09 Thread Siew Chin Lim
Vendor Authorized Boot is a security feature for authenticating the images such as U-Boot, ARM trusted Firmware, Linux kernel, device tree blob and etc loaded from FIT. After those images are loaded from FIT, the VAB certificate and signature block appended at the end of each image are sent to

[v1 2/5] arm: socfpga: cmd: Support 'vab' command

2020-11-09 Thread Siew Chin Lim
Support 'vab' command to perform vendor authentication. Command format: vab addr len Authorize 'len' bytes starting at 'addr' via vendor public key Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Makefile | 2 ++ arch/arm/mach-socfpga/vab.c| 37 +

[v1 0/5] Add Vendor Authorized Boot (VAB) support

2020-11-09 Thread Siew Chin Lim
This patchset add Vendor Authorized Boot (VAB) support for Intel Agilex and Diamond Mesa SoC devices. Vendor Authorized Boot is a security feature for authenticating the images such as U-Boot, ARM trusted Firmware, Linux kernel, device tree blob and etc loaded from FIT. After those images are

[RESEND v2 20/22] arm: dts: dm: Add base dtsi and devkit dts for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add device tree for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Tien Fong Chee --- arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_dm-u-boot.dtsi | 102 + arch/arm/dts/socfpga_dm.dtsi | 640 ++

[RESEND v2 22/22] arm: socfpga: dm: Enable Intel Diamond Mesa build

2020-11-09 Thread Siew Chin Lim
Add defconfig for Diamond Mesa to support both legacy boot flow and ATF boot flow. Legacy boot: SPL -> U-Boot proper -> OS (Linux) ATF boot flow: SPL -> ATF(BL31) -> U-Boot proper -> OS (Linux) Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Kconfig| 19 ++

[RESEND v2 05/22] arm: socfpga: Changed wrap_pll_config_s10.c to wrap_pll_config_soc64.c

2020-11-09 Thread Siew Chin Lim
Rename to common file name to used by all SOC64 devices. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Makefile| 4 ++-- .../mach-socfpga/{wrap_pll_config_s10.c => wrap_pll_config_soc64.c} | 2 +- 2 files changed, 3 insertions(+), 3

[RESEND v2 21/22] configs: dm: Add Diamond Mesa CONFIGs

2020-11-09 Thread Siew Chin Lim
Add CONFIGs for Diamond Mesa. Signed-off-by: Siew Chin Lim --- include/configs/socfpga_dm_socdk.h | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 include/configs/socfpga_dm_socdk.h diff --git a/include/configs/socfpga_dm_socdk.h

[RESEND v2 16/22] ddr: altera: dm: Add SDRAM driver for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
The DDR subsystem in Diamond Mesa is consisted of controller, PHY, memory reset manager and memory clock manager. Configuration settings of controller, PHY and memory reset manager is come from DDR handoff data in bitstream, which contain the register base addresses and user settings from

[RESEND v2 17/22] arm: socfpga: Move Stratix10 and Agilex SPL common code

2020-11-09 Thread Siew Chin Lim
Move Stratix10 and Agilex SPL common code to spl_soc64.c Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Makefile | 2 ++ arch/arm/mach-socfpga/spl_agilex.c | 16 arch/arm/mach-socfpga/spl_s10.c| 17 - arch/arm/mach-socfpga/spl_soc64.c | 26

[RESEND v2 18/22] arm: socfpga: dm: Add SPL for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/spl_dm.c | 93 ++ 1 file changed, 93 insertions(+) create mode 100644 arch/arm/mach-socfpga/spl_dm.c diff --git a/arch/arm/mach-socfpga/spl_dm.c b/arch/arm/mach-socfpga/spl_dm.c new file mode 100644

[RESEND v2 15/22] arm: socfpga: dm: Add clock manager for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add clock manager for Diamond Mesa. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/clock_manager_dm.c | 79 ++ arch/arm/mach-socfpga/include/mach/clock_manager.h | 2 + .../mach-socfpga/include/mach/clock_manager_dm.h | 14 3 files changed, 95

[RESEND v2 19/22] board: intel: dm: Add socdk board support for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add Diamond Mesa SoC devkit board. Signed-off-by: Siew Chin Lim --- board/intel/dm-socdk/MAINTAINERS | 7 +++ board/intel/dm-socdk/Makefile| 7 +++ board/intel/dm-socdk/socfpga.c | 7 +++ 3 files changed, 21 insertions(+) create mode 100644 board/intel/dm-socdk/MAINTAINERS

[RESEND v2 13/22] arm: socfpga: Move Stratix10 and Agilex clock manager common code

2020-11-09 Thread Siew Chin Lim
Move duplicated function cm_get_qspi_controller_clk_hz to clock_manager.c. Signed-off-by: Siew Chin Lim Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/clock_manager.c | 10 ++ arch/arm/mach-socfpga/clock_manager_agilex.c | 6 --

[RESEND v2 09/22] arm: socfpga: Add handoff data support for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Diamond Mesa support both HPS handoff data and DDR handoff data. HPS handoff data support re-use Straix10 and Agilex code. DDR handoff data is newly introduced in Diamond Mesa. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 19 ++

[RESEND v2 14/22] arm: socfpga: Changed to store QSPI reference clock in kHz

2020-11-09 Thread Siew Chin Lim
Changed to store QSPI reference clock in kHz instead of Hz in boot scratch cold0 register for Stratix10 and Agilex. This patch is in preparation for Diamond Mesa SDRAM driver support. Reserved 4 bits for Diamond Mesa SDRAM driver, and there will be 28 bits to store QSPI reference clock. Due to

[RESEND v2 12/22] drivers: clk: dm: Add memory clock driver for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add memory clock manager driver for Diamond Mesa. Provides clock initialization and enable functions. Signed-off-by: Siew Chin Lim --- drivers/clk/altera/Makefile | 2 +- drivers/clk/altera/clk-mem-dm.c | 135 drivers/clk/altera/clk-mem-dm.h | 80

[RESEND v2 10/22] drivers: clk: dm: Add clock driver for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add clock manager driver for Diamond Mesa. Provides clock initialization and get_rate functions. Signed-off-by: Siew Chin Lim --- drivers/clk/altera/Makefile | 3 +- drivers/clk/altera/clk-dm.c | 504 +++ drivers/clk/altera/clk-dm.h |

[RESEND v2 08/22] arm: socfpga: Restructure Stratix10 and Agilex handoff code

2020-11-09 Thread Siew Chin Lim
Restructure Stratix10 and Agilex handoff code to used by all SOC64 devices, in preparation to support handoff for Diamond Mesa. Remove wrap_pinmux_config_s10.c. Add wrap_handoff_soc64.c which contains the generic function to parse the handoff data. Update system_manager_soc64.c to use generic

[RESEND v2 07/22] arm: socfpga: Rearrange sequence of macros in handoff_soc64.h

2020-11-09 Thread Siew Chin Lim
No functionality change. In preparation for Stratix10 and Agilex handoff function restructuring. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 46 +++--- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git

[RESEND v2 03/22] arm: socfpga: dm: Add firewall support for Agilex and Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Disable the MPFE firewall for SMMU and HMC adapter for Agilex and Diamond Mesa. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/firewall.c | 10 ++ arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 1 + arch/arm/mach-socfpga/include/mach/firewall.h | 6

[RESEND v2 11/22] arm: socfpga: dm: Get clock manager base address for Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Add Diamond Mesa clock manager to socfpga_get_managers_addr function. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index ac2b891fad..b63eec779a 100644 ---

[RESEND v2 04/22] arm: socfpga: Rename Stratix10 and Agilex handoff common macros

2020-11-09 Thread Siew Chin Lim
Rename handoff_s10.h to handoff_soc64.h. Changed macros prefix from S10_HANDOFF to SOC64_HANDOFF. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/clock_manager_s10.c | 2 +- arch/arm/mach-socfpga/include/mach/handoff_s10.h | 39 --

[RESEND v2 02/22] arm: socfpga: dm: Add base address for Intel Diamond Mesa

2020-11-09 Thread Siew Chin Lim
Reuse base_addr_s10.h for Diamond Mesa, the address is the same as Agilex. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_s10.h

[RESEND v2 01/22] arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64

2020-11-09 Thread Siew Chin Lim
Create common macro TARGET_SOCFPGA_SOC64 for Stratix10 and Agilex. Signed-off-by: Siew Chin Lim --- arch/arm/Kconfig| 6 +++--- arch/arm/mach-socfpga/Kconfig | 5 + arch/arm/mach-socfpga/include/mach/reset_manager.h | 3 +--

[RESEND v2 06/22] arm: socfpga: Changed system_manager_s10.c to system_manager_soc64.c

2020-11-09 Thread Siew Chin Lim
Rename to common file name to used by all SOC64 devices. No functionality change. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Makefile | 5 +++-- .../mach-socfpga/{system_manager_s10.c => system_manager_soc64.c}| 0 2 files changed, 3

[RESEND v2 00/22] Add Intel Diamond Mesa SoC support

2020-11-09 Thread Siew Chin Lim
This is the 2nd version of patchset add Intel Diamond Mesa SoC[1] support. Intel Diamond Mesa SoC is with a 64-bit quad core ARM Cortex-A53 MPCore hard processor system (HPS). New IPs in Diamond Mesa are clock manager and DDR subsystem, other IPs have minor changes compared to Agilex. Patch

RE: [v2, 0/2] mmc: fsl_esdhc: fix up for eMMC HS400

2020-11-09 Thread Y.b. Lu
Hi Peng, Any comments on the patches. Thanks. Best regards, Yangbo Lu > -Original Message- > From: Yangbo Lu > Sent: Tuesday, October 20, 2020 11:05 AM > To: u-boot@lists.denx.de; Peng Fan ; 'Jaehoon Chung' > > Cc: Y.b. Lu > Subject: [v2, 0/2] mmc: fsl_esdhc: fix up for eMMC HS400 >

RE: [v2 00/22] Add Intel Diamond Mesa SoC support

2020-11-09 Thread Lim, Elly Siew Chin
Hi All, Kindly ignore "[v2,00/22] Add Intel Diamond Mesa SoC support" series of patches. Sorry that I make some mistake when send for review. I will resend this series. I sincerely apologize for the inconvenience caused Thanks, Siew Chin > -Original Message- > From: Lim, Elly Siew

Re: [v2 00/22] Add Intel Diamond Mesa SoC support

2020-11-09 Thread Bin Meng
Hi Siew, On Tue, Nov 10, 2020 at 1:56 PM Siew Chin Lim wrote: > > This is the 2nd version of patchset add Intel Diamond Mesa SoC[1] support. > > Intel Diamond Mesa SoC is with a 64-bit quad core ARM Cortex-A53 MPCore > hard processor system (HPS). New IPs in Diamond Mesa are clock manager > and

[v2 20/22] arm: socfpga: dts: soc64: Add binman node of FIT image with ATF support

2020-11-09 Thread Siew Chin Lim
Add binman node to device tree to generate the FIT image for u-boot (u-boot.itb) and OS kernel (kernel.itb). u-boot.itb contains arm trusted firmware (ATF), u-boot proper and u-boot device tree for ATF u-boot flow. kernel.itb contains Linux Image and Linux device tree. Signed-off-by: Siew Chin

[v2 22/22] configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF support

2020-11-09 Thread Siew Chin Lim
From: 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).

[v2 21/22] arm: socfpga: soc64: Enable FIT image generation using binman

2020-11-09 Thread Siew Chin Lim
Add new build target "fit-itb" for FIT image generation. In preparation to support Vendor Authorized Boot (VAB) for Intel SOC64 device in near future. With VAB, u-boot proper, dtb and arm trusted firmware need to be signed before FIT image generation. To align user experience for ATF boot with

[v2 17/22] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 19/22] arm: socfpga: soc64: Skip handoff data access in SSBL

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 18/22] arm: socfpga: soc64: SSBL shall not setup stack on OCRAM

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 16/22] arm: socfpga: soc64: Add ATF support for FPGA reconfig driver

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 13/22] mmc: dwmmc: socfpga: Add ATF support for MMC driver

2020-11-09 Thread Siew Chin Lim
From: 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 Signed-off-by: Siew Chin Lim --- drivers/mmc/socfpga_dw_mmc.c | 17 + 1 file changed, 17 insertions(+) diff

[v2 15/22] arm: socfpga: soc64: Add ATF support for Reset Manager driver

2020-11-09 Thread Siew Chin Lim
From: 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 Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/reset_manager_s10.c | 13 + 1 file changed, 13

[v2 12/22] arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP services

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 14/22] net: designware: socfpga: Add ATF support for MAC driver

2020-11-09 Thread Siew Chin Lim
From: 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 Signed-off-by: Siew Chin Lim --- drivers/net/dwmac_socfpga.c | 30 ++ 1 file changed, 26 insertions(+), 4

[v2 11/22] arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 09/22] arm: socfpga: soc64: Override 'lowlevel_init' to support ATF

2020-11-09 Thread Siew Chin Lim
From: 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 ---

[v2 08/22] arm: socfpga: soc64: Load FIT image with ATF support

2020-11-09 Thread Siew Chin Lim
From: 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. For OS, u-boot now loads FIT images (kernel.itb) which includes Linux Image and Linux's DTB. Signed-off-by: Chee Hong Ang

[v2 10/22] arm: socfpga: Disable "spin-table" method for booting Linux

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 07/22] arm: socfpga: Add function for checking description from FIT image

2020-11-09 Thread Siew Chin Lim
From: 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

[v2 05/22] smbios: Drop the unused Kconfig options

2020-11-09 Thread Siew Chin Lim
From: Simon Glass Now that we can use devicetree to specify this information, drop the old CONFIG options. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- configs/clearfog_gt_8k_defconfig| 2 -- configs/mt7622_rfb_defconfig| 1 - configs/mvebu_db_armada8k_defconfig | 2 --

[v2 04/22] x86: Provide default SMBIOS manufacturer/product

2020-11-09 Thread Siew Chin Lim
From: Simon Glass Add a file containing defaults for these, using the existing CONFIG options. This file must be included with #include since it needs to be passed through the C preprocessor. Enable the driver for all x86 boards that generate SMBIOS tables. Disable it for coral since it has its

[v2 03/22] x86: galileo: Use devicetree for SMBIOS settings

2020-11-09 Thread Siew Chin Lim
From: Simon Glass Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/dts/galileo.dts| 28 board/intel/galileo/Kconfig | 11 --- 2 files changed,

[v2 00/22] Add Intel Diamond Mesa SoC support

2020-11-09 Thread Siew Chin Lim
This is the 2nd version of patchset add Intel Diamond Mesa SoC[1] support. Intel Diamond Mesa SoC is with a 64-bit quad core ARM Cortex-A53 MPCore hard processor system (HPS). New IPs in Diamond Mesa are clock manager and DDR subsystem, other IPs have minor changes compared to Agilex. Patch

[v2 02/22] arm64: mvebu: Use devicetree for SMBIOS settings on uDPU

2020-11-09 Thread Siew Chin Lim
From: Simon Glass Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/arm/dts/armada-3720-uDPU-u-boot.dtsi | 20 configs/uDPU_defconfig| 3 ++- 2

[v2 06/22] Makefile: Fix calling make with V=1

2020-11-09 Thread Siew Chin Lim
From: Pali Rohár Calling 'make V=1 all' on Ubuntu 18.04 with gcc version 9.2.1 and GNU Make version 4.1 fails on error: scripts/Kbuild.include:220: *** Recursive variable 'echo-cmd' references itself (eventually). Stop. As a workaround expand 'echo-cmd' variable via 'call' construction

[v2 01/22] odroid-c2: Use devicetree for SMBIOS settings

2020-11-09 Thread Siew Chin Lim
From: Simon Glass Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi | 23 +++ configs/odroid-c2_defconfig | 4

Re: [PATCH] usb: xhci: fix event trb handling missed

2020-11-09 Thread Bin Meng
Hi Ran, On Tue, Nov 10, 2020 at 1:30 PM Bin Meng wrote: > > Hi Ran, > > On Tue, Sep 22, 2020 at 1:02 PM Ran Wang wrote: > > > > In functiion xhci_bulk_tx(), when buffer cross 64KB boundary, it will > > typo: function > > > send request in more than 1 Transfer TRB by chaining them, but then

Re: [PATCH] usb: xhci: fix event trb handling missed

2020-11-09 Thread Bin Meng
Hi Ran, On Tue, Sep 22, 2020 at 1:02 PM Ran Wang wrote: > > In functiion xhci_bulk_tx(), when buffer cross 64KB boundary, it will typo: function > send request in more than 1 Transfer TRB by chaining them, but then handle > only 1 event TRB to mark request completed. > > However, on Layerscape

[PATCH] rockchip: Enable BINMAN for boards enable SPL_OPTEE

2020-11-09 Thread Kever Yang
Rockchip has many 32bit SoCs and some of them are support SPL_OPTEE now, only boards with SPL_OPTEE support can fit BINMAN well, other boards will fail at initr_binman() in U-Boot proper after below patch, eg. rv1108 board. 83187546ae binman: Support multiple images in the library Fixes:

Please pull u-boot-x86

2020-11-09 Thread Bin Meng
Hi Tom, This PR includes the following x86 changes for v2021.01 release: - Avoid using hardcoded number of variable range MTRRs in mtrr_commit() - coral: Correct max98357 file - coral: Update smbios tables to latest definition Azure results: PASS

Re: [PATCH 1/3] x86: coral: Update smbios tables to latest definition

2020-11-09 Thread Bin Meng
On Tue, Nov 10, 2020 at 9:43 AM Bin Meng wrote: > > On Mon, Nov 9, 2020 at 10:12 PM Simon Glass wrote: > > > > The accepted binding uses multiple nodes, one for each table type. Update > > coral accordingly. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/dts/chromebook_coral.dts |

Re: [PATCH 1/3] x86: coral: Update smbios tables to latest definition

2020-11-09 Thread Bin Meng
On Mon, Nov 9, 2020 at 10:12 PM Simon Glass wrote: > > The accepted binding uses multiple nodes, one for each table type. Update > coral accordingly. > > Signed-off-by: Simon Glass > --- > > arch/x86/dts/chromebook_coral.dts | 27 +-- > 1 file changed, 21 insertions(+),

Re: [PATCH] x86: coral: Correct max98357 file

2020-11-09 Thread Bin Meng
On Tue, Nov 10, 2020 at 9:34 AM Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 9, 2020 at 9:41 PM Simon Glass wrote: > > > > This somehow ended up as an empty file. Fix it. > > > > Signed-off-by: Simon Glass > > --- > > > > .../max98357-render-2ch-48khz-24b.dat | Bin 0 -> 116 bytes

Re: [PATCH] x86: coral: Correct max98357 file

2020-11-09 Thread Bin Meng
Hi Simon, On Mon, Nov 9, 2020 at 9:41 PM Simon Glass wrote: > > This somehow ended up as an empty file. Fix it. > > Signed-off-by: Simon Glass > --- > > .../max98357-render-2ch-48khz-24b.dat | Bin 0 -> 116 bytes > 1 file changed, 0 insertions(+), 0 deletions(-) > Acked-by: Bin

Re: [PATCH] x86: Avoid using hardcoded number of variable range MTRRs in mtrr_commit()

2020-11-09 Thread Bin Meng
On Tue, Nov 10, 2020 at 12:05 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 9 Nov 2020 at 01:05, Bin Meng wrote: > > > > Since commit 29d2d64ed55f ("x86: Add support for more than 8 MTRRs"), > > the maximum number of variable range MTRRs was increased from 8 to 10, > > which caused a #GP

Re: [PATCH] x86: Avoid using hardcoded number of variable range MTRRs in mtrr_commit()

2020-11-09 Thread Bin Meng
Hi Simon, On Tue, Nov 10, 2020 at 12:05 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 9 Nov 2020 at 01:05, Bin Meng wrote: > > > > Since commit 29d2d64ed55f ("x86: Add support for more than 8 MTRRs"), > > the maximum number of variable range MTRRs was increased from 8 to 10, > > which caused a

Re: [PATCH] cros_ec: Support keyboard scanning with EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Alper Nebi Yasak
On 09/11/2020 22:37, Simon Glass wrote: > Hi Heinrich, > > On Mon, 9 Nov 2020 at 12:34, Heinrich Schuchardt wrote: >> >> On 10/30/20 6:25 PM, Alper Nebi Yasak wrote: >>> The cros_ec_keyb driver currently uses EC_CMD_MKBP_STATE to scan the >>> keyboard, but this host command was superseded by

Re: [PATCH v3] sunxi: a64: Add a defconfig for the PinePhone

2020-11-09 Thread André Przywara
On 03/11/2020 03:32, Samuel Holland wrote: > The PinePhone is a smartphone produced by Pine64, with an A64 SoC, > 2 or 3 GiB LPDDR3 RAM, 16 or 32 GiB eMMC, 720x1440 MIPI-DSI panel, > and Quectel EG25-G modem. > > There are two main board revisions: 1.1 for early adopters, and 1.2 > for mass

Re: [PATCH] mmc: meson_gx_mmc: change a clock phase to stable value

2020-11-09 Thread Jaehoon Chung
Dear Anand, On 11/10/20 4:02 AM, Anand Moon wrote: > Hi Neil, > > On Mon, 9 Nov 2020 at 19:56, Neil Armstrong wrote: >> >> On 09/11/2020 15:10, Mark Kettenis wrote: From: Neil Armstrong Date: Mon, 9 Nov 2020 14:37:09 +0100 Hi, On 09/11/2020 04:12, Jaehoon Chung

Re: Fail to reset on Odroid-C4

2020-11-09 Thread Jaehoon Chung
On 11/9/20 10:38 PM, Neil Armstrong wrote: > On 09/11/2020 09:37, Jaehoon Chung wrote: >> On 11/6/20 7:01 PM, Neil Armstrong wrote: >>> On 06/11/2020 10:59, Jaehoon Chung wrote: Hi, On 11/6/20 6:28 PM, Neil Armstrong wrote: > Hi, > > On 06/11/2020 03:10, Jaehoon Chung

[ANN] U-Boot v2021.01-rc2 released

2020-11-09 Thread Tom Rini
Hey all, It's regular release day and I'm back on schedule, so here's -rc2. There's a few small'ish things outstanding in my queue, and a queue of things building up for -next already. I'm going to try and make sure what I pull in, even when a clean-up, is as close as can be to the obviously

Re: [PATCH] net: ks8851: Implement EEPROM MAC address readout

2020-11-09 Thread Tom Rini
On Thu, Oct 08, 2020 at 03:14:17PM +0200, Marek Vasut wrote: > In case there is an EEPROM attached to the KS8851 MAC and the EEPROM > contains a valid MAC address, the MAC address is loaded into the NIC > registers on power on. Read the MAC address out of the NIC registers > and provide it to

Re: [PATCH] arm: actions: increase SYS_MALLOC_F_LEN

2020-11-09 Thread Tom Rini
On Mon, Nov 09, 2020 at 07:31:08PM +0530, Amit Singh Tomar wrote: > after commit 4ab3817ff16a ("clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag") > Cubieboard7 (based on actions S700 SoC) fails to boot. > > It is due to the fact that the default value of CONFIG_SYS_MALLOC_F_LEN > (0x400) > would

Re: Pull request for UEFI sub-system for efi-2021-01-rc2 (2)

2020-11-09 Thread Tom Rini
On Mon, Nov 09, 2020 at 07:54:38PM +0100, Heinrich Schuchardt wrote: > The following changes since commit 22ad69b7987eb4b10221330661db4427e40174fb: > > Merge tag 'dm-pull5nov20' of git://git.denx.de/u-boot-dm (2020-11-06 > 11:27:14 -0500) > > are available in the Git repository at: > >

Re: [PATCH] mmc: meson_gx_mmc: change a clock phase to stable value

2020-11-09 Thread Jaehoon Chung
On 11/9/20 11:23 PM, Neil Armstrong wrote: > On 09/11/2020 15:10, Mark Kettenis wrote: >>> From: Neil Armstrong >>> Date: Mon, 9 Nov 2020 14:37:09 +0100 >>> >>> Hi, >>> >>> On 09/11/2020 04:12, Jaehoon Chung wrote: Core clock phase value is changed from 180' to 270'. It's more stable

RE: [dwi2c PATCH v1] dwi2c add offsets to reads

2020-11-09 Thread Duffin, CooperX
-Original Message- From: Simon Glass Sent: Saturday, November 7, 2020 1:33 PM To: Duffin, CooperX Cc: U-Boot Mailing List ; uboot-snps-...@synopsys.com; Tom Rini ; Robert Beckett ; Heiko Schocher ; Wolgang Denk ; Ian Ray Subject: Re: [dwi2c PATCH v1] dwi2c add offsets to reads Hi

Re: [PATCH] mmc: meson_gx_mmc: change a clock phase to stable value

2020-11-09 Thread Jaehoon Chung
Hi, On 11/9/20 11:10 PM, Mark Kettenis wrote: >> From: Neil Armstrong >> Date: Mon, 9 Nov 2020 14:37:09 +0100 >> >> Hi, >> >> On 09/11/2020 04:12, Jaehoon Chung wrote: >>> Core clock phase value is changed from 180' to 270'. >>> It's more stable than before. >>> - Odroidn-N2/C4 : Working fine

Re: [PATCH] mmc: meson_gx_mmc: change a clock phase to stable value

2020-11-09 Thread Jaehoon Chung
On 11/9/20 10:37 PM, Neil Armstrong wrote: > Hi, > > On 09/11/2020 04:12, Jaehoon Chung wrote: >> Core clock phase value is changed from 180' to 270'. >> It's more stable than before. >> - Odroidn-N2/C4 : Working fine with 52MHz >> - VIM3 : Working fine with 52MHz >> >> Before this patch,

Re: [PATCH 1/1] cros_ec: Handling EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Heinrich Schuchardt
On 11/9/20 10:13 PM, Alper Nebi Yasak wrote: > On 09/11/2020 23:34, Heinrich Schuchardt wrote: >> With commit 690079767803 ("cros_ec: Support keyboard scanning with >> EC_CMD_GET_NEXT_EVENT") check_for_keys() tries to read keyboard >> strokes using EC_CMD_GET_NEXT_EVENT. But the sandbox driver

Re: [PATCH 1/1] cros_ec: Handling EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Alper Nebi Yasak
On 09/11/2020 23:34, Heinrich Schuchardt wrote: > With commit 690079767803 ("cros_ec: Support keyboard scanning with > EC_CMD_GET_NEXT_EVENT") check_for_keys() tries to read keyboard > strokes using EC_CMD_GET_NEXT_EVENT. But the sandbox driver does > not understand this command. We need to reply

[PATCH 1/1] cros_ec: Handling EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Heinrich Schuchardt
With commit 690079767803 ("cros_ec: Support keyboard scanning with EC_CMD_GET_NEXT_EVENT") check_for_keys() tries to read keyboard strokes using EC_CMD_GET_NEXT_EVENT. But the sandbox driver does not understand this command. We need to reply with -EC_RES_INVALID_COMMAND to force check_for_keys()

Re: [PATCH 2/3 v2] tpm: Add some headers from the spec

2020-11-09 Thread Ilias Apalodimas
Hi Heinrich, [...] > > > > + */ > > > +#define TPM2_NUM_PCR_BANKS 16 > > > + > > > +/* Definition of (UINT32) TPM2_CAP Constants */ > > > +#define TPM2_CAP_PCRS 0x0005U > > > +#define TPM2_CAP_TPM_PROPERTIES 0x0006U > > > + > > > +/* Definition of (UINT32) TPM2_PT Constants */ > > >

Re: Pull request for UEFI sub-system for efi-2021-01-rc2 (2)

2020-11-09 Thread Heinrich Schuchardt
On 11/9/20 8:18 PM, Tom Rini wrote: > On Mon, Nov 09, 2020 at 08:15:43PM +0100, Heinrich Schuchardt wrote: > >> On 11/9/20 7:54 PM, Heinrich Schuchardt wrote: >>> The following changes since commit 22ad69b7987eb4b10221330661db4427e40174fb: >>> >>> Merge tag 'dm-pull5nov20' of

Re: [PATCH] cros_ec: Support keyboard scanning with EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Simon Glass
Hi Heinrich, On Mon, 9 Nov 2020 at 12:34, Heinrich Schuchardt wrote: > > On 10/30/20 6:25 PM, Alper Nebi Yasak wrote: > > The cros_ec_keyb driver currently uses EC_CMD_MKBP_STATE to scan the > > keyboard, but this host command was superseded by EC_CMD_GET_NEXT_EVENT > > and unavailable on more

[PATCH] ARM: dts: at91: sam9x60: enable slewrate/high drive for sdhci0 pinout

2020-11-09 Thread Eugen Hristev
Align the pin setup for sdhci0 with linux kernel. This means to have slew rate enable and high drive strength. Signed-off-by: Eugen Hristev --- arch/arm/dts/sam9x60.dtsi | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/sam9x60.dtsi

Re: [PATCH] cros_ec: Support keyboard scanning with EC_CMD_GET_NEXT_EVENT

2020-11-09 Thread Heinrich Schuchardt
On 10/30/20 6:25 PM, Alper Nebi Yasak wrote: > The cros_ec_keyb driver currently uses EC_CMD_MKBP_STATE to scan the > keyboard, but this host command was superseded by EC_CMD_GET_NEXT_EVENT > and unavailable on more recent devices (including gru-kevin), as it was > removed in cros-ec commit

Re: Pull request for UEFI sub-system for efi-2021-01-rc2 (2)

2020-11-09 Thread Tom Rini
On Mon, Nov 09, 2020 at 08:15:43PM +0100, Heinrich Schuchardt wrote: > On 11/9/20 7:54 PM, Heinrich Schuchardt wrote: > > The following changes since commit 22ad69b7987eb4b10221330661db4427e40174fb: > > > > Merge tag 'dm-pull5nov20' of git://git.denx.de/u-boot-dm (2020-11-06 > > 11:27:14 -0500)

Re: Pull request for UEFI sub-system for efi-2021-01-rc2 (2)

2020-11-09 Thread Heinrich Schuchardt
On 11/9/20 7:54 PM, Heinrich Schuchardt wrote: > The following changes since commit 22ad69b7987eb4b10221330661db4427e40174fb: > > Merge tag 'dm-pull5nov20' of git://git.denx.de/u-boot-dm (2020-11-06 > 11:27:14 -0500) > > are available in the Git repository at: > >

Re: [PATCH] mmc: meson_gx_mmc: change a clock phase to stable value

2020-11-09 Thread Anand Moon
Hi Neil, On Mon, 9 Nov 2020 at 19:56, Neil Armstrong wrote: > > On 09/11/2020 15:10, Mark Kettenis wrote: > >> From: Neil Armstrong > >> Date: Mon, 9 Nov 2020 14:37:09 +0100 > >> > >> Hi, > >> > >> On 09/11/2020 04:12, Jaehoon Chung wrote: > >>> Core clock phase value is changed from 180' to

Pull request for UEFI sub-system for efi-2021-01-rc2 (2)

2020-11-09 Thread Heinrich Schuchardt
The following changes since commit 22ad69b7987eb4b10221330661db4427e40174fb: Merge tag 'dm-pull5nov20' of git://git.denx.de/u-boot-dm (2020-11-06 11:27:14 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2021-01-rc2-2 for you

Re: [PATCH] efi_loader: improve detection of ESP for storing UEFI variables

2020-11-09 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Mon, 9 Nov 2020 15:36:33 +0100 > > On 09.11.20 14:51, Mark Kettenis wrote: > >> From: Paulo Alcantara > >> Date: Mon, 09 Nov 2020 10:24:08 -0300 > >> > >> Heinrich Schuchardt writes: > >> > >>> On 09.11.20 00:58, Paulo Alcantara wrote: > The UEFI

Re: [PATCH] x86: Avoid using hardcoded number of variable range MTRRs in mtrr_commit()

2020-11-09 Thread Simon Glass
Hi Bin, On Mon, 9 Nov 2020 at 01:05, Bin Meng wrote: > > Since commit 29d2d64ed55f ("x86: Add support for more than 8 MTRRs"), > the maximum number of variable range MTRRs was increased from 8 to 10, > which caused a #GP exception during VESA video driver probe. > > On the BayTrail platform

[PATCH v2] mmc: atmel-sdhci: fix the clk_enable call in case of no ops

2020-11-09 Thread Eugen Hristev
If the clock driver does not offer a clk_enable ops, then the system will return -ENOSYS. The clk_enable works with CCF (common clock framework). Some clocks in some cases (like the generic clock for some products: sama5d2) do not have the clk_enable primitive, and in this case probing of the

  1   2   >