Re: [PATCH 2/2] rockchip: video: Convert to use APIs which support live DT

2020-03-29 Thread Simon Glass
On Wed, 19 Feb 2020 at 20:04, Simon Glass wrote: > > Hi Kever, > > On Tue, 18 Feb 2020 at 18:45, Kever Yang wrote: > > > > Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the > > driver can support live DT. > > > > Signed-off-by: Kever Yang > > --- > > > >

Re: [PATCH v2 2/2] rockchip: video: Convert to use APIs which support live DT

2020-03-29 Thread Simon Glass
Hi Kever, On Sun, 29 Mar 2020 at 07:27, Kever Yang wrote: > > Hi Simon, > > > On 2020/3/29 上午4:05, Simon Glass wrote: > > Hi Kever, > > > > On Thu, 26 Mar 2020 at 07:37, Kever Yang wrote: > >> Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the > >> driver can support live DT.

[PATCH 0/3] Support reading an u32 from a multi-value property

2020-03-29 Thread Dario Binacchi
The main part of the series consists of adding the dev_read_u32_index and dev_read_u32_index_default functions. During implementation and testing I noticed the lack of testing for the 64-bit data access functions. I decided to add the 64-bit test patch to the series to avoid merge conflicts that

[PATCH 3/3] dm: core: refactor functions reading an u32 from dt

2020-03-29 Thread Dario Binacchi
Now reading a 32 bit value from a device-tree property can be expressed as reading the first element of an array with a single value. Signed-off-by: Dario Binacchi --- drivers/core/of_access.c | 16 +--- drivers/core/ofnode.c| 23 ++- 2 files changed, 3

[PATCH 2/3] dm: core: support reading a single indexed u32 value

2020-03-29 Thread Dario Binacchi
The patch adds helper functions to allow reading a single indexed u32 value from a device-tree property containing multiple u32 values, that is an array of integers. Signed-off-by: Dario Binacchi --- arch/sandbox/dts/test.dts | 1 + drivers/core/of_access.c | 22 +

[PATCH 1/3] dm: test: add test case for dev_read_u64 function

2020-03-29 Thread Dario Binacchi
Add test case to cover dev_read_u64 and dev_read_u64_default functions. Signed-off-by: Dario Binacchi --- arch/sandbox/dts/test.dts | 1 + include/test/ut.h | 16 test/dm/test-fdt.c| 10 ++ 3 files changed, 27 insertions(+) diff --git

Re: Bug#955310: u-boot-tools: update list of architectures in mkimage

2020-03-29 Thread Vagrant Cascadian
On 2020-03-29, Chris Dumont wrote: >* What led up to the situation? > read the manpage for mkimage and then used 'mkimage -T -h' ... >* What was the outcome of this action? > The output (ellipsized) > > $ mkimage -T -h > > Invalid image type, supported are: > Unknown image

eMMC: power on protection of boot areas

2020-03-29 Thread Heinrich Schuchardt
Currently U-Boot does not protect the boot areas of eMMC devices. This may lead to an unsolicited replacement of the boot loader. In https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/tree/mmc I have added a command 'mmc wp' to enable power on boot protection for the boot areas and enhanced

[PATCH v6 11/17] sifive: dts: fu540: Enable gpio in U-Boot SPL

2020-03-29 Thread Pragnesh Patel
Add gpio node for U-Boot SPL Signed-off-by: Pragnesh Patel --- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index af8c3e904c..b83f6afe4f

[PATCH v6 09/17] clk: sifive: fu540-prci: Add clock initialization for SPL

2020-03-29 Thread Pragnesh Patel
Set corepll, ddrpll and ethernet PLL for u-boot-spl Signed-off-by: Pragnesh Patel --- drivers/clk/sifive/fu540-prci.c | 118 1 file changed, 118 insertions(+) diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c index

[PATCH v6 06/17] sifive: fu540: add ddr driver

2020-03-29 Thread Pragnesh Patel
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 --- drivers/ram/Kconfig | 7 + drivers/ram/Makefile | 2 + drivers/ram/sifive/Kconfig

[PATCH v6 07/17] sifive: dts: fu540: Add DDR controller and phy register settings

