mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 23:33:00 +00:00
ee75f16868
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x40000, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB Use 0xE0000 (896 KB) as the payload offset in SPI flash, this allows for a payload of 3168 KB before env offset start to overlap. Also add CONFIG_ROCKCHIP_SPI_IMAGE=y to build a bootable SPI flash image, u-boot-rockchip-spi.bin. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Quentin Schulz <foss+u-boot@0leil.net> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
60 lines
1.1 KiB
Text
60 lines
1.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 Levin Du <djw@t-chip.com.cn>
|
|
*/
|
|
|
|
#include "rk3399-u-boot.dtsi"
|
|
#include "rk3399-sdram-lpddr4-100.dtsi"
|
|
|
|
/ {
|
|
chosen {
|
|
u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc;
|
|
};
|
|
|
|
vcc_hub_en: vcc_hub_en-regulator {
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hub_rst>;
|
|
regulator-name = "vcc_hub_en";
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
/*
|
|
* should be placed inside mp8859, but not until mp8859 has
|
|
* its own dt-binding.
|
|
*/
|
|
&dc_12v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "dc_12v";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <12000000>;
|
|
regulator-max-microvolt = <12000000>;
|
|
vin-supply = <&vcc_vbus_typec0>;
|
|
};
|
|
|
|
&spi1 {
|
|
spi_flash: flash@0 {
|
|
bootph-all;
|
|
};
|
|
};
|
|
|
|
&vdd_log {
|
|
regulator-min-microvolt = <430000>;
|
|
regulator-init-microvolt = <950000>;
|
|
};
|
|
|
|
&vcc5v0_host {
|
|
regulator-always-on;
|
|
};
|
|
|
|
&vcc_sys {
|
|
regulator-always-on;
|
|
};
|
|
|
|
&vcc_sdio {
|
|
regulator-always-on;
|
|
};
|