Re: [U-Boot] [PATCH v3 4/7] remoteproc: add elf file load support

2019-07-22 Thread Patrick DELAUNAY
Hi Lokesh, Thanks for the review. Fabien is in vacation and I will integrate this serie in my next stm32 pull request. > From: Lokesh Vutla > Sent: lundi 3 juin 2019 07:31 > > > > On 31/05/19 6:41 PM, Fabien Dessenne wrote: > > The current implementation supports only binary file load. > > A

[U-Boot] [PATCH] armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

2019-07-22 Thread Alison Wang
This patch defines CONFIG_ENV_ADDR for QSPI Boot which specifies the start address of the flash sector containing the environment. It fixes the issue that bootcmd is always set as default at bootup. Signed-off-by: Alison Wang --- include/configs/ls1046afrwy.h | 3 +++ 1 file changed, 3 insertion

[U-Boot] [PATCH v10 0/4] Update SiFive Unleashed Drivers

2019-07-22 Thread Anup Patel
This series update SiFive Unleashed clock driver and Cadence MACB driver so that: 1. It is in sync with upstream Linux driver 2. It uses latest DT bindings as-per upstream Linux driver With this series, we can now use latest DT bindings with U-Boot. I have tested SiFive Serial driver and Cadence M

[U-Boot] [PATCH v10 1/4] net: macb: Extend MACB driver for SiFive Unleashed board

2019-07-22 Thread Anup Patel
The SiFive MACB ethernet has a custom TX_CLK_SEL register to select different TX clock for 1000mbps vs 10/100mbps. This patch adds SiFive MACB compatible string and extends the MACB ethernet driver to change TX clock using TX_CLK_SEL register for SiFive MACB. Signed-off-by: Anup Patel Reviewed-b

[U-Boot] [PATCH v10 3/4] riscv: sifive: fu540: Sync-up config header with RISC-V QEMU support

2019-07-22 Thread Anup Patel
We typically use same set of distro images (yocto, debian, fedora, etc.) on both QEMU RISC-V virt machine and SiFive Unleashed board. With growing kernel and ramdisk images, we need to re-adjust default U-Boot environment variables. The config header for QEMU RISC-V virt machine has been already u

[U-Boot] [PATCH v10 2/4] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-07-22 Thread Anup Patel
Instead of depending on CONFIG_SYS_LITTLE_ENDIAN, we check at runtime whether underlying system is little-endian or big-endian. This way we are not dependent on any U-Boot specific OR compiler specific macro to check system endianness. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by:

[U-Boot] [PATCH v10 4/4] doc: sifive-fu540: Update README to explicitly load DTB for Linux

2019-07-22 Thread Anup Patel
We should explicitly load DTB from TFTP server or MMC/SD card for Linux booting. This will allow us: 1. To use different Linux DTB for SiFive Unleashed board with expansion board connected. 2. Avoid re-flashing OpenSBI firmware whenever board connections change. This patch updates reference

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

2019-07-22 Thread Schrempf Frieder
On 22.07.19 04:12, Peng Fan wrote: > V3: > Drops patch 1/5 from V2, add 8QM support, nothing else changed. > Stefano, > This patchset was pending in patchwork for more that one month, > please consider to apply. I'm not the one to judge here and I don't know the rules for U-Boot, but only

Re: [U-Boot] [RFC PATCH 01/14] dfu: cosmetic: cleanup sf to avoid checkpatch error

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Signed-off-by: Patrick Delaunay > --- > > drivers/dfu/dfu.c| 7 --- > drivers/dfu/dfu_sf.c | 4 ++-- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c > index 3189495..eb3a3c6 100644 > --- a/drivers/dfu/dfu.c > +++ b

Re: [U-Boot] [RFC PATCH 02/14] dfu: sf: add partition support for nor backend

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Copy the partition support from NAND backend to SF, > support part and partubi option. > In case of ubi partition, erase the rest of the > partition as it is mandatory for UBI. > > for example: > > U-Boot> env set dfu_alt_info "spl part 0 1;\ > u-boot part 0 2;u-boot-env part 0 3;U

Re: [U-Boot] [RFC PATCH 03/14] dfu: prepare the support of multiple interface

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Split the function dfu_config_entities with 2 new functions > - dfu_alt_init > - dfu_alt_add Ok. > > Signed-off-by: Patrick Delaunay > --- > > drivers/dfu/dfu.c | 51 > +++ include/dfu.h > | 2 ++ 2 files changed, 41 insertions(+),

