[PATCH v2 2/2] drivers: spi: add commands for micron SPI

2020-05-17 Thread Rayagonda Kokatanur
Add commands for dual and quad SPI transfers on Micon SPI. Signed-off-by: Rayagonda Kokatanur --- include/spi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spi.h b/include/spi.h index 2b4929fc79..491f1f805c 100644 --- a/include/spi.h +++ b/include/spi.h @@ -150,6 +150,8 @@ stru

[PATCH v2 0/2] add broadcom spi driver

2020-05-17 Thread Rayagonda Kokatanur
This patchset, -adds Broadcom SPI driver for iproc-based platforms and -extends Micron SPI commands for dual and quad SPI transfers on Micon SPI. Changes from v1: -Address review comments from Jagan Teki, Remove flash opcode from driver and use include/linux/mtd/spi-nor.h, Remove CONFIG_BCM_I

[PATCH v2 1/2] driver: spi: add brcm iproc qspi support.

2020-05-17 Thread Rayagonda Kokatanur
Add brcm iproc qspi support. Signed-off-by: Rayagonda Kokatanur --- Changes from v1: -Address review comments from Jagan Teki, Remove flash opcode from driver and use include/linux/mtd/spi-nor.h, Remove CONFIG_BCM_IPROC_USE_BSPI, handle via driver data -Address self review comments, Remo

Re: [PATCH 02/10] efi_loader: add option to initialise EFI subsystem early

2020-05-17 Thread Heinrich Schuchardt
On 4/28/20 2:16 AM, AKASHI Takahiro wrote: > Heinrich, > > On Mon, Apr 27, 2020 at 10:09:11PM +0200, Heinrich Schuchardt wrote: >> On 4/27/20 11:48 AM, AKASHI Takahiro wrote: >>> If this option is enabled, the initialisation of UEFI subsystem will be >>> done as part of U-Boot initialisation. >>> >

Re: [PATCH 03/10] efi_loader: define UpdateCapsule api

2020-05-17 Thread Heinrich Schuchardt
On 4/27/20 11:48 AM, AKASHI Takahiro wrote: > In this commit, skeleton functions for capsule-related API's are > added under CONFIG_EFI_UPDATE_CAPSULE configuration. > Detailed implementation for a specific capsule type will be added > in the succeeding patches. > > Signed-off-by: AKASHI Takahiro

[PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-05-17 Thread Rayagonda Kokatanur
This is the second patch set series prepared on top of the first patch set ("add initial support for broadcom NS3 soc"). This patch set will add following, -dt nodes and defconfig options for basic device like pinctrl, gpio, mmc, qspi, wdt, i2c and pcie. -start wdt service -Enable GPT commands -E

[PATCH v1 03/15] arm: dts: ns3: add pinctrl node

2020-05-17 Thread Rayagonda Kokatanur
Add pinctrl dt node for ns3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-pinctrl.dtsi | 321 ++ arch/arm/dts/ns3.dtsi | 2 + 2 files changed, 323 insertions(+) create mode 100644 arch/arm/dts/ns3-pinctrl.dtsi diff --git a/arch/arm/dts/ns3-p

[PATCH v1 02/15] dt-bindings: pinctrl: add ns3 pads definition

2020-05-17 Thread Rayagonda Kokatanur
Add NS3 pads definitions. Signed-off-by: Rayagonda Kokatanur --- .../dt-bindings/pinctrl/brcm,pinctrl-ns3.h| 41 +++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h diff --git a/include/dt-bindings/pinctrl/brcm,pinctrl-ns3.

[PATCH v1 01/15] configs: ns3: enable pinctrl driver

2020-05-17 Thread Rayagonda Kokatanur
Enable pinctrl driver for ns3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 9adb44cb51..328b0e2b4e 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bcm_ns3_d

[PATCH v1 04/15] arm: dts: ns3: add gpio node

2020-05-17 Thread Rayagonda Kokatanur
Add IPROC GPIO node for NS3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 1 + arch/arm/dts/ns3.dtsi | 23 +++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/ns3-board.dts index c660e74dc8..5926123379 100

[PATCH v1 05/15] configs: ns3: enable BCM IPROC mmc driver

2020-05-17 Thread Rayagonda Kokatanur
Enable BCM IPROC mmc driver ns3. Enable DMA for MMC Host to have better reads and writes. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 328b0e2b4e..432237b56d 10

[PATCH v1 07/15] configs: ns3: enable mmc commands

2020-05-17 Thread Rayagonda Kokatanur
Enable mmc commands for NS3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 432237b56d..a1ee866e54 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bcm_ns3_defc

[PATCH v1 08/15] arm: dts: ns3: add qspi node

2020-05-17 Thread Rayagonda Kokatanur
Add QSPI node and qspi NOR flash node for NS3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 16 arch/arm/dts/ns3.dtsi | 9 + 2 files changed, 25 insertions(+) diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/ns3-board.dts index 45565c9

[PATCH v1 06/15] arm: dts: ns3: add emmc node

2020-05-17 Thread Rayagonda Kokatanur
From: Pramod Kumar Add emmc dt nodes for ns3. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 4 arch/arm/dts/ns3.dtsi | 18 ++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/

[PATCH v1 09/15] arm: dts: ns3: add i2c node

2020-05-17 Thread Rayagonda Kokatanur
Add IPROC I2C node for NS3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 1 + arch/arm/dts/ns3.dtsi | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/ns3-board.dts index 78a69ac3f9..f8e501c225 100644 --- a/arch/arm/dt

[PATCH v1 10/15] arm: dts: ns3: add PAXB PCIe host and phy node

2020-05-17 Thread Rayagonda Kokatanur
From: Srinath Mannam Add PAXB PCIe host controller and phy node for NS3. Signed-off-by: Srinath Mannam Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 36 + arch/arm/dts/ns3.dtsi | 158 + 2 files changed, 194 insertions(+)

[PATCH v1 12/15] configs: ns3: enable EXT4 and FAT fs support

2020-05-17 Thread Rayagonda Kokatanur
Enable EXT4 and FAT fs support for ns3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 0f23f30db2..66fbdb20d6 100644 --- a/configs/bcm_ns3_defconfig +++ b/config

[PATCH v1 14/15] arm: dts: ns3: add sp805 watchdog node

2020-05-17 Thread Rayagonda Kokatanur
From: Pramod Kumar Add sp805 watchdog dts node for ns3. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/ns3.dtsi b/arch/arm/dts/ns3.dtsi index 9fd59a855e..6962e658d3 100644 --- a/

[PATCH v1 13/15] configs: ns3: enable sp805 watchdog driver

2020-05-17 Thread Rayagonda Kokatanur
Enable sp805 watchdog driver for ns3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 66fbdb20d6..3cb69eff9d 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bc

[PATCH v1 15/15] board: ns3: start sp805 watchdog service

2020-05-17 Thread Rayagonda Kokatanur
Start sp805 watchdog service. Parse wdt timeout from env and dts, give precedence to env timeout if defined. Set default timeout to 60s if both env and dts doesn't specifiy timeout. Stop the WDT in board late init and start the WDT service before giving control to Linux. Signed-off-by: Rayagonda

[PATCH v1 11/15] configs: ns3: enable gpt commands

2020-05-17 Thread Rayagonda Kokatanur
Enable gpt commands for ns3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index a1ee866e54..0f23f30db2 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bcm_ns3_defc

[PATCH v1 2/3] board: ns3: add FIT image its file

2020-05-17 Thread Rayagonda Kokatanur
From: Pramod Kumar Add FIT image its file. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/fit/multi.its | 59 + 1 file changed, 59 insertions(+) create mode 100644 board/broadcom/bcmns3/fit/multi.its diff --git a/board/br

[PATCH v1 0/3] add FIT image support for broadcom NS3 soc

2020-05-17 Thread Rayagonda Kokatanur
This is third patch set series prepared on top of second patch set ("add basic driver support for broadcom NS3 soc"). This patch set enables FIT config and add FIT image its files and keys. Pramod Kumar (2): board: ns3: add FIT image its file board: ns3: add development keys used in FIT Raya

[PATCH v1 1/3] configs: ns3: enable FIT config

2020-05-17 Thread Rayagonda Kokatanur
Enable FIT config for NS3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 3cb69eff9d..b52c6d7d93 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bcm_ns3_def

[PATCH v1 3/3] board: ns3: add development keys used in FIT

2020-05-17 Thread Rayagonda Kokatanur
From: Pramod Kumar Add development keys used in FIT. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/fit/keys/dev.crt | 21 +++ board/broadcom/bcmns3/fit/keys/dev.key | 28 ++ 2 files changed, 49 insertions(+) c

[PATCH v1 0/3] add optee support for broadcom NS3 soc

2020-05-17 Thread Rayagonda Kokatanur
This is fourth patch set series prepared on top of third patch set ("add FIT image support for broadcom NS3 soc"). This patch adds optee support. Vikas Gupta (3): board: ns3: add optee based bnxt fw load driver configs: ns3: enable tee and optee driver arm: dts: ns3: add optee node arch/a

[PATCH v1 3/3] arm: dts: ns3: add optee node

2020-05-17 Thread Rayagonda Kokatanur
From: Vikas Gupta Add support for optee Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/ns3.dtsi b/arch/arm/dts/ns3.dtsi index 6962e658d3..509818e23e 100644 --- a/arch/arm/dts/ns3.d

[PATCH v1 2/3] configs: ns3: enable tee and optee driver

2020-05-17 Thread Rayagonda Kokatanur
From: Vikas Gupta Enable tee and optee drivers. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index b52c6d7d93..13fe9d439

[PATCH v1 1/3] board: ns3: add optee based bnxt fw load driver

2020-05-17 Thread Rayagonda Kokatanur
From: Vikas Gupta Add optee based bnxt fw load driver. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/Kconfig | 5 + board/broadcom/bcmns3/Makefile | 1 + board/broadcom/bcmns3/chimp_optee.c | 154 include/br

[PATCH v1 0/3] add elog support for broadcom NS3 soc

2020-05-17 Thread Rayagonda Kokatanur
This is fifth patch set series prepared on top of fourth patch set ("add optee support for broadcom NS3 soc"). This patch adds support for error logging and corresponding command. Sheetal Tigadoli (1): common: ns3: add error logging support Vladimir Olovyannikov (2): board: ns3: kconfig: ext

[PATCH v1 1/3] common: ns3: add error logging support

2020-05-17 Thread Rayagonda Kokatanur
From: Sheetal Tigadoli Add error logging support in uboot for ns3 platform. We log the bootup msgs from all bootstages(BL2, BL31, BL33, and Linux) on to DDR. When a watchdog is triggered from any of the bootstages, CRMU copies these logs to QSPI error logging space. Later when doing the post-mo

[PATCH v1 3/3] cmd: bcm: add broadcom error log setup command

2020-05-17 Thread Rayagonda Kokatanur
From: Vladimir Olovyannikov Add broadcom error log setup command. Some Broadcom platforms have ability to record event logs by SCP. - Add a logsetup command which is used to perform initial configuration of this log. Move this command to bcm/ directory to be used for Broadcom-specific U-bo

[PATCH v1 2/3] board: ns3: kconfig: extend board kconfig with specific commands

2020-05-17 Thread Rayagonda Kokatanur
From: Vladimir Olovyannikov Extend Kconfig for the board with board-specific commands selection. Signed-off-by: Vladimir Olovyannikov Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/board/broadcom/bcmns3/Kconfig b/bo

[PATCH v1 0/3] add custome commands for broadcom NS3 soc

2020-05-17 Thread Rayagonda Kokatanur
This is sixth patch set series prepared on top of fifth patch set ("add elog support for broadcom NS3 soc"). This patch set adds commands specific to broadcom NS3 soc. Bharat Kumar Reddy Gooty (1): cmd: bcm: add command for chimp hand shake Trac Hoang (1): cmd: bcm: add nitro boot command V

[PATCH v1 2/3] cmd: bcm: add nitro image load commands

2020-05-17 Thread Rayagonda Kokatanur
From: Vikas Gupta Add nitro image load commands. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur --- cmd/bcm/Makefile | 1 + cmd/bcm/nitro_image_load.c | 99 ++ 2 files changed, 100 insertions(+) create mode 100644 cmd/bcm/nitro_im

[PATCH v1 3/3] cmd: bcm: add command for chimp hand shake

2020-05-17 Thread Rayagonda Kokatanur
From: Bharat Kumar Reddy Gooty Add command for chimp handshake. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur --- cmd/bcm/Makefile | 1 + cmd/bcm/chimp_handshake.c | 32 include/brcm/chimp.h | 6 ++ 3 files chan

[PATCH v1 1/3] cmd: bcm: add nitro boot command

2020-05-17 Thread Rayagonda Kokatanur
From: Trac Hoang Add command to boot nitro. Signed-off-by: Trac Hoang Signed-off-by: Rayagonda Kokatanur --- cmd/bcm/Makefile | 1 + cmd/bcm/chimp_boot.c | 36 include/brcm/chimp.h | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 cmd/bcm

RE: [PATCH 1/2] cpu: imx8: fix type and rate detection

2020-05-17 Thread Peng Fan
> Subject: [PATCH 1/2] cpu: imx8: fix type and rate detection > > CPU type and rate detection is broken, for A35 cpu we get A53: > ... > sc_pm_get_clock_rate: resource:0 clk:2: res:3 Could not read CPU frequency: > -22 > CPU: NXP i.MX8QXP RevB A53 at 0 MHz at 47C > > Fixes: 55bc96f3b675 ("cpu:

RE: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-17 Thread Peng Fan
Hi Anatolij, > Subject: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property > value > > Fix boot hang with endless loop outputting: > CPU Temperature (47200C) has beyond alert (0C), close to critical (0C) > waiting... Could you share more info which part was broken? Thanks, Peng

[PATCH v2] efi_loader: round the memory area in efi_add_memory_map()

2020-05-17 Thread Michael Walle
Virtually all callers of this function do the rounding on their own. Some do it right, some don't. Instead of doing this in each caller, do the rounding in efi_add_memory_map(). Change the size parameter to bytes instead of pages and remove aligning and size calculation in all callers. There is no

Re: [PATCH v2] efi_loader: round the memory area in efi_add_memory_map()

2020-05-17 Thread Heinrich Schuchardt
On 5/17/20 12:29 PM, Michael Walle wrote: > Virtually all callers of this function do the rounding on their own. > Some do it right, some don't. Instead of doing this in each caller, > do the rounding in efi_add_memory_map(). Change the size parameter > to bytes instead of pages and remove aligning

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-17 Thread Anatolij Gustschin
Hi Peng, On Sun, 17 May 2020 10:04:58 + Peng Fan peng@nxp.com wrote: > Hi Anatolij, > > > Subject: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property > > value > > > > Fix boot hang with endless loop outputting: > > CPU Temperature (47200C) has beyond alert (0C), close

Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-17 Thread Jupiter
Sorry for a bit recalcitrant with the issue of calling 'ubi part" error -74 -EBADMSG, is it MTD issue or u-boot issue? I used Linux kernel 4.19 to flash UBIFS volume images ubi.img to imx6ull NAND using following command in Linux: flash_erase /dev/mtd2 0 0 ubiformat /dev/mtd2 -f ubi.img The flas

Re: [PATCH v9 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-17 Thread Bin Meng
On Wed, May 13, 2020 at 2:27 PM Pragnesh Patel wrote: > > When build U-Boot SPL, meet an issue of undefined reference to > 'crc7' for drivers/mmc/mmc_spi.c, so let's compile crc7.c when > CONFIG_MMC_SPI selected. > > Signed-off-by: Pragnesh Patel > --- > lib/Makefile | 2 +- > 1 file changed, 1

Re: [PATCH v10 06/18] sifive: fu540: add ddr driver

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:53 PM Pragnesh Patel wrote: > > Add driver for fu540 to support ddr initialization in SPL. > This driver is based on FSBL > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel > --- > board/sifive/fu540/Kconfig | 2 + > d

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-17 Thread Pali Rohár
On Friday 15 May 2020 14:34:55 Tom Rini wrote: > On Fri, May 15, 2020 at 07:40:25PM +0200, Pali Rohár wrote: > > On Friday 15 May 2020 10:16:16 Tom Rini wrote: > > > On Fri, May 15, 2020 at 03:58:20PM +0200, Pali Rohár wrote: > > > > On Friday 15 May 2020 09:53:23 Tom Rini wrote: > > > > > On Fri,

[PATCH v3] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-17 Thread Pali Rohár
This patch contains test/nokia_rx51_test.sh script which automatically download and compile all needed tools in local temporary directory to generate a simple MTD images for booting Maemo kernel image by U-Boot from RAM, eMMC and OneNAND. MTD images are then run in virtual n900 machine provided by

Re: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-17 Thread Bin Meng
Hi Pragnesh, On Thu, May 14, 2020 at 7:54 PM Pragnesh Patel wrote: > > With sifive_fu540_defconfig: > > User can use FSBL or u-boot-spl.bin anyone at a time. > > For FSBL, > fsbl->fw_payload.bin (opensbi + U-Boot) > > For u-boot-spl.bin, > u-boot-spl.bin->FIT image (opensbi + U-Boot proper + dtb)

Re: [PATCH v10 11/18] clk: sifive: fu540-prci: Release ethernet clock reset

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:54 PM Pragnesh Patel wrote: > > Release ethernet clock reset once clock is initialized. > This is necessary to do as U-Boot proper needs ethernet > clock. > > Signed-off-by: Pragnesh Patel > --- > drivers/clk/sifive/fu540-prci.c | 20 > 1 file chang

Re: [PATCH v10 18/18] doc: sifive: fu540: Add description for OpenSBI generic platform

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:55 PM Pragnesh Patel wrote: > > OpenSBI generic platform support provides platform specific > functionality based on the FDT passed by previous booting stage. > > Depends on OpenSBI commit: > platform: Add generic FDT based platform support > (sha1: f1aa9e54e6ae70aeac

Re: [PATCH v10 10/18] clk: sifive: fu540-prci: Add ddr clock initialization

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:54 PM Pragnesh Patel wrote: > > Release ddr clock reset once clock is initialized > > Signed-off-by: Pragnesh Patel > --- > drivers/clk/sifive/fu540-prci.c | 51 + > 1 file changed, 45 insertions(+), 6 deletions(-) > Reviewed-by: Bin Men

Re: [PATCH v10 07/18] sifive: dts: fu540: Add DDR controller and phy register settings

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:54 PM Pragnesh Patel wrote: > > Add DDR controller and phy register settings, taken from fsbl > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel > --- > .../dts/fu540-hifive-unleashed-a00-ddr.dtsi | 1489 +

Re: [PATCH v10 13/18] riscv: cpu: fu540: Add support for cpu fu540

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 7:54 PM Pragnesh Patel wrote: > > Add SiFive fu540 cpu to support RISC-V arch > > Signed-off-by: Pragnesh Patel > --- > arch/riscv/Kconfig | 1 + > arch/riscv/cpu/fu540/Kconfig | 15 ++ > arch/riscv/cpu/fu540/Makefile

Re: [PATCH] x86: mtrr: Drop the mask display when changing an mtrr

2020-05-17 Thread Bin Meng
On Thu, May 7, 2020 at 10:32 PM Bin Meng wrote: > > On Thu, May 7, 2020 at 10:13 PM Simon Glass wrote: > > > > We don't need to print this information since it is shown when the MTRRs > > are displayed. Drop it. > > > > Signed-off-by: Simon Glass > > --- > > > > cmd/x86/mtrr.c | 1 - > > 1 file

Re: patman: ImportError

2020-05-17 Thread Stefan Bosch
Hi Simon, Am 17.05.20 um 01:03 schrieb Simon Glass: Hi Stefan, On Sat, 16 May 2020 at 05:27, Stefan Bosch wrote: Hello, recently, I updated my local repository (U-Boot master). Last commit is c693f212c5b0433b3a49a89d87cbff28bf78eb87 now. Previously it has been 4df3578119b043d76b86b50077b068

Re: [PATCH v2 01/39] tbs2910: Drop the 'bd' command

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > This board is very close to its limit. Drop this command before the bd > refactoring, which increases the size slightly on one toolchain. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add a new patch to drop the 'bd' command for

Re: [PATCH v2 14/39] bdinfo: powerpc: Use the generic bd command

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > Unfortunately PowerPC has a lot of special stuff. Move it into the generic > function for now, so we can have it all in one place. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix up inadvertent merge of PowerPC/ARM/m68k/arc pa

Re: [PATCH v2 15/39] bdinfo: m68k: Use the generic bd command

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > Unfortunately m68k has a lot of special stuff. Move it into the generic > function for now, so we can have it all in one place. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix up inadvertent merge of PowerPC/ARM/m68k/arc patch

Re: [PATCH v2 16/39] bdinfo: arm: Use the generic bd command

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > Unfortunately ARM has a lot of special stuff. Move it into the generic > function for now, so we can have it all in one place. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix up inadvertent merge of PowerPC/ARM/m68k/arc patche

Re: [PATCH v2 17/39] bdinfo: arc: Use the generic bd command

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > There is nothing new in the arc 'bd' command beyond what is already there. > Switch it over to use the generic code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix up inadvertent merge of PowerPC/ARM/m68k/arc patches > > cmd

Re: [PATCH v2 26/39] bdinfo: Drop print_bi_flash()

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > This function only has three lines of code in it so inline it. This helps > to put all the code in one place for future partitioning. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Update commit message with an extra motivation >

Re: [PATCH v2 30/39] bdinfo: net: Drop legacy ethernet bdinfo

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:17 AM Simon Glass wrote: > > This code pre-dates driver model and the migration date is nearly upon us. > Pare the print_eths() function down and enable it for driver model, since > it works correctly. > > The IP address is already printed in print_eth_ip_addr() so we can

Re: [PATCH v3 1/3] arch: x86: apl: Only load VBT if CONFIG_HAVE_VBT is enabled

2020-05-17 Thread Bin Meng
Hi Bernhard, On Tue, May 12, 2020 at 3:35 PM Bernhard Messerklinger wrote: > > Only load VBT if it's present in the u-boot.rom. > > Signed-off-by: Bernhard Messerklinger > > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/apollolake/fsp_s.c | 46 ++---

Re: [PATCH v3 2/3] arch: x86: apl: Use devicetree for FSP-M configuration

2020-05-17 Thread Bin Meng
Hi Simon, On Tue, May 12, 2020 at 3:35 PM Bernhard Messerklinger wrote: > > A the moment the FSP-M configuration is a mix of hard coded values and > devicetree properties. > This patch makes FSP-M full configurable from devicetree by adding > binding properties for all FSP-M parameters. > Co-deve

Re: [PATCH v3 3/3] arch: x86: apl: Use devicetree for FSP-S configuration

2020-05-17 Thread Bin Meng
Hi Simon, On Tue, May 12, 2020 at 3:35 PM Bernhard Messerklinger wrote: > > A the moment the FSP-S configuration is a mix of hard coded values and > devicetree properties. > This patch makes FSP-S full configurable from devicetree by > adding binding properties for all FSP-S parameters. > Co-deve

Re: [PATCH v9 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-17 Thread Heinrich Schuchardt
Am May 17, 2020 12:02:30 PM UTC schrieb Bin Meng : >On Wed, May 13, 2020 at 2:27 PM Pragnesh Patel > wrote: >> >> When build U-Boot SPL, meet an issue of undefined reference to >> 'crc7' for drivers/mmc/mmc_spi.c, so let's compile crc7.c when >> CONFIG_MMC_SPI selected. >> >> Signed-off-by: Pragnes

Re: [PATCH] x86: coreboot: add SMBIOS cbmem entry parsing

2020-05-17 Thread Bin Meng
On Thu, May 14, 2020 at 9:16 PM Christian Gmeiner wrote: > > Signed-off-by: Christian Gmeiner > --- > arch/x86/cpu/coreboot/tables.c | 14 ++ > arch/x86/include/asm/arch-coreboot/sysinfo.h | 2 ++ > arch/x86/include/asm/coreboot_tables.h | 11 +++ > 3 fil

Re: [PATCH v9 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-17 Thread Bin Meng
On Sun, May 17, 2020 at 10:28 PM Heinrich Schuchardt wrote: > > Am May 17, 2020 12:02:30 PM UTC schrieb Bin Meng : > >On Wed, May 13, 2020 at 2:27 PM Pragnesh Patel > > wrote: > >> > >> When build U-Boot SPL, meet an issue of undefined reference to > >> 'crc7' for drivers/mmc/mmc_spi.c, so let's c

RE: [PATCH v10 13/18] riscv: cpu: fu540: Add support for cpu fu540

2020-05-17 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Bin Meng >Sent: 17 May 2020 18:30 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Palmer Dabbelt ; Paul >Walmsley ; Jagan Teki >; Anup Patel ; Sagar >Kadam ; Rick Chen ; Palmer >Dabbelt ; Lukas Auer >; Simon Glass >Subject: Re: [PATCH v10

RE: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-17 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Bin Meng >Sent: 17 May 2020 18:28 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Palmer Dabbelt ; Paul >Walmsley ; Jagan Teki >; Anup Patel ; Sagar >Kadam ; Rick Chen ; Palmer >Dabbelt >Subject: Re: [PATCH v10 17/18] configs: fu540: Add

RE: [PATCH v10 06/18] sifive: fu540: add ddr driver

2020-05-17 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Bin Meng >Sent: 17 May 2020 17:38 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Palmer Dabbelt ; Paul >Walmsley ; Jagan Teki >; Anup Patel ; Sagar >Kadam ; Rick Chen ; Palmer >Dabbelt ; Kever Yang ; >YouMin Chen ; Giulio Benetti >; Kevin

Re: [PATCH v2 01/35] dm: core: Add an ACPI name for the root node

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:34 AM Simon Glass wrote: > > This always has a fixed ACPI name so add it as a driver function. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > Changes in v2: None > Changes in v1: > - Capitalise ACPI_OPS_PTR > > drivers/core/root.c | 13 +++

Re: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-17 Thread Bin Meng
Hi Pragnesh, On Sun, May 17, 2020 at 10:37 PM Pragnesh Patel wrote: > > Hi Bin, > > >-Original Message- > >From: Bin Meng > >Sent: 17 May 2020 18:28 > >To: Pragnesh Patel > >Cc: U-Boot Mailing List ; Atish Patra > >; Palmer Dabbelt ; Paul > >Walmsley ; Jagan Teki > >; Anup Patel ; Sagar

RE: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-17 Thread Peng Fan
> Subject: Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert > property value > > Hi Peng, > > On Sun, 17 May 2020 10:04:58 + > Peng Fan peng@nxp.com wrote: > > > Hi Anatolij, > > > > > Subject: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert > > > property valu

RE: [ANN] U-Boot v2020.07-rc2 released

2020-05-17 Thread Peng Fan
> On Sat, May 16, 2020 at 08:10:04AM +, Peng Fan wrote: > > Hi Tom, > > > > > -Original Message- > > > From: U-Boot On Behalf Of Tom Rini > > > Sent: 2020年5月12日 6:29 > > > To: u-boot@lists.denx.de > > > Cc: u-boot-custodi...@lists.denx.de; > > > u-boot-board-maintain...@lists.denx.de >

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-17 Thread Anatolij Gustschin
On Sun, 17 May 2020 14:43:39 + Peng Fan peng@nxp.com wrote: ... > > CPU Temperature (35000C) has beyond alert (0C), close to critical (0C) > > waiting... > > Sorry for not be clear, I mean which code change breaks the boot? I didn't bisect this, so I do not know exactly. Last working re

Re: [PATCH v2 02/35] acpi: Add a function to get a device path and scope

2020-05-17 Thread Bin Meng
On Mon, May 11, 2020 at 4:34 AM Simon Glass wrote: > > Add a function to build up the ACPI path for a device and another for its > scope. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > Changes in v2: None > Changes in v1: > - Split into more patches for review > - Add t

[PATCH 03/15] net: pcnet: Use PCI_DEVICE() to define PCI device compat list

2020-05-17 Thread Marek Vasut
Use this macro to fully fill the PCI device ID table. This is mandatory for the DM PCI support, which checks all the fields. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 01/15] net: pcnet: Drop typedef struct pcnet_priv_t

2020-05-17 Thread Marek Vasut
Use struct pcnet_priv all over the place instead. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index f97e7f8c6a..f34fc4abbf

[PATCH 02/15] net: pcnet: Drop PCNET_HAS_PROM

2020-05-17 Thread Marek Vasut
All of one PCNET users has this option set, make this default and drop this config option. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 5 - include/configs/malta.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/net/pcnet

[PATCH 06/15] net: pcnet: Move private data allocation to initialize

2020-05-17 Thread Marek Vasut
The private data allocation does not have to be done every time the NIC is initialized at run time, move the allocation to initialize function, which means it will be done only once when the driver starts. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pc

[PATCH 07/15] net: pcnet: Move initialize function at the end

2020-05-17 Thread Marek Vasut
Move the function at the end of the driver, so we could drop various forward declarations later. No functional change. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 180 ++-- 1 file changed, 89 insertions

[PATCH 08/15] net: pcnet: Drop useless forward declarations

2020-05-17 Thread Marek Vasut
Remove those as they are not needed anymore. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index ec8d080794..3e04781aa4 100644 --- a/drivers/net/pc

[PATCH 05/15] net: pcnet: Replace memset+malloc with calloc

2020-05-17 Thread Marek Vasut
This combination of functions can be replaced with calloc(), make it so. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 5bbd290ee

[PATCH 04/15] net: pcnet: Simplify private data allocation

2020-05-17 Thread Marek Vasut
The current code is horribly complex. Both the RX and TX buffer descriptors are 16 bytes in size, the init block is 32 bytes in size, so simplify the code such that the entire private data of the driver are allocated cache aligned and the RX and TX buffer descriptors are part of the private data.

[PATCH 10/15] net: pcnet: Pass private data through dev->priv

2020-05-17 Thread Marek Vasut
Get rid of the global point to private data, and rather pass it thought dev->priv. Also remove the unnecessary check for lp being non-NULL, since it is always NULL at this point. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 20 ++--

[PATCH 09/15] net: pcnet: Wrap devbusfn into private data

2020-05-17 Thread Marek Vasut
Instead of using eth_device priv for this PCI devbusfn, free it so it could be used for driver private data, and wrap devbusfn into those driver private data. Note that using the name dev for the variable is a trick left for later, when DM support is in place, so dm_pci_virt_to_mem() can be used w

[PATCH 11/15] net: pcnet: Wrap iobase into private data

2020-05-17 Thread Marek Vasut
Instead of using the non-DM-only iobase in struct eth_device, add one into the private data to make DM and non-DM operation possible. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 103 1 file changed

[PATCH 12/15] net: pcnet: Wrap name and enetaddr into private data

2020-05-17 Thread Marek Vasut
Instead of using the non-DM-only name and enetaddr in struct eth_device, add pointers into the private data which can either point to that non-DM name or a DM one later on. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 34 +++---

[PATCH 13/15] net: pcnet: Split common and non-DM functions

2020-05-17 Thread Marek Vasut
Pull the common parts of functions out so they can be reused by both DM and non-DM code paths. The recv() function had to be reworked to fit into this scheme and this means it now only receives one packet at a time instead of spinning in an endless loop. Signed-off-by: Marek Vasut Cc: Daniel Schw

[PATCH 15/15] net: pcnet: Add Kconfig entries

2020-05-17 Thread Marek Vasut
Add Kconfig entries for the pcnet driver and convert MIPS malta to use those. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- configs/malta_defconfig | 1 + drivers/net/Kconfig | 6 ++ include/configs/malta.h | 1 - 3 files changed, 7 insertions(+), 1 deletion

[PATCH 14/15] net: pcnet: Add DM support

2020-05-17 Thread Marek Vasut
With all the changes in place, add support for DM into the pcnet driver. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Joe Hershberger --- drivers/net/pcnet.c | 127 +++- 1 file changed, 126 insertions(+), 1 deletion(-) diff --git a/drivers/net/

Re: [PATCH v2] efi_loader: round the memory area in efi_add_memory_map()

2020-05-17 Thread Heinrich Schuchardt
On 5/17/20 12:29 PM, Michael Walle wrote: > Virtually all callers of this function do the rounding on their own. > Some do it right, some don't. Instead of doing this in each caller, > do the rounding in efi_add_memory_map(). Change the size parameter > to bytes instead of pages and remove aligning

[PATCH 0/7 v4] EFI variable support via OP-TEE

2020-05-17 Thread Ilias Apalodimas
Hi! This is the v4 of the patchset adding EFI variable support via OP-TEE originally posted here [1] [2] [3] changes since v3: * patch 3: - remove the default attributes if the user doesn't specify any - print the EFI error message coming from StMM in case of failure * patch 6: - Align t

[PATCH 4/7 v4] MAINTAINERS: Add maintainer for EFI variables via OP-TEE

2020-05-17 Thread Ilias Apalodimas
Add myself as maintainer for the OP-TEE related UEFI variable storage. Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d67112479700..8add9d4c2ae9 100644 --- a/MAINTAINERS +

[PATCH 2/7 v4] efi_loader: Implement EFI variable handling via OP-TEE

2020-05-17 Thread Ilias Apalodimas
In OP-TEE we can run EDK2's StandAloneMM on a secure partition. StandAloneMM is responsible for the UEFI variable support. In combination with OP-TEE and it's U-Boot supplicant, variables are authenticated/validated in secure world and stored on an RPMB partition. So let's add a new config option

[PATCH 1/7 v4] efi_loader: Add headers for EDK2 StandAloneMM communication

2020-05-17 Thread Ilias Apalodimas
From: Sughosh Ganu In Arm devices OP-TEE has the ability to run StandAloneMM (from EDK2) in a separate partition and handle UEFI variables. A following patch introduces this functionality. Add the headers needed for OP-TEE <--> StandAloneMM communication Signed-off-by: Sughosh Ganu Signed-off-

[PATCH 6/7 v4] configs: lx2160a: Add default config for lx2160a using StMM in OP-TEE

2020-05-17 Thread Ilias Apalodimas
Previous patches allow UEFI secure variables to be stored in an RPMB device using OPTEE. Add a config for the lx2160a hardware so the feature gets at least compiled. Signed-off-by: Ilias Apalodimas --- board/freescale/lx2160a/MAINTAINERS | 1 + configs/lx2160ardb_tfa_stmm_defconfig | 85 +

[PATCH 3/7 v4] cmd: efidebug: Add support for querying UEFI variable storage

2020-05-17 Thread Ilias Apalodimas
With the previous patches that use OP-TEE and StandAloneMM for UEFI variable storage we've added functionality for efi_query_variable_info. So let's add the relevant command to efidebug and retrieve information about the container used to store UEFI variables Signed-off-by: Ilias Apalodimas ---

[PATCH 7/7 v4] dts: nxp2160ardb: add op-tee node

2020-05-17 Thread Ilias Apalodimas
A defconfig is added on lx2160ardb which allows UEFI variable management via OP-TEE. Enable the the node in the relevant DTS file. Signed-off-by: Ilias Apalodimas --- arch/arm/dts/fsl-lx2160a.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/

  1   2   >