2020-03-29 Thread Pragnesh Patel
Add DDR controller and phy register settings, taken from fsbl (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel --- arch/riscv/dts/fu540-c000-u-boot.dtsi |7 + ...fu540-hifive-unleashed-a00-sdram-ddr4.dtsi | 1489 +

[PATCH v6 10/17] riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux

2020-03-29 Thread Pragnesh Patel
This sync has changes required to use GPIO in U-Boot and U-Boot SPL. Signed-off-by: Pragnesh Patel --- arch/riscv/dts/fu540-c000.dtsi | 37 - arch/riscv/dts/hifive-unleashed-a00.dts | 9 ++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git

[PATCH v6 13/17] configs: fu540: Add config options for U-Boot SPL

2020-03-29 Thread Pragnesh Patel
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+dtb) U-Boot SPL will be loaded by ZSBL from SD card (replace fsbl.bin with u-boot-spl.bin) and runs in

[PATCH v6 16/17] sifive: fix palmer's email address

2020-03-29 Thread Pragnesh Patel
Fix Palmer's email address Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng --- board/sifive/fu540/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sifive/fu540/MAINTAINERS b/board/sifive/fu540/MAINTAINERS index 702d803ad8..5381fc0639 100644 ---

[PATCH v6 15/17] riscv: sifive: fu540: enable all cache ways from u-boot proper

2020-03-29 Thread Pragnesh Patel
Enable all cache ways from u-boot proper. Signed-off-by: Pragnesh Patel --- arch/riscv/fu540/Makefile | 3 +- arch/riscv/fu540/cache.c| 58 + arch/riscv/include/asm/arch-generic/cache.h | 14 + board/sifive/fu540/fu540.c

[PATCH v6 12/17] riscv: sifive: fu540: add SPL configuration