Re: [U-Boot] [RFC PATCH 04/14] dfu: allow to manage DFU on several devices

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Add support of DFU for several interface/device > with one command. > > The format for "dfu_alt_info" in this case is : > interface with devstring'='alternate list (';' separated) > and each interface is separated by '&' > > The previous behavior is always supported. Good. >

Re: [U-Boot] [RFC PATCH 05/14] dfu: allow read with 0 data for EOF indication

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > This patch allows into the DFU backend to indicate that there is no > remaining data (for EOF for example). That allows users to read a > buffer greater than the device size; the dfu stack stops the read > request when the backend return a length=0 without error. > > Signed-off-by:

[U-Boot] [PATCH] rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module

2019-07-22 Thread Chuanhua Han
This patch add an implementation of the rtc_enable_32khz_output() that uses the driver model i2c APIs. Signed-off-by: Chuanhua Han --- drivers/rtc/ds3231.c | 17 + include/rtc.h| 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds32

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

2019-07-22 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V3 0/5] add i.MX8 container loading support > > On 22.07.19 04:12, Peng Fan wrote: > > V3: > > Drops patch 1/5 from V2, add 8QM support, nothing else changed. > > Stefano, > > This patchset was pending in patchwork for more that one month, > > please consider

Re: [U-Boot] [RFC PATCH 06/14] dfu: add backend for MTD device

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Add DFU backend for MTD device: allow to read > and write on any MTD device (RAW or SPI) > > For example : > > set dfu_alt_info "nand_raw raw 0x0 0x10" > > dfu 0 mtd nand0 > > This MTD backend provides the same level than dfu nand > backend for NAND in RAW mode and sf backend

Re: [U-Boot] [RFC PATCH 07/14] dfu: add partition support for MTD backend

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Add the support of MTD partition for the MTD backend. > > The expected dfu_alt_info for one alternate on the mtd device : >part > partubi > > "partubi" also erase up to the end of the partition after write > operation. > > For example: dfu_alt_info = "spl part 1

[U-Boot] [PATCH] ARM: dts: Sync Amlogic G12A with Linux 5.3-rc1

2019-07-22 Thread Neil Armstrong
Sync the Amlogic Meson G12A DT and Bindings file with the Linux 5.3-rc1 from the commit 5f9e832c1370 ("Linus 5.3-rc1"). Also remove the meson-g12a-u-boot.dtsi and meson-g12a-u200-u-boot.dtsi, now conflicting with the main DT content. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12a-u-b

Re: [U-Boot] [RFC PATCH 08/14] dfu: add DFU virtual backend

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Add a virtual DFU backend to allow board specific read and write > (for OTP update for example). This looks like a great enhancement. Please add detailed documentation entry of its intended usage. > > Signed-off-by: Patrick Delaunay > --- > > drivers/dfu/Kconfig| 7 +++

Re: [U-Boot] [RFC PATCH 09/14] dfu: add callback for flush and initiated operation

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > Add weak callback to allow board specific behavior > - flush > - initiated > > This patch prepare usage of DFU back end for communication with > STM32CubeProgrammer on stm32mp1 platform with stm32prog command. Would the stm32prog need to modify the environment variables ? For examp

Re: [U-Boot] [RFC PATCH 00/14] dfu: update dfu stack and use them for stm32mp1

2019-07-22 Thread Lukasz Majewski
Hi Patrick, > This serie based on v2019.07 propose some update on the DFU stack: > - add capability to have several DFU backend running in parallel > - add MTD backend for NAND, NOR or SPI-NAND > - add VIRTUAL backend for board/command specific behavior > - add some weak callback > > To test the

[U-Boot] [RESEND PATCH] distro_bootcmd: refactor virtio to support PCI block devices

2019-07-22 Thread David Abdurachmanov
Starting libvirt v5.3.0 with QEMU 4.0.0 use of PCI is automatic and thus storage is connected via PCI, which is not visible to U-Boot out-of-the-box. Refactor to do "pci enum" followed by "virtio scan" to see PCI connected storage, and allow bootloader to load kernel and initramfs images. Tested

