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
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
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
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
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
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:
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
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
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
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
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(+),
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.
>
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:
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
> 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
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
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
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
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 +++
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
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
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
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
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
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
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
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:
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
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
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
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
> 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
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
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/
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
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
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
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
__
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
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,
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
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
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
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_
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 |
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
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(+),
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
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
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(
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
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
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(-)
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
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 ---
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
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 --
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
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
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.
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
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 +
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
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 ---
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,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
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
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
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 --
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
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 --
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
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
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.
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(+),
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(+
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
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
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 ---
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
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
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 +
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
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
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
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/
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 ---
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
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
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 ---
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
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 ---
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(-)
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
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
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
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
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 ---
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
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 - 100 of 236 matches
Mail list logo