2020-03-29 Thread Pragnesh Patel
Add a support for SPL which will boot from L2 LIM (0x0800_) and then boot U-boot FIT image including OpenSBI FW_DYNAMIC firmware and U-Boot proper images from 1st partition of MMC boot devices. SPL related code is leverage from FSBL (https://github.com/sifive/freedom-u540-c000-bootloader.git)

[PATCH v6 08/17] clk: sifive: fu540-prci: Add clock enable and disable ops

2020-03-29 Thread Pragnesh Patel
Added clock enable and disable functions in prci ops Signed-off-by: Pragnesh Patel --- drivers/clk/sifive/fu540-prci.c | 100 1 file changed, 88 insertions(+), 12 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c index

[PATCH v6 03/17] riscv: Add _image_binary_end for SPL

2020-03-29 Thread Pragnesh Patel
For SPL_SEPARATE_BSS, Device tree will be put at _image_binary_end Signed-off-by: Pragnesh Patel Reviewed-by: Anup Patel Reviewed-by: Jagan Teki --- arch/riscv/cpu/u-boot-spl.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/cpu/u-boot-spl.lds b/arch/riscv/cpu/u-boot-spl.lds

[PATCH v6 05/17] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files

2020-03-29 Thread Pragnesh Patel
Devicetree files in FU540 platform is synced from Linux, like other platforms does. Apart from these U-Boot in FU540 would also require some U-Boot specific node like clint. So, create board specific -u-boot.dtsi files. This would help of maintain U-Boot specific changes separately without

[PATCH v2 1/3] common/board_f: Move arm-specific reserve_mmu to arch/arm/lib/cache.c

2020-03-29 Thread Ovidiu Panait
Move the ARM-specific reserve_mmu definition from common/board_f.c to arch/arm/lib/cache.c. Signed-off-by: Ovidiu Panait --- arch/arm/lib/cache.c | 28 common/board_f.c | 28 2 files changed, 28 insertions(+), 28 deletions(-) diff

[PATCH v2 2/3] arm: asm/cache.c: Introduce arm_reserve_mmu

2020-03-29 Thread Ovidiu Panait
As a preparation for turning reserve_mmu into an arch-specific variant, introduce arm_reserve_mmu on ARM. It implements the default routine for reserving memory for MMU TLB and needs to be weakly defined in order to allow for machines to override it. Without this decoupling, after introducing

[PATCH v2 3/3] common/board_f: Make reserve_mmu generic

2020-03-29 Thread Ovidiu Panait
Introduce arch_reserve_mmu to allow for architecture-specific reserve_mmu routines. Also, define a weak nop stub for it. Signed-off-by: Ovidiu Panait --- arch/arm/lib/cache.c | 2 +- common/board_f.c | 9 ++--- include/init.h | 13 - 3 files changed, 19

[PATCH v2 0/3] common/board_f: Make reserve_mmu generic

2020-03-29 Thread Ovidiu Panait
Changes in v2: - split the original patch in 3 parts - add function comments - drop #ifdefs around asm/cache.h includes - drop reserve_mmu function and leave only arch_reserve_mmu For the following suggestion: "Can you please try to use if() instead of #if as much as possible?" I tried replacing

[PATCH v6 14/17] sifive: dts: fu540: Enable L2 Cache in U-Boot

2020-03-29 Thread Pragnesh Patel
Add L2 cache node to enable cache ways from U-Boot Signed-off-by: Pragnesh Patel --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi b/arch/riscv/dts/fu540-c000-u-boot.dtsi index 56a45371d4..8f6c9f525d 100644

[PATCH v6 17/17] doc: update FU540 RISC-V documentation

2020-03-29 Thread Pragnesh Patel
Add descriptions about U-Boot SPL feature and how to build and run. Signed-off-by: Pragnesh Patel --- doc/board/sifive/fu540.rst | 409 ++--- 1 file changed, 385 insertions(+), 24 deletions(-) diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst

[PATCH 1/1] cmd: mmc: fix typo 'a EMMC'

2020-03-29 Thread Heinrich Schuchardt
%s/a EMMC/an eMMC/g Signed-off-by: Heinrich Schuchardt --- cmd/mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mmc.c b/cmd/mmc.c index 80a32d9fa9..cfe813d686 100644 --- a/cmd/mmc.c +++ b/cmd/mmc.c @@ -288,7 +288,7 @@ static int do_mmcrpmb(cmd_tbl_t *cmdtp, int

Pull request for UEFI sub-system for efi-2020-04-rc4 (6)

2020-03-29 Thread Heinrich Schuchardt
The following changes since commit 350c44dfb99017e9147ee07d37a40626bde62250: Merge branch '2020-03-27-master-imports' (2020-03-27 17:54:38 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-04-rc4-6 for you to fetch changes

[PATCH v6 04/17] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-03-29 Thread Pragnesh Patel
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 --- common/spl/Kconfig | 6 ++ drivers/mmc/Kconfig | 1 + lib/Makefile| 1 + 3 files changed, 8

[PATCH v6 02/17] riscv: sifive: fu540: Use OTP DM driver for serial environment variable

2020-03-29 Thread Pragnesh Patel
Use the OTP DM driver to set the serial environment variable. Signed-off-by: Pragnesh Patel --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 14 +++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 6 + board/sifive/fu540/Kconfig| 2 + board/sifive/fu540/fu540.c

[PATCH v6 01/17] misc: add driver for the SiFive otp controller

2020-03-29 Thread Pragnesh Patel
Added a misc driver to handle OTP memory in SiFive SoCs. Signed-off-by: Pragnesh Patel --- drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/sifive-otp.c | 255 ++ 3 files changed, 263 insertions(+) create mode 100644

[PATCH v6 00/17] RISC-V SiFive FU540 support SPL

2020-03-29 Thread Pragnesh Patel
This series add support for SPL to FU540.U-Boot SPL can boot from L2 LIM (0x0800_) and jump to OpenSBI(FW_DYNAMIC firmware) and U-Boot proper from MMC devices. How to test this patch: 1) Go to OpenSBI-dir : make PLATFORM=sifive/fu540 O=build_dir I=install_dir FW_DYNAMIC=y install 2) cp

Re: [PATCH 0/6] rockchip: rk3328: sync dts and add ROC-RK3328-CC board

2020-03-29 Thread Kurt Miller
On Fri, 2020-03-27 at 12:41 +0800, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > Hi everyone, > > This series adds proper support for Firefly / Libre Computer ROC-RK3328-CC > single board computer. > > The ROC-RK3328-CC from Firefly and Libre Computer Project is a credit > card size development

Re: [PATCH 0/6] rockchip: rk3328: sync dts and add ROC-RK3328-CC board

2020-03-29 Thread Kurt Miller
On Sat, 2020-03-28 at 01:44 +0800, Chen-Yu Tsai wrote: > Hi, > > On Fri, Mar 27, 2020 at 11:07 PM Kurt Miller > wrote: > > > > > > On Fri, 2020-03-27 at 12:41 +0800, Chen-Yu Tsai wrote: > > > > > > From: Chen-Yu Tsai > > > > > > Hi everyone, > > > > > > This series adds proper support for

[PATCH] mtd: spi-nor: Enable dual and quad read for s25fl256s0

2020-03-29 Thread bacem . daassi
From: Bacem Daassi The s25fl256s0 supports dual and quad read like s25fl256s1. Enable it by adding SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags to the flash_info entry. Tested on real silicon and confirmed to be working. Signed-off-by: Bacem Daassi --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1

[RFC 0/7] mx6cuboxi: enable OF_PLATDATA with MMC support

2020-03-29 Thread Walter Lozano
The SPL in iMX6 boards is restricted to 68 KB as this is the free available space in OCRAM for most revisions. In this context, adding OF_CONTROL and DM increases the SPL size which could make it difficult to add specific features required for custom scenarios. These patches aim to take advantage

[RFC 4/7] dm: uclass: add functions to get device by platdata

2020-03-29 Thread Walter Lozano
When OF_PLATDATA is enabled DT information is parsed and platdata structures are populated. In this context the links between DT nodes are represented as pointers to platdata structures, and there is no clear way to access to the device which owns the structure. This patch implements a set of

[RFC 6/7] mmc: fsl_esdhc_imx: add CD support when OF_PLATDATA is enabled

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- drivers/mmc/fsl_esdhc_imx.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 049a1b6ea8..a3a9e5ff96 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++

[RFC 5/7] gpio: mxc_gpio: add OF_PLATDATA support

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- drivers/gpio/mxc_gpio.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index c924e52f07..ba63c0b76a 100644 --- a/drivers/gpio/mxc_gpio.c +++

[RFC 2/7] mmc: fsl_esdhc_imx: add ofdata_to_platdata support

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- drivers/mmc/fsl_esdhc_imx.c | 71 ++--- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 761a4b46e9..049a1b6ea8 100644 --- a/drivers/mmc/fsl_esdhc_imx.c

[RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- drivers/mmc/fsl_esdhc_imx.c | 46 + 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 4900498e9b..761a4b46e9 100644 --- a/drivers/mmc/fsl_esdhc_imx.c

[RFC 3/7] dtoc: update dtb_platdata to support cd-gpio

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- tools/dtoc/dtb_platdata.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index 037e82c8bb..c52da7925e 100644 --- a/tools/dtoc/dtb_platdata.py +++ b/tools/dtoc/dtb_platdata.py

[PATCH v4 2/8] tool: aisimage: use ALIGN instead of self defiend macro

2020-03-29 Thread Kever Yang
The ALIGN() is available at imagetool.h, no need to self define one. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None tools/aisimage.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH v4 3/8] tools: mkimage: use common ALIGN to do the size align

2020-03-29 Thread Kever Yang
The ALIGN() is now available at imagetool.h, migrate to use it. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None tools/mkimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v4 1/8] tool: Move ALIGN_MASK to header as common MACRO