[U-Boot] [PATCH v3 1/5] armv8: ls2088a: The ls2088a platform supports the I2C driver model.

2019-07-22 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls2088a platform does not support dm. Signed-off-b

[U-Boot] [PATCH v3 2/5] gpio: do not include on ARCH_LS2080A

2019-07-22 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls2080a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Chan

[U-Boot] [PATCH v3 3/5] configs: ls2088a: enable DM support for rtc

2019-07-22 Thread Chuanhua Han
Enable related configs to support rtc DM feature for ls2088ardb board. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change in v3: - Add configuration op

[U-Boot] [PATCH v3 4/5] armv8: dts: fsl-ls2088a: add i2c node support

2019-07-22 Thread Chuanhua Han
From: chuanhua han One ls2088a, there is four I2C controllers. This patch is to add I2C node for ls2088a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change

[U-Boot] [PATCH v3 5/5] armv8: dts: ls2088ardb: Add slave nodes under the i2c0 controller

2019-07-22 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change in v3:

[U-Boot] [PATCH v1] colibri_imx7: provide proper node name to pmic_get

2019-07-22 Thread Igor Opaniuk
From: Igor Opaniuk Implementation of pmic_get() uses uclass_find_device_by_name(), which behaviour was changed in 4213609cc7 ("drivers: core: use strcmp when find device by name"). Now we have to supply full node name with unit address. Fixes boot issue: U-Boot 2019.07-00788-g0ef6e69a1e-dirty (J

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

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

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

2019-07-22 Thread Schrempf Frieder
On 22.07.19 10:08, Peng Fan wrote: >> Subject: Re: [U-Boot] [PATCH V3 0/5] add i.MX8 container loading support >> >> On 22.07.19 04:12, Peng Fan wrote: >>> V3: >>>Drops patch 1/5 from V2, add 8QM support, nothing else changed. >>>Stefano, >>>This patchset was pending in patchwork for mo

[U-Boot] [PATCH] mmc: stm32_sdmmc2: Increase SDMMC_BUSYD0END_TIMEOUT_US

2019-07-22 Thread Patrice Chotard
Increase SDMMC_BUSYD0END_TIMEOUT_US from 1s to 2s to avoid timeout error during blocks erase on some sdcard Issue seen on Kingston 16GB : Device: STM32 SDMMC2 Manufacturer ID: 27 OEM: 5048 Name: SD16G Bus Speed: 5000 Mode: SD High Speed (50MHz) card capabilities: widths [4, 1] mo

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

2019-07-22 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V3 0/5] add i.MX8 container loading support > > On 22.07.19 10:08, Peng Fan wrote: > >> Subject: Re: [U-Boot] [PATCH V3 0/5] add i.MX8 container loading > >> support > >> > >> On 22.07.19 04:12, Peng Fan wrote: > >>> V3: > >>>Drops patch 1/5 from V2, add 8QM supp

[U-Boot] [PATCH 0/3] amlogic: Add support for Odroid-N2

2019-07-22 Thread Neil Armstrong
ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd with the following specifications: - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC - 4GB DDR4 SDRAM - Gigabit Ethernet - HDMI 2.1 4K/60Hz display - 40-pin GPIO header - 4 x USB 3.0 Host, 1 x USB OTG

[U-Boot] [PATCH 1/3] ARM: dts: add support for Odroid-N2

2019-07-22 Thread Neil Armstrong
Import HardKernel Odroid-N2 DT from Linux 5.3-rc1, commit 5f9e832c1370 ("Linus 5.3-rc1") based on an Amlogic G12B S922X SoC. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-g12b-odroid-n2.dts | 386 ++ arch/arm/

[U-Boot] [PATCH 2/3] ARM: meson-g12a: Handle 4GiB DRAM size

2019-07-22 Thread Neil Armstrong
When configured with 4GiB DRAM size, only 3.8GiB is available, the I/O beeing mapped in the last 256MiB of the first 4GiB physical memory/ First fixup the mm_region to handle the first 3.8GiB as memory and the last 256MiB as I/O. Then limit the real memory reported by the firmware to the availabl

[U-Boot] [PATCH 3/3] board: amlogic: add support for Odroid-N2

2019-07-22 Thread Neil Armstrong
ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd with the following specifications: - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC - 4GB DDR4 SDRAM - Gigabit Ethernet - HDMI 2.1 4K/60Hz display - 40-pin GPIO header - 4 x USB 3.0 Host, 1 x USB OTG

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

2019-07-22 Thread Jagan Teki
On Mon, Jul 22, 2019 at 8:41 AM Weijie Gao wrote: > > The original mtk_qspi driver has been removed. We change MT7629 to use > newly added mtk-spimem driver. > > Signed-off-by: Weijie Gao > --- > Changes since v1: rename node spimem to snfi. change pinctrl name and order. > Changes since v2: none

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

2019-07-22 Thread Jagan Teki
On Mon, Jul 22, 2019 at 9:05 AM Weijie Gao wrote: > > This patch adds spi-mem driver for MediaTek MT7629 SoC to access SPI-NOR > and SPI-NAND flashes. > > Cc: Jagan Teki > Signed-off-by: Weijie Gao Reviewed-by: Jagan Teki Applied by squashed with 5/5 __

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

2019-07-22 Thread Jagan Teki
On Mon, Jul 22, 2019 at 8:50 AM Weijie Gao wrote: > > Since u-boot has added the spi-mem framework and replaced the spi-nor > framework, the mtk_qspi is no longer compatible with the new spi-nor > driver. > > Remove this driver, and a new driver will be added later. > > Cc: Jagan Teki > Signed-of

[U-Boot] [PATCH 1/3] spi: Add spi_write_then_read

2019-07-22 Thread Jagan Teki
Add support for SPI synchronous write followed by read, this is common interface call from spi-nor to spi drivers. Reviewed-by: Simon Glass Signed-off-by: Jagan Teki --- drivers/spi/spi-uclass.c | 24 include/spi.h| 20 2 files changed,

[U-Boot] [PATCH 2/3] mtd: spi_dataflash: Use spi read then write

2019-07-22 Thread Jagan Teki
Now, we have spi_write_then_read routine that would handle spi_xfer handling based on the tx_buf and rx_buf parameters. So, replace individual flash read/write/cmd transfer call with spi_write_then_read. Cc: Egnite GmbH Cc: Daniel Gorsulowski Cc: Ilko Iliev Cc: Marek Vasut Cc: Mateusz Kulikow

[U-Boot] [PATCH 3/3] mtd: spi: Drop sf.c

2019-07-22 Thread Jagan Teki
spi_write_then_read, will manage to do the respective spi_xfer based on the tx_buf, rx_buf so drop the legacy spi_flash_read/write/cm code. Signed-off-by: Jagan Teki --- drivers/mtd/spi/Makefile | 2 +- drivers/mtd/spi/sf.c | 53 --- drivers/mtd/spi

Re: [U-Boot] [PATCH v3 3/4] cmd: bcb: Use strcmp() instead of strncmp() for string literals

2019-07-22 Thread Igor Opaniuk
On Sat, Jul 20, 2019 at 12:28 AM Eugeniu Rosca wrote: > > Quote from https://patchwork.ozlabs.org/patch/1104244/#2210814: > > --8<--- > strncmp() is chosen for the sake of paranoid/defensive programming. > Indeed, strncmp() is not really needed when comparing a variable > with a s

[U-Boot] [PATCH 00/35] rockchip: Migrate to use common SPL board file

2019-07-22 Thread Kever Yang
Rockchip SoCs have similar boot process, we can re-use the same SPL board file for all SoCs, and avoid too much copy-paste overhead. Kever Yang (35): rockchip: remove redundant CONFIG_SYS_NS16550_MEM32 rockchip: add CONFIG_IRAM_BASE for all SoCs rockchip: intruduce common BROM_BOOTSOURCE_

[U-Boot] [PATCH 01/35] rockchip: remove redundant CONFIG_SYS_NS16550_MEM32

2019-07-22 Thread Kever Yang
The CONFIG_SYS_NS16550_MEM32 already defined in rockchip_common.h, no need to define again in soc level header. Signed-off-by: Kever Yang --- include/configs/rk3188_common.h | 2 -- include/configs/rk3328_common.h | 2 -- include/configs/rk3368_common.h | 2 -- include/configs/rk3399_common.h |

[U-Boot] [PATCH 02/35] rockchip: add CONFIG_IRAM_BASE for all SoCs