2020-03-29 Thread Kever Yang
The ALIGN code is need by many files who need handle structure or image align, so move the macro to imagetool.h file. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/imx8image.h | 1 -

[PATCH v4 4/8] tools: kwbimage: use common ALIGN to do the size align

2020-03-29 Thread Kever Yang
The ALIGN() is now available at imagetool.h, migrate to use it. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini Reviewed-by: Stefan Roese --- Changes in v4: None Changes in v3: None Changes in v2: None tools/kwbimage.c | 8 tools/kwbimage.h | 2 -- 2

[PATCH v4 7/8] libfdt: Make fdtdec_get_child_count() available for HOST

2020-03-29 Thread Kever Yang
The tool need to use fdtdec_get_child_count(), make it available for HOST_CC. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal --- Changes in v4: - add function comment for fdtdec_get_child_count() in fdt_support.h Changes in v3: None Changes in v2: None include/fdt_support.h | 9

[PATCH v4 6/8] tool: use ALIGN() to align the size

2020-03-29 Thread Kever Yang
Use the ALIGN() for size align so that the code is more readable. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini Reviewed-by: Heinrich Schuchardt --- Changes in v4: None Changes in v3: None Changes in v2: None tools/fit_image.c| 2 +- tools/socfpgaimage.c |