2019-07-22 Thread Kever Yang
Rockchip SoCs have internal sram for bootrom data area and for sdram init program space. Introduce the base address in case we need to use it. Signed-off-by: Kever Yang --- include/configs/rk3128_common.h | 2 ++ include/configs/rk3188_common.h | 1 + include/configs/rk322x_common.h | 1 + incl

[U-Boot] [PATCH 03/35] rockchip: intruduce common BROM_BOOTSOURCE_ID_ADDR

2019-07-22 Thread Kever Yang
The boot source from BootRom is store at a fix offset of IRAM, update to use the common macro instead of rk3399 specific one. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/bootrom.h | 2 +- arch/arm/mach-rockchip/rk3399-board-spl.c| 2 +- 2 files changed, 2 insertions(+),

[U-Boot] [PATCH 04/35] rockchip: declear boot_devices in bootrom.h

2019-07-22 Thread Kever Yang
boot_devices may defined in soc file, and used in board file, we need to delear it in header file. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/bootrom.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-rockchip/bootrom.h b/arch/arm/include/as

[U-Boot] [PATCH 05/35] rockchip: add common spl board file

2019-07-22 Thread Kever Yang
The common spl board file handles board_init_f() in SPL, and with board_early_init_f() and arch_cpu_init() callback, other operateion after board_init_f() should go to board specific spl_board_init(). Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 8 ++ arch/arm/mach-rockchip

[U-Boot] [PATCH 06/35] rockchip: rk3188: init CPU freq in clock driver

2019-07-22 Thread Kever Yang
Init CPU frquency in clock driver instead of in SPL board file, this will help for use common board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188-board-spl.c | 22 -- drivers/clk/rockchip/clk_rk3188.c | 3 +++ 2 files changed, 3 insertions(

[U-Boot] [PATCH 07/35] rockchip: rk3188: move usb uart init into arch_cpu_init()

2019-07-22 Thread Kever Yang
The SoC feature init will be better to use arch_cpu_init() and goes to soc file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188-board-spl.c | 27 +- arch/arm/mach-rockchip/rk3188/rk3188.c| 28 ++- 2 files changed, 33 insertions(+), 22 del

[U-Boot] [PATCH 08/35] rockchip: Migrate to use BOOTROM_SUPPORT driver

2019-07-22 Thread Kever Yang
SPL bootrom support is a boot device just like mmc and etc, use formal boot device instead of jump to bootrom directly. Enable the Kconfig by default if ROCKCHIP_BACK_TO_BROM is enabled. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 9 +++-- arch/arm/mach-rockch

[U-Boot] [PATCH 09/35] rockchip: rk3188: move spl_board_init() into rk3188.c

2019-07-22 Thread Kever Yang
Clean up the rk3188.c so that we can re-use the common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188-board-spl.c | 36 --- arch/arm/mach-rockchip/rk3188/rk3188.c| 36 +++ 2 files changed, 36 insertions(+), 36 deletions(-)

[U-Boot] [PATCH 10/35] rockchip: rk3188: add boot_devices mapping to support 'same-as-spl'

2019-07-22 Thread Kever Yang
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188/rk3188.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c index 7a0b10a27d..0879

[U-Boot] [PATCH 11/35] rockchip: rk3188: migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk3188 has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3188-board-spl.c | 119 ---

[U-Boot] [PATCH 12/35] rockchip: rk322x: introduce arch_cpu_init() for SoC setting init

2019-07-22 Thread Kever Yang
Use arch_cpu_init() to init SoC secure region and move it to rk322x.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board-spl.c | 10 ++ arch/arm/mach-rockchip/rk322x/rk322x.c| 12 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/arm/ma

[U-Boot] [PATCH 13/35] rockchip: rk322x: migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk322x has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk322x-board-spl.c | 78 --

[U-Boot] [PATCH 14/35] rockchip: rk322x: add boot_devices mapping to support 'same-as-spl'

2019-07-22 Thread Kever Yang
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x/rk322x.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk322x/rk322x.c b/arch/arm/mach-rockchip/rk322x/rk322x.c index c8c656ab4b..a867

[U-Boot] [PATCH 15/35] rockchip: fit_spl_optee: rockchip: fix warning unit_address_vs_reg

2019-07-22 Thread Kever Yang
Update to fix warning: u-boot.itb.tmp: Warning (unit_address_vs_reg): Node /images/uboot@1 has a unit name, but no reg property u-boot.itb.tmp: Warning (unit_address_vs_reg): Node /images/optee@1 has a unit name, but no reg property u-boot.itb.tmp: Warning (unit_address_vs_reg): Node /images/fdt@1

[U-Boot] [PATCH 16/35] rockchip: rk3288: show SPL BANNER earlier in board_init_f()

2019-07-22 Thread Kever Yang
Show the SPL BANNER earlier so that we know already get into SPL. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board-spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.

[U-Boot] [PATCH 17/35] rockchip: rk3288: move setup_led() to firefly-rk3288

2019-07-22 Thread Kever Yang
Only firefly-rk3288 has the dts node "u-boot,boot-led", while CONFIG_SPL_LED is not enable, move code to firefly-rk3288 now in case someone need this code. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 - arch/arm/mach-rockchip/rk3288-board-spl.c | 36

[U-Boot] [PATCH 18/35] rockchip: rk3288-phycore: move phycore_init() to its own board file

2019-07-22 Thread Kever Yang
phycore_init() is use for phycore board only, it should be move back to phycore-rk3288.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board-spl.c| 39 arch/arm/mach-rockchip/rk3288/Kconfig| 1 + board/phytec/phycore_rk3288/phycore-rk3288.c | 47 +

[U-Boot] [PATCH 19/35] rockchip: rk3288: move dram_init_banksize() into soc file

2019-07-22 Thread Kever Yang
Mov edram_init_banksize() into rk3288.c so that we can re-use the common SPL board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board-spl.c | 15 --- arch/arm/mach-rockchip/rk3288/rk3288.c| 15 +++ 2 files changed, 15 insertions(+), 15 dele

[U-Boot] [PATCH 20/35] rockchip: rk3288: Migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk3288 has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3288-board-spl.c | 158 ---

[U-Boot] [PATCH 21/35] rockchip: phycore: remove no use "u-boot, boot0" in dts

2019-07-22 Thread Kever Yang
We are using "u-boot,spl-boot-order" now and re-use the definition from rk3288-u-boot.dtsi, so remove it directly here. Signed-off-by: Kever Yang --- arch/arm/dts/rk3288-phycore-rdk.dts | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/dts/rk3288-phycore-rdk.dts b/arch/arm/dts/r

[U-Boot] [PATCH 22/35] rockchip: rk3288-veyron: Migrate "u-boot, boot0" to "u-boot, spl-boot-order"

2019-07-22 Thread Kever Yang
"u-boot,spl-boot-order" is more flexible and other rockchip SoCs has convert to use it, migrate to use the new dts property. Signed-off-by: Kever Yang --- arch/arm/dts/rk3288-veyron.dtsi | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/a

[U-Boot] [PATCH 23/35] rockchip: rk3288: add boot_devices mapping to support 'same-as-spl'

2019-07-22 Thread Kever Yang
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288/rk3288.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c index 2526c04c58..de9e

[U-Boot] [PATCH 24/35] rockchip: rk3328: add STIMER_BASE definition

2019-07-22 Thread Kever Yang
Add the CONFIG_ROCKCHIP_STIMER_BASE so that we can use the stimer init function in tpl.c and spl.c Signed-off-by: Kever Yang --- include/configs/rk3328_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h index 1cf45bbb

[U-Boot] [PATCH 25/35] rockchip: rk3328: migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk3328 has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3328-board-spl.c | 58 --

[U-Boot] [PATCH 26/35] rockchip: rk3328: add boot_devices mapping to support 'same-as-spl'

2019-07-22 Thread Kever Yang
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3328/rk3328.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c index 1cf829dc34..222a

[U-Boot] [PATCH 27/35] rockchip: rk3368: migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk3368 has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3368-board-spl.c | 80 --

[U-Boot] [PATCH 28/35] rockchip: rk3368: add boot_devices mapping to support 'same-as-spl'

2019-07-22 Thread Kever Yang
The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3368/rk3368.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3368/rk3368.c b/arch/arm/mach-rockchip/rk3368/rk3368.c index 47786f52ee..c75a

[U-Boot] [PATCH 29/35] rockchip: rk3399: move spl_perform_fixups() into soc file

2019-07-22 Thread Kever Yang
Move the spl_perform_fixups() into rk3399.c so that we can use common spl board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399-board-spl.c | 48 -- arch/arm/mach-rockchip/rk3399/rk3399.c| 50 +++ 2 files changed, 50 insertions

[U-Boot] [PATCH 30/35] rockchip: rk3399: show SPL BANNER earlier in board_init_f()

2019-07-22 Thread Kever Yang
Show the SPL BANNER earlier so that we know already get into SPL. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399-board-spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3399-board-spl.c b/arch/arm/mach-rockchip/rk3399-board-spl.

[U-Boot] [PATCH 31/35] rockchip: rk3399: move SoC setting into arch_cpu_init()

2019-07-22 Thread Kever Yang
SoC setting like DDR secure region and EMMC clock setting should go to arch_cpu_init(). Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399-board-spl.c | 27 ++- arch/arm/mach-rockchip/rk3399/rk3399.c| 25 ++--- 2 files changed, 29 insertions(+),

[U-Boot] [PATCH 32/35] rockchip: rk3399; move spl_board_init() into soc file

2019-07-22 Thread Kever Yang
Move spl_board_init() into rk3399.c so that we can re-use the common SPL board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399-board-spl.c | 61 - arch/arm/mach-rockchip/rk3399/rk3399.c| 64 ++- 2 files changed, 63 insertions(+

[U-Boot] [PATCH 33/35] rockchip: rk3399: move boot_devices into soc file

2019-07-22 Thread Kever Yang
Move boot_devices definition into rk3399.c, so that we can share the common code for board_spl_was_booted_from(). Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399-board-spl.c | 6 +- arch/arm/mach-rockchip/rk3399/rk3399.c| 7 +++ 2 files changed, 8 insertions(+), 5 deleti

[U-Boot] [PATCH 34/35] rockchip: rk3399: move chromebook bob specific flow to its board file

2019-07-22 Thread Kever Yang
Add a board_early_init_f() in board_init_f() and move the board specific init code into its own board file. Signed-off-by: Kever Yang --- .../arm/include/asm/arch-rockchip/sys_proto.h | 4 arch/arm/mach-rockchip/rk3399-board-spl.c | 20 ++ board/google/gru/gru.c

[U-Boot] [PATCH 35/35] rockchip: rk3399: Migrate to use common spl board file

2019-07-22 Thread Kever Yang
rk3399 has similar boot flow in SPL with other Rockchip SoCs, migrate to use common spl board file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3399-board-spl.c | 117 ---

[U-Boot] [PATCH 00/24] rockchip: Migrate to use common board file

2019-07-22 Thread Kever Yang
Rockchip SoCs have similar boot process, we can re-use the same U-Boot proper board file for all SoCs, and avoid too much copy-paste overhead. Kever Yang (24): rockchip: rk3328: add board_debug_uart_init() rockchip: convert to use ROCKCHIP_BOOT_MODE_REG for fastboot tag rockchip: clean up

[U-Boot] [PATCH 01/24] rockchip: rk3328: add board_debug_uart_init()

2019-07-22 Thread Kever Yang
Add board_debug_uart_init() to make the debug UART work with correct setting. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3328/rk3328.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3

[U-Boot] [PATCH 02/24] rockchip: convert to use ROCKCHIP_BOOT_MODE_REG for fastboot tag

2019-07-22 Thread Kever Yang
The fastboot_set_reboot_flag() update a TAG into a register for next boot, use the common macro for the register so that we can re-use the function for different SoCs. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3128-board.c | 5 + arch/arm/mach-rockchip/rk322x-board.c | 5 +

[U-Boot] [PATCH 03/24] rockchip: clean up board_usb_init() for all SoCs

2019-07-22 Thread Kever Yang
Use "snps,dwc2" for compatible name and and common variable names so that we can share the common code for all SoCs. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036-board.c | 10 +++--- arch/arm/mach-rockchip/rk3128-board.c | 10 +++--- arch/arm/mach-rockchip/rk322x-board.c | 10

[U-Boot] [PATCH 04/24] rockchip: add common board file for U-Boot proper

2019-07-22 Thread Kever Yang
Add common board file for Rockchip SoCs to avoid too much copy-paste work for different SoCs. This board file in charge for common board_init() and board_late_init() in U-Boot proper. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 7 +++ arch/arm/mach-rockchip/Makefile | 1

[U-Boot] [PATCH 05/24] rockchip: sdram_common: add common dram_init_banksize

2019-07-22 Thread Kever Yang
dram_init_banksize() can be common used by all SoCs, move it into sdram_common.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3128-board.c | 13 -- arch/arm/mach-rockchip/rk3128/rk3128.c | 3 ++ arch/arm/mach-rockchip/rk322x-board.c | 13 -- arch/arm/mach-rockchip/rk3328/rk

[U-Boot] [PATCH 06/24] rockchip: rk3036: move dram_init() into soc file

2019-07-22 Thread Kever Yang
Move dram_init() into rk3036.c so that we can use to common board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036-board.c | 14 -- arch/arm/mach-rockchip/rk3036/rk3036.c | 16 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/

[U-Boot] [PATCH 07/24] rockchip: rk3036: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3036-board.c | 88 ---

[U-Boot] [PATCH 08/24] rockchip: rk3128: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3128-board.c | 107

[U-Boot] [PATCH 09/24] rockchip: rk322x: move SoC setting into arch_cpu_init()

2019-07-22 Thread Kever Yang
The SoC one time setting should go to arch_cpu_init() in rk322x.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board.c | 14 -- arch/arm/mach-rockchip/rk322x/rk322x.c | 11 +++ 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-roc

[U-Boot] [PATCH 10/24] rockchip: rk322x: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk322x-board.c | 97 ---

[U-Boot] [PATCH 11/24] rockchip: rk3188: Move SoC one time setting into arch_cpu_init()

2019-07-22 Thread Kever Yang
The setting for noc remap should goto arch_cpu_init(). Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188-board.c | 15 --- arch/arm/mach-rockchip/rk3188/rk3188.c | 16 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-rockchip

[U-Boot] [PATCH 12/24] rockchip: rk3188: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3188-board.c | 38 ---

[U-Boot] [PATCH 13/24] rockchip: rk3288: move SOC setting into arch_cpu_init()

2019-07-22 Thread Kever Yang
Qos setting and emmc relate SoC setting should go to arch_cpu_init(). Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board.c | 30 -- arch/arm/mach-rockchip/rk3288/rk3288.c | 30 ++ 2 files changed, 30 insertions(+), 30 deletions(-)

[U-Boot] [PATCH 14/24] rockchip: rk3288: move board_early_init_f() back to veyron

2019-07-22 Thread Kever Yang
The board_early_init_f() is only used by veyron board now, move it into the board file veyron.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board.c | 19 --- board/google/veyron/veyron.c | 20 2 files changed, 20 insertions(+), 19 de

[U-Boot] [PATCH 15/24] rockchip: rk3288: Move veyron_init() back to veyron.c

2019-07-22 Thread Kever Yang
The veyron_init() should go to its board file veyron.c, and the board_early_init_f() could be the right place. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board.c | 65 --- board/google/veyron/veyron.c | 63 ++ 2 files cha

[U-Boot] [PATCH 16/24] rockchip: rk3288: Move clock CMD to SoC file

2019-07-22 Thread Kever Yang
Move the do_clock CMD to rk3288.c so that we can re-use the common board file later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board.c | 51 arch/arm/mach-rockchip/rk3288/rk3288.c | 55 ++ 2 files changed, 55 insertions(+), 51

[U-Boot] [PATCH 17/24] rockchip: rk3288: Move rk3288_detect_reset_reason to soc file

2019-07-22 Thread Kever Yang
The rk3288_detect_reset_reason() is per-SoC operation, move it to rk3288.c, and extend the rk_board_late_init() with rk3288_board_late_init() to make all the board works fine as before. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288-board.c | 38 -- arch/arm/mac

[U-Boot] [PATCH 18/24] rockchip: rk3288: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3288-board.c | 91 ---

[U-Boot] [PATCH 19/24] rockchip: rk3328: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 1 + board/rockchip/evb_rk3328/evb-rk3328.c | 64 -- 2 files changed, 1 insertion(+), 64 del

[U-Boot] [PATCH 20/24] rockchip: rk3328: Migrate to use common board file

2019-07-22 Thread Kever Yang
Use common board file for board_init() and board_late_init(), for Rockchip SoCs have very similar process. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 1 + board/rockchip/evb_px5/evb-px5.c | 6 -- board/rockchip/sheep_rk3368/sheep_rk3368.c

  1   2   3   >