[PATCH v4 5/8] tools: imx8mimage: remove redundant code

2020-03-29 Thread Kever Yang
The align for fit_size has been done twice, remove the first one for it does not make any sense. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None tools/imx8mimage.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 4/4] cmd: mmc: provide boot area protection command

2020-03-29 Thread Heinrich Schuchardt
Provide command 'mmc wp' to power on write protect boot areas on eMMC devices. The B_PWR_WP_EN bit in the extended CSD register BOOT_WP is set. The boot area are write protected until the next power cycle occurs. Signed-off-by: Heinrich Schuchardt --- cmd/mmc.c | 22

[PATCH 2/4] mmc: export mmc_send_ext_csd()

2020-03-29 Thread Heinrich Schuchardt
Export function mmc_send_ext_csd() for reading the extended CSD register. Signed-off-by: Heinrich Schuchardt --- drivers/mmc/mmc.c | 2 +- include/mmc.h | 11 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

RE: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-29 Thread Tan, Ley Foon
> On 3/27/20 9:24 AM, Ley Foon Tan wrote: > > Enable QSPI for Agilex SoC devkit. > > > > Signed-off-by: Ley Foon Tan > > --- > > arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 4 > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi >

[RFC 7/7] mx6cuboxi: enable OF_PLATDATA

2020-03-29 Thread Walter Lozano
Signed-off-by: Walter Lozano --- configs/mx6cuboxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6cuboxi_defconfig b/configs/mx6cuboxi_defconfig index 7ea79b9064..90aac8a284 100644 --- a/configs/mx6cuboxi_defconfig +++ b/configs/mx6cuboxi_defconfig @@ -42,6 +42,7 @@

Re: [PATCH v8 00/12] Actions S700 SoC support

2020-03-29 Thread Manivannan Sadhasivam
Hi Amit, On Sat, Mar 21, 2020 at 11:00:42PM +0530, Amit Singh Tomar wrote: > This adds Cubieboard7[1] support based on Action Semi's S700 SoC[2], It's > Quad-core ARMv8 SoC > with Cortex-A53 cores. Peripheral like UART seems to be compatible with S900 > SoC(basic support > for it is alreay

Re: [PATCH v4 7/8] libfdt: Make fdtdec_get_child_count() available for HOST

2020-03-29 Thread Heinrich Schuchardt
On 3/30/20 5:56 AM, Kever Yang wrote: The tool need to use fdtdec_get_child_count(), make it available for HOST_CC. Signed-off-by: Kever Yang Reviewed-by: Punit Agrawal --- Changes in v4: - add function comment for fdtdec_get_child_count() in fdt_support.h Changes in v3: None Changes in v2:

Re: [PATCH v1] x86: acpi: Refactor XSDT handling in acpi_add_table()

2020-03-29 Thread Andy Shevchenko
On Sun, Mar 29, 2020 at 5:13 AM Simon Glass wrote: > On Thu, 5 Mar 2020 at 05:17, Andy Shevchenko > wrote: > > On Tue, Mar 03, 2020 at 07:47:56PM -0700, Simon Glass wrote: > > > On Tue, 3 Mar 2020 at 02:23, Andy Shevchenko > > > wrote: > > > > On Tue, Mar 3, 2020 at 1:36 AM Simon Glass

Re: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-29 Thread Marek Vasut
On 3/30/20 3:21 AM, Tan, Ley Foon wrote: > >> On 3/27/20 9:24 AM, Ley Foon Tan wrote: >>> Enable QSPI for Agilex SoC devkit. >>> >>> Signed-off-by: Ley Foon Tan >>> --- >>> arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 4 >>> 1 file changed, 4 insertions(+) >>> >>> diff --git

Re: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-29 Thread Marek Vasut
On 3/30/20 3:34 AM, Tan, Ley Foon wrote: > > >> -Original Message- >> From: Marek Vasut >> Sent: Monday, March 30, 2020 9:29 AM >> To: Tan, Ley Foon ; u-boot@lists.denx.de >> Cc: Ley Foon Tan ; See, Chin Liang >> ; Simon Goldschmidt >> >> Subject: Re: [PATCH RESEND] arm: dts: agilex:

Re: [PATCH 0/6] rockchip: rk3328: sync dts and add ROC-RK3328-CC board

2020-03-29 Thread Chen-Yu Tsai
On Sat, Mar 28, 2020 at 6:03 AM Kurt Miller wrote: > > On Sat, 2020-03-28 at 01:44 +0800, Chen-Yu Tsai wrote: > > Hi, > > > > On Fri, Mar 27, 2020 at 11:07 PM Kurt Miller > > wrote: > > > > > > > > > On Fri, 2020-03-27 at 12:41 +0800, Chen-Yu Tsai wrote: > > > > > > > > From: Chen-Yu Tsai > >

Re: [Patch V4 3/3] configs: rpi_4 : enable SDHCI_SDMA config

2020-03-29 Thread Jaehoon Chung
Hi Matthias, On 3/27/20 10:12 PM, Matthias Brugger wrote: > Hi Jaehoon, > > On 27/03/2020 05:08, Jaehoon Chung wrote: >> Enable SDHCI_SDMA configuration. >> >> Signed-off-by: Jaehoon Chung >> Reviewed-by: Peng Fan >> Reviewed-by: Minkyu Kang >> --- >> configs/rpi_4_32b_defconfig | 1 + >>

Re: [PATCHv2] kconfig / kbuild: Re-sync with Linux 4.19

2020-03-29 Thread Masahiro Yamada
Hi Tom, On Sat, Mar 28, 2020 at 12:46 AM Tom Rini wrote: > > Align Kconfig and Kbuild logic to Linux 4.19 release with minimal impact > on files outside of this scope. > > Our previous Kconfig sync was done by commit 5972ff077e0f ("kconfig / > kbuild: re-sync with Linux 4.18"). > > In this

[PATCH 3/4] cmd: mmc: display write protect state of boot partition

2020-03-29 Thread Heinrich Schuchardt
Boot partitions of eMMC devices can be power on or permanently write protected. Let the 'mmc info' command display the protection state. Signed-off-by: Heinrich Schuchardt --- cmd/mmc.c | 24 1 file changed, 24 insertions(+) diff --git a/cmd/mmc.c b/cmd/mmc.c index

[PATCH 1/4] mmc: EXT_CSD registers for write protection

2020-03-29 Thread Heinrich Schuchardt
Add the EXT_CSD register definition related to write protection. Signed-off-by: Heinrich Schuchardt --- include/mmc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mmc.h b/include/mmc.h index e83c22423b..4ecd6c744c 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -223,6 +223,9

[PATCH 0/4] mmc: manage boot area protection

2020-03-29 Thread Heinrich Schuchardt
This patch series adds sub-command 'mmc wp' to set the power on boot area protection on eMMC devices and enhances command 'mmc info' to display the boot area protection status. Heinrich Schuchardt (4): mmc: EXT_CSD registers for write protection mmc: export mmc_send_ext_csd() cmd: mmc:

RE: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-29 Thread Tan, Ley Foon
> -Original Message- > From: Marek Vasut > Sent: Monday, March 30, 2020 9:29 AM > To: Tan, Ley Foon ; u-boot@lists.denx.de > Cc: Ley Foon Tan ; See, Chin Liang > ; Simon Goldschmidt > > Subject: Re: [PATCH RESEND] arm: dts: agilex: Enable QSPI > > On 3/30/20 3:21 AM, Tan, Ley Foon

RE: [PATCH RESEND] arm: dts: agilex: Enable QSPI

2020-03-29 Thread Tan, Ley Foon
> -Original Message- > From: Marek Vasut > Sent: Monday, March 30, 2020 9:47 AM > To: Tan, Ley Foon ; u-boot@lists.denx.de > Cc: Ley Foon Tan ; See, Chin Liang > ; Simon Goldschmidt > > Subject: Re: [PATCH RESEND] arm: dts: agilex: Enable QSPI > > On 3/30/20 3:34 AM, Tan, Ley Foon

Re: [PATCH 1/3] riscv: Start using ldflags-y for 32/64bit LDFLAGS

2020-03-29 Thread Rick Chen
> From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Friday, March 27, 2020 9:52 PM > To: u-boot@lists.denx.de > Cc: Rick Jian-Zhi Chen(陳建志) > Subject: [PATCH 1/3] riscv: Start using ldflags-y for 32/64bit LDFLAGS > > To prepare to update our Kbuild logic, start switching some of our cases of >

RE: [PATCH 0/3] Program GIC LPI configuration table

2020-03-29 Thread Wasim Khan
Hi , Please help to review. Dependent patch https://patchwork.ozlabs.org/patch/1237847/ has already been accepted. > -Original Message- > From: Wasim Khan > Sent: Friday, February 14, 2020 11:05 AM > To: Priyanka Jain ; Udit Agarwal > ; Pankaj Bansal > Cc: u-boot@lists.denx.de;

[PATCH v4 8/8] mkimage: fit_image: Add option to make fit header align

2020-03-29 Thread Kever Yang
The image is usually stored in block device like emmc, SD card, make the offset of image data aligned to block(512 byte) can avoid data copy during boot process. eg. SPL boot from FIT image with external data: - SPL read the first block of FIT image, and then parse the header; - SPL read image

Re: [PATCH v3 8/8] mkimage: fit_image: Add option to make fit header align

2020-03-29 Thread Kever Yang
Hi Tom, On 2020/3/28 上午2:16, Tom Rini wrote: On Thu, Mar 26, 2020 at 06:09:16PM +0800, Kever Yang wrote: The image is usually stored in block device like emmc, SD card, make the offset of image data aligned to block(512 byte) can avoid data copy during boot process. eg. SPL boot from FIT

Re: [RFC 0/7] mx6cuboxi: enable OF_PLATDATA with MMC support

2020-03-29 Thread Baruch Siach
Hi Walter, On Mon, Mar 30 2020, Walter Lozano wrote: > The SPL in iMX6 boards is restricted to 68 KB as this is the free available > space in OCRAM for most revisions. In this context, adding OF_CONTROL and DM > increases the SPL size which could make it difficult to add specific features >

Antwort: Re: [RFC PATCH v2] arch: x86: apl: Read FSP-M configuration from device-tree

2020-03-29 Thread Bernhard Messerklinger
Hi Simon, >> With this patch I moved the fsp-m configuration to the device-tree >> based on the baytrail boards. >> I have tried to build it so that only entries that differ from the >> default configuration need to be added. As a minimum the ddr >> configuration must be present. >> If you like

Re: [PATCH 0/4] Fixes for rv1108 and rv1108-elgin-r1

2020-03-29 Thread Kever Yang
On 2020/3/26 下午8:20, Otavio Salvador wrote: Hello, On Fri, Mar 13, 2020 at 2:42 PM Otavio Salvador wrote: Those are fixes we've been using and we'd like to upstream. They are fixes and would be great to have them included on 2020.04 release. Otavio Salvador (4): ARM: dts: Activate

Re: [PATCH v2 2/2] rockchip: video: Convert to use APIs which support live DT

2020-03-29 Thread Kever Yang
Hi Simon, On 2020/3/29 上午4:05, Simon Glass wrote: Hi Kever, On Thu, 26 Mar 2020 at 07:37, Kever Yang wrote: Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- Changes in v2: - use dev_read_s32() instead of