mirror of
https://github.com/armbian/build.git
synced 2025-12-24 10:41:41 +01:00
Multiple bootloader creation options for rk3399 (#1614)
* Updated rockchip64-dev to u-boot v2019.10 and BL31 v1.30 (rk3399 boards) * Updated rk3399 to u-boot v2019.10 and BL31 v1.30 * Revert changes to renegade u-boot patches * Moved renegade u-boot patches into board dir * Added debug info for RockPro64 and switched sdmmc to fifo-mode * Disabled regulators in SPL for RockPro64 * Re-enabled sd vcc regulator in SPL for RockPro64 * Some device tree and config changes for OrangePi RK3399 * Fixed Rock Pi 4A's $BOOTCONFIG * Let some boards use mainline atf instead of the one in rkbin For example, roc-rk3399-pc can just boot the kernel using the mainline atf. * Add roc-rk3399-pc * Fixed reset in mainline ATF * Attached ATF version to v2.2 tag * WIP: sdmmc fifo-mode in SPL only * Renamed source config files * Reverted changes to rockchip64 sources config * Reverted patch moves * Add missing trust.ini patch to rk3399 u-boot * Reinstated tpl/spl patches in rk3399 family * Added $RKBIN_DIR prefix in rk3399 sources * Add demonstration of boards bootloader assignment in rk3399
This commit is contained in:
parent
7eb49d49a2
commit
1c9ef0872b
14
config/boards/roc-rk3399-pc.csc
Normal file
14
config/boards/roc-rk3399-pc.csc
Normal file
@ -0,0 +1,14 @@
|
||||
# RK3399 hexa core 4GB DDR4 SoC eMMC GBE USB3
|
||||
BOARD_NAME="ROC-RK3399-PC"
|
||||
BOARDFAMILY="rk3399"
|
||||
BOOTCONFIG="roc-rk3399-pc_defconfig"
|
||||
#
|
||||
MODULES=""
|
||||
MODULES_NEXT=""
|
||||
#
|
||||
KERNEL_TARGET="default,dev"
|
||||
CLI_TARGET="buster,bionic:default"
|
||||
DESKTOP_TARGET="buster,bionic:default"
|
||||
#
|
||||
CLI_BETA_TARGET="buster,bionic:dev"
|
||||
DESKTOP_BETA_TARGET=""
|
||||
@ -18,8 +18,8 @@ CPUMAX="2016000"
|
||||
CPUMIN="600000"
|
||||
|
||||
if [[ $BOOTCONFIG == *3328* ]]; then
|
||||
|
||||
ATF_TARGET_MAP='PLAT=rk322xh DEBUG=1 bl31;;trust.bin'
|
||||
|
||||
ATF_TARGET_MAP='PLAT=rk322xh DEBUG=1 bl31;;trust.bin'
|
||||
CPUMAX="1390000"
|
||||
|
||||
elif [[ $BOARD == rockpro64 ]] || [[ $BOARD == rockpi-4* ]]; then
|
||||
@ -55,9 +55,9 @@ case $BRANCH in
|
||||
KERNELPATCHDIR='rockchip64-'$BRANCH
|
||||
LINUXFAMILY=rockchip64
|
||||
LINUXCONFIG='linux-rockchip64-'$BRANCH
|
||||
|
||||
|
||||
;;
|
||||
|
||||
|
||||
esac
|
||||
|
||||
|
||||
@ -106,12 +106,13 @@ atf_custom_postprocess()
|
||||
family_tweaks()
|
||||
{
|
||||
|
||||
[[ $BOARD == firefly-rk3399 ]] && echo "fdtfile=rockchip/rk3399-firefly.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == nanopct4 ]] && echo "fdtfile=rockchip/rk3399-nanopc-t4.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == nanopim4 ]] && echo "fdtfile=rockchip/rk3399-nanopi-m4.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == nanopim4v2 ]] && echo "fdtfile=rockchip/rk3399-nanopi-m4.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == nanopineo4 ]] && echo "fdtfile=rockchip/rk3399-nanopi-neo4.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == orangepi-rk3399 ]] && echo "fdtfile=rockchip/rk3399-orangepi.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == firefly-rk3399 ]] && echo "fdtfile=rockchip/rk3399-firefly.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
[[ $BOARD == roc-rk3399-pc ]] && echo "fdtfile=rockchip/rk3399-roc-pc.dtb" >> $SDCARD/boot/armbianEnv.txt
|
||||
|
||||
if [[ $BOARD == z28pro ]]; then
|
||||
|
||||
@ -121,8 +122,8 @@ family_tweaks()
|
||||
elif [[ -f $SDCARD/lib/systemd/system/rk3399-bluetooth.service ]]; then
|
||||
|
||||
# install and enable Bluetooth
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools"
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable rk3399-bluetooth.service >/dev/null 2>&1"
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools"
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable rk3399-bluetooth.service >/dev/null 2>&1"
|
||||
|
||||
fi
|
||||
|
||||
@ -141,7 +142,7 @@ family_tweaks_bsp()
|
||||
install -m 755 $SRC/packages/bsp/rk3328/z28pro/start_bt.sh $destination/usr/local/bin
|
||||
cp $SRC/packages/bsp/rk3328/z28pro/z28pro-bluetooth.service $destination/lib/systemd/system/
|
||||
|
||||
elif [[ $BOARD == rockpi-4b || $BOARD == nanop* || $BOARD == orangepi* || BOARD == firefly* ]]; then
|
||||
elif [[ $BOARD == rockpi-4b || $BOARD == nanop* || $BOARD == orangepi* || $BOARD == firefly* || $BOARD == roc-rk3399-pc ]]; then
|
||||
|
||||
# Bluetooth for most of others
|
||||
install -m 755 $SRC/packages/bsp/rk3399/brcm_patchram_plus_rk3399 $destination/usr/bin
|
||||
|
||||
@ -16,11 +16,94 @@ case $BRANCH in
|
||||
|
||||
esac
|
||||
|
||||
RKBIN_DIR="$SRC/cache/sources/rkbin-tools"
|
||||
|
||||
if [[ $BOARD == roc-rk3399-pc ]]; then
|
||||
|
||||
BOOT_USE_MAINLINE_ATF=yes
|
||||
|
||||
elif [[ $BOARD == rockpi-4* ]]; then
|
||||
|
||||
BOOT_USE_TPL_SPL_BLOB=yes
|
||||
BL31_BLOB='rk33/rk3399_bl31_v1.30.elf'
|
||||
|
||||
elif [[ $BOARD == nanopim4v2 ]]; then
|
||||
|
||||
BOOT_USE_BLOBS=yes
|
||||
DDR_BLOB='rk33/rk3399_ddr_933MHz_v1.24.bin'
|
||||
MINILOADER_BLOB='rk33/rk3399_miniloader_v1.19.bin'
|
||||
BL31_BLOB='rk33/rk3399_bl31_v1.30.elf'
|
||||
|
||||
else
|
||||
|
||||
BOOT_USE_BLOBS=yes
|
||||
DDR_BLOB='rk33/rk3399_ddr_800MHz_v1.24.bin'
|
||||
MINILOADER_BLOB='rk33/rk3399_miniloader_v1.19.bin'
|
||||
BL31_BLOB='rk33/rk3399_bl31_v1.30.elf'
|
||||
|
||||
fi
|
||||
|
||||
if [[ $BOOT_USE_MAINLINE_ATF == yes ]]; then
|
||||
|
||||
UBOOT_TARGET_MAP="BL31=bl31.bin idbloader.img u-boot.itb;;idbloader.img u-boot.itb"
|
||||
ATFSOURCE='https://github.com/ARM-software/arm-trusted-firmware'
|
||||
ATFDIR='arm-trusted-firmware'
|
||||
ATFBRANCH='tag:v2.2'
|
||||
ATF_USE_GCC='> 6.3'
|
||||
ATF_TARGET_MAP='M0_CROSS_COMPILE=arm-linux-gnueabi- PLAT=rk3399 bl31;;build/rk3399/release/bl31/bl31.elf:bl31.bin'
|
||||
ATF_TOOLCHAIN2="arm-linux-gnueabi-:> 5.0"
|
||||
|
||||
elif [[ $BOOT_USE_TPL_SPL_BLOB == yes ]]; then
|
||||
|
||||
UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB idbloader.img u-boot.itb;;idbloader.img u-boot.itb"
|
||||
ATFSOURCE=''
|
||||
ATF_COMPILE='no'
|
||||
|
||||
elif [[ $BOOT_USE_BLOBS == yes ]]; then
|
||||
|
||||
UBOOT_TARGET_MAP="u-boot-dtb.bin;;idbloader.bin uboot.img trust.bin"
|
||||
ATFSOURCE=''
|
||||
ATF_COMPILE='no'
|
||||
|
||||
fi
|
||||
|
||||
write_uboot_platform()
|
||||
{
|
||||
if [[ $BOOT_USE_MAINLINE_ATF == yes || $BOOT_USE_TPL_SPL_BLOB == yes ]]; then
|
||||
|
||||
dd if=$1/idbloader.img of=$2 seek=64 conv=notrunc status=none >/dev/null 2>&1
|
||||
dd if=$1/u-boot.itb of=$2 seek=16384 conv=notrunc status=none >/dev/null 2>&1
|
||||
|
||||
elif [[ $BOOT_USE_BLOBS == yes ]] ; then
|
||||
|
||||
dd if=$1/idbloader.bin of=$2 seek=64 conv=notrunc status=none >/dev/null 2>&1
|
||||
dd if=$1/uboot.img of=$2 seek=16384 conv=notrunc status=none >/dev/null 2>&1
|
||||
dd if=$1/trust.bin of=$2 seek=24576 conv=notrunc status=none >/dev/null 2>&1
|
||||
|
||||
else
|
||||
echo "Unsupported u-boot processing configuration!"
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
uboot_custom_postprocess()
|
||||
{
|
||||
# bootloader image
|
||||
local tempfile=$(mktemp)
|
||||
tools/mkimage -n rk3399 -T rksd -d $SRC/cache/sources/rkbin-tools/rk33/rk3399_ddr_800MHz_v1.14.bin idbloader.bin
|
||||
cat $SRC/cache/sources/rkbin-tools/rk33/rk3399_miniloader_v1.15.bin >> idbloader.bin
|
||||
loaderimage --pack --uboot ./u-boot-dtb.bin uboot.img 0x200000
|
||||
if [[ $BOOT_USE_MAINLINE_ATF == yes || $BOOT_USE_TPL_SPL_BLOB == yes ]]; then
|
||||
|
||||
:
|
||||
|
||||
elif [[ $BOOT_USE_BLOBS == yes ]]; then
|
||||
|
||||
local tempfile=$(mktemp)
|
||||
tools/mkimage -n rk3399 -T rksd -d $RKBIN_DIR/$DDR_BLOB idbloader.bin
|
||||
cat $RKBIN_DIR/$MINILOADER_BLOB >> idbloader.bin
|
||||
loaderimage --pack --uboot ./u-boot-dtb.bin uboot.img 0x200000
|
||||
trust_merger --replace ./build/rk3399/debug/bl31/bl31.elf $RKBIN_DIR/$BL31_BLOB trust.ini
|
||||
|
||||
else
|
||||
echo "Unsupported u-boot processing configuration!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
@ -183,7 +183,7 @@ InstallOpenMediaVault() {
|
||||
bananapim3|nanopifire3|nanopct3plus|nanopim3)
|
||||
HMP_Fix='; taskset -c -p 4-7 $i '
|
||||
;;
|
||||
edge*|ficus|firefly-rk3399|nanopct4|nanopim4|nanopineo4|renegade-elite|rockpro64)
|
||||
edge*|ficus|firefly-rk3399|nanopct4|nanopim4|nanopineo4|renegade-elite|roc-rk3399-pc|rockpro64)
|
||||
HMP_Fix='; taskset -c -p 4-5 $i '
|
||||
;;
|
||||
esac
|
||||
|
||||
56
patch/atf/atf-rk3399/fix-reset-in-v2.2.patch
Normal file
56
patch/atf/atf-rk3399/fix-reset-in-v2.2.patch
Normal file
@ -0,0 +1,56 @@
|
||||
From f4707a3c40bfc752a24c427263f7cbe8d7adfcd6 Mon Sep 17 00:00:00 2001
|
||||
From: Vasily Khoruzhick <anarsoul@gmail.com>
|
||||
Date: Fri, 15 Nov 2019 08:25:02 -0800
|
||||
Subject: [PATCH] plat/rockchip: initialize reset and poweroff GPIOs with known
|
||||
invalid value
|
||||
|
||||
And return NULL if we didn't get them in bl aux params otherwise reset and poweroff
|
||||
will be broken on platforms that do not have reset and poweroff GPIOs.
|
||||
|
||||
Fixes: c1185ffde17c ("plat/rockchip: Switch to use new common BL aux parameter library")
|
||||
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
|
||||
---
|
||||
plat/rockchip/common/params_setup.c | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/plat/rockchip/common/params_setup.c b/plat/rockchip/common/params_setup.c
|
||||
index 8c2e5e911b..b2fd2011e4 100644
|
||||
--- a/plat/rockchip/common/params_setup.c
|
||||
+++ b/plat/rockchip/common/params_setup.c
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
+#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <lib/bl_aux_params/bl_aux_params.h>
|
||||
@@ -21,8 +22,8 @@
|
||||
#include <plat_params.h>
|
||||
#include <plat_private.h>
|
||||
|
||||
-static struct bl_aux_gpio_info rst_gpio;
|
||||
-static struct bl_aux_gpio_info poweroff_gpio;
|
||||
+static struct bl_aux_gpio_info rst_gpio = { .index = UINT_MAX } ;
|
||||
+static struct bl_aux_gpio_info poweroff_gpio = { .index = UINT_MAX };
|
||||
static struct bl_aux_gpio_info suspend_gpio[10];
|
||||
uint32_t suspend_gpio_cnt;
|
||||
static struct bl_aux_rk_apio_info suspend_apio;
|
||||
@@ -174,11 +175,17 @@ uint32_t rockchip_get_uart_clock(void)
|
||||
|
||||
struct bl_aux_gpio_info *plat_get_rockchip_gpio_reset(void)
|
||||
{
|
||||
+ if (rst_gpio.index == UINT_MAX)
|
||||
+ return NULL;
|
||||
+
|
||||
return &rst_gpio;
|
||||
}
|
||||
|
||||
struct bl_aux_gpio_info *plat_get_rockchip_gpio_poweroff(void)
|
||||
{
|
||||
+ if (poweroff_gpio.index == UINT_MAX)
|
||||
+ return NULL;
|
||||
+
|
||||
return &poweroff_gpio;
|
||||
}
|
||||
|
||||
@ -0,0 +1,63 @@
|
||||
diff --git a/plat/rockchip/rk3399/drivers/pmu/pmu.c b/plat/rockchip/rk3399/drivers/pmu/pmu.c
|
||||
index 42589b9..8f2a419 100644
|
||||
--- a/plat/rockchip/rk3399/drivers/pmu/pmu.c
|
||||
+++ b/plat/rockchip/rk3399/drivers/pmu/pmu.c
|
||||
@@ -400,7 +400,26 @@ static void pmu_power_domains_resume(void)
|
||||
clk_gate_con_restore();
|
||||
}
|
||||
|
||||
-void rk3399_flush_l2_b(void)
|
||||
+void pmu_power_domains_on(void)
|
||||
+{
|
||||
+ clk_gate_con_disable();
|
||||
+ pmu_set_power_domain(PD_VDU, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_VCODEC, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_RGA, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_IEP, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_EDP, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_GMAC, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_SDIOAUDIO, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_HDCP, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_ISP1, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_ISP0, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_VO, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_TCPD1, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_TCPD0, pmu_pd_on);
|
||||
+ pmu_set_power_domain(PD_GPU, pmu_pd_on);
|
||||
+}
|
||||
+
|
||||
+void rk3399_flush_l2_b(void)
|
||||
{
|
||||
uint32_t wait_cnt = 0;
|
||||
|
||||
diff --git a/plat/rockchip/rk3399/drivers/pmu/pmu.h b/plat/rockchip/rk3399/drivers/pmu/pmu.h
|
||||
index e1ba410..27a453b 100644
|
||||
--- a/plat/rockchip/rk3399/drivers/pmu/pmu.h
|
||||
+++ b/plat/rockchip/rk3399/drivers/pmu/pmu.h
|
||||
@@ -136,5 +136,6 @@ struct pmu_slpdata_s {
|
||||
extern uint32_t clst_warmboot_data[PLATFORM_CLUSTER_COUNT];
|
||||
|
||||
extern void sram_func_set_ddrctl_pll(uint32_t pll_src);
|
||||
+void pmu_power_domains_on(void);
|
||||
|
||||
#endif /* PMU_H */
|
||||
diff --git a/plat/rockchip/rk3399/drivers/soc/soc.c b/plat/rockchip/rk3399/drivers/soc/soc.c
|
||||
index c877dbd..98b5ad6 100644
|
||||
--- a/plat/rockchip/rk3399/drivers/soc/soc.c
|
||||
+++ b/plat/rockchip/rk3399/drivers/soc/soc.c
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <dram.h>
|
||||
#include <m0_ctl.h>
|
||||
#include <plat_private.h>
|
||||
+#include <pmu.h>
|
||||
#include <rk3399_def.h>
|
||||
#include <secure.h>
|
||||
#include <soc.h>
|
||||
@@ -327,6 +328,7 @@ void soc_global_soft_reset_init(void)
|
||||
|
||||
void __dead2 soc_global_soft_reset(void)
|
||||
{
|
||||
+ pmu_power_domains_on();
|
||||
set_pll_slow_mode(VPLL_ID);
|
||||
set_pll_slow_mode(NPLL_ID);
|
||||
set_pll_slow_mode(GPLL_ID);
|
||||
1567
patch/kernel/rk3399-default/roc-rk3399-pc.patch
Normal file
1567
patch/kernel/rk3399-default/roc-rk3399-pc.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@ diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchi
|
||||
index 244272a3..8da63ea9 100644
|
||||
--- a/arch/arm64/boot/dts/rockchip/Makefile
|
||||
+++ b/arch/arm64/boot/dts/rockchip/Makefile
|
||||
@@ -8,7 +8,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
@@ -7,7 +7,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
rk3399-nanopi4-rev06.dtb \
|
||||
rk3399-nanopi4-rev07.dtb \
|
||||
rk3399-nanopi4-rev21.dtb \
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts
|
||||
@@ -113,6 +113,10 @@
|
||||
|
||||
vcc_sys: vcc-sys {
|
||||
compatible = "regulator-fixed";
|
||||
+ enable-active-high;
|
||||
+ gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&vcc_sys_en>;
|
||||
regulator-name = "vcc_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
@@ -521,6 +525,10 @@
|
||||
rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
+ vcc_sys_en: vcc-sys-en {
|
||||
+ rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
+ };
|
||||
+
|
||||
hub_rst: hub-rst {
|
||||
rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>;
|
||||
};
|
||||
21
patch/u-boot/u-boot-rk3399/add-trust-ini.patch
Normal file
21
patch/u-boot/u-boot-rk3399/add-trust-ini.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/trust.ini b/trust.ini
|
||||
new file mode 100644
|
||||
index 0000000..4af021a
|
||||
--- /dev/null
|
||||
+++ b/trust.ini
|
||||
@@ -0,0 +1,15 @@
|
||||
+[VERSION]
|
||||
+MAJOR=1
|
||||
+MINOR=0
|
||||
+[BL30_OPTION]
|
||||
+SEC=0
|
||||
+[BL31_OPTION]
|
||||
+SEC=1
|
||||
+PATH=./build/rk3399/debug/bl31/bl31.elf
|
||||
+ADDR=0x10000
|
||||
+[BL32_OPTION]
|
||||
+SEC=0
|
||||
+[BL33_OPTION]
|
||||
+SEC=0
|
||||
+[OUTPUT]
|
||||
+PATH=trust.bin
|
||||
191
patch/u-boot/u-boot-rk3399/rk3399-disable-iram-reservation.patch
Normal file
191
patch/u-boot/u-boot-rk3399/rk3399-disable-iram-reservation.patch
Normal file
@ -0,0 +1,191 @@
|
||||
Patch adapted to disable leez config for now
|
||||
|
||||
From 45f412fc2dcdf00873444eb4c78769b1571b0237 Mon Sep 17 00:00:00 2001
|
||||
From: Kever Yang <kever.yang@rock-chips.com>
|
||||
Date: Fri, 18 Oct 2019 15:54:14 +0800
|
||||
Subject: [PATCH] rockchip: rk3399: defconfig: no need to reserve IRAM for SPL
|
||||
|
||||
We use to reserve IRAM to avoid the SPL text overlap with ATF M0 code,
|
||||
and when we introduce the TPL, the SPL space is in DRAM, we reserve
|
||||
space to avoid SPL text overlap with ATF bl31.
|
||||
|
||||
Now we decide to move ATF entry point to 0x40000 instead of 0x1000,
|
||||
so that the SPL can have 0x4000 as code size and no need to reserve
|
||||
space or relocate before loading ATF.
|
||||
|
||||
The mainline ATF has update since:
|
||||
0aad563c rockchip: Update BL31_BASE to 0x40000
|
||||
|
||||
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
||||
---
|
||||
configs/evb-rk3399_defconfig | 1 -
|
||||
configs/firefly-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-captain-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-v-rk3399_defconfig | 1 -
|
||||
configs/leez-rk3399_defconfig | 1 -
|
||||
configs/nanopc-t4-rk3399_defconfig | 1 -
|
||||
configs/nanopi-m4-rk3399_defconfig | 1 -
|
||||
configs/nanopi-neo4-rk3399_defconfig | 1 -
|
||||
configs/orangepi-rk3399_defconfig | 1 -
|
||||
configs/roc-rk3399-pc_defconfig | 1 -
|
||||
configs/rock-pi-4-rk3399_defconfig | 1 -
|
||||
configs/rockpro64-rk3399_defconfig | 1 -
|
||||
13 files changed, 13 deletions(-)
|
||||
|
||||
diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig
|
||||
index a0d215a5f18..48836c7b887 100644
|
||||
--- a/configs/evb-rk3399_defconfig
|
||||
+++ b/configs/evb-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/firefly-rk3399_defconfig b/configs/firefly-rk3399_defconfig
|
||||
index d0226314651..4828f0ccaca 100644
|
||||
--- a/configs/firefly-rk3399_defconfig
|
||||
+++ b/configs/firefly-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/khadas-edge-captain-rk3399_defconfig b/configs/khadas-edge-captain-rk3399_defconfig
|
||||
index acfd91dbe7a..19e13502852 100644
|
||||
--- a/configs/khadas-edge-captain-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-captain-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/khadas-edge-rk3399_defconfig b/configs/khadas-edge-rk3399_defconfig
|
||||
index b71fd3a286e..c10f710b42c 100644
|
||||
--- a/configs/khadas-edge-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/khadas-edge-v-rk3399_defconfig b/configs/khadas-edge-v-rk3399_defconfig
|
||||
index 0a789872dc3..9b3b6bf634a 100644
|
||||
--- a/configs/khadas-edge-v-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-v-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
#diff --git a/configs/leez-rk3399_defconfig b/configs/leez-rk3399_defconfig
|
||||
#index 4757aaaec44..35f3a8cfd84 100644
|
||||
#--- a/configs/leez-rk3399_defconfig
|
||||
#+++ b/configs/leez-rk3399_defconfig
|
||||
#@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
# CONFIG_ARCH_ROCKCHIP=y
|
||||
# CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
# CONFIG_ROCKCHIP_RK3399=y
|
||||
#-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
# CONFIG_NR_DRAM_BANKS=1
|
||||
# CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
# CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig
|
||||
index 1d4c8f8a024..b266b3ff419 100644
|
||||
--- a/configs/nanopc-t4-rk3399_defconfig
|
||||
+++ b/configs/nanopc-t4-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig
|
||||
index 7375b758a27..c78dd106e8c 100644
|
||||
--- a/configs/nanopi-m4-rk3399_defconfig
|
||||
+++ b/configs/nanopi-m4-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig
|
||||
index 874ee5efb61..48413cfe61d 100644
|
||||
--- a/configs/nanopi-neo4-rk3399_defconfig
|
||||
+++ b/configs/nanopi-neo4-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/orangepi-rk3399_defconfig b/configs/orangepi-rk3399_defconfig
|
||||
index 7b02c59f08d..28f5ae18b17 100644
|
||||
--- a/configs/orangepi-rk3399_defconfig
|
||||
+++ b/configs/orangepi-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/roc-rk3399-pc_defconfig b/configs/roc-rk3399-pc_defconfig
|
||||
index 28b18333d78..79c128a9292 100644
|
||||
--- a/configs/roc-rk3399-pc_defconfig
|
||||
+++ b/configs/roc-rk3399-pc_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig
|
||||
index 554945dd190..dbff125bf1d 100644
|
||||
--- a/configs/rock-pi-4-rk3399_defconfig
|
||||
+++ b/configs/rock-pi-4-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig
|
||||
index 22b8bc503b4..e8765333049 100644
|
||||
--- a/configs/rockpro64-rk3399_defconfig
|
||||
+++ b/configs/rockpro64-rk3399_defconfig
|
||||
@@ -2,7 +2,6 @@ CONFIG_ARM=y
|
||||
CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
-CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
59
patch/u-boot/u-boot-rk3399/rk3399-update-spl-max-size.patch
Normal file
59
patch/u-boot/u-boot-rk3399/rk3399-update-spl-max-size.patch
Normal file
@ -0,0 +1,59 @@
|
||||
Patch adaped to exclude rk3288 and rk3328 for now
|
||||
|
||||
From 5c0e65007979a743a5776440b06ae9ae5a475e84 Mon Sep 17 00:00:00 2001
|
||||
From: Kever Yang <kever.yang@rock-chips.com>
|
||||
Date: Fri, 18 Oct 2019 15:54:16 +0800
|
||||
Subject: [PATCH] rockchip: config: update CONFIG_SPL_MAX_SIZE for 64bit CPUs
|
||||
|
||||
Since we move the ATF bl31 entry for 64bit CPUs to 0x40000, we need to
|
||||
limit the SPL size in 0x40000(start from 0) so that we don't need to do
|
||||
the relocate for ATF loading.
|
||||
Note that there will be separate BSS, STACK and MALLOC heap, so the size
|
||||
0x40000(256KB) should be enough for SPL text.
|
||||
|
||||
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
||||
---
|
||||
include/configs/rk3328_common.h | 2 +-
|
||||
include/configs/rk3368_common.h | 2 +-
|
||||
include/configs/rk3399_common.h | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
#diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
|
||||
#index 3ff3331c808..e51e1b0e0e7 100644
|
||||
#--- a/include/configs/rk3328_common.h
|
||||
#+++ b/include/configs/rk3328_common.h
|
||||
#@@ -18,7 +18,7 @@
|
||||
# #define CONFIG_SYS_INIT_SP_ADDR 0x00300000
|
||||
# #define CONFIG_SYS_LOAD_ADDR 0x00800800
|
||||
# #define CONFIG_SPL_STACK 0x00400000
|
||||
#-#define CONFIG_SPL_MAX_SIZE 0x100000
|
||||
#+#define CONFIG_SPL_MAX_SIZE 0x40000
|
||||
# #define CONFIG_SPL_BSS_START_ADDR 0x2000000
|
||||
# #define CONFIG_SPL_BSS_MAX_SIZE 0x2000
|
||||
#
|
||||
#diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h
|
||||
#index e4b2114a0dd..e57d0efa7f9 100644
|
||||
#--- a/include/configs/rk3368_common.h
|
||||
#+++ b/include/configs/rk3368_common.h
|
||||
#@@ -27,7 +27,7 @@
|
||||
# #define CONFIG_SYS_INIT_SP_ADDR 0x00300000
|
||||
# #define CONFIG_SYS_LOAD_ADDR 0x00280000
|
||||
#
|
||||
#-#define CONFIG_SPL_MAX_SIZE 0x60000
|
||||
#+#define CONFIG_SPL_MAX_SIZE 0x40000
|
||||
# #define CONFIG_SPL_BSS_START_ADDR 0x400000
|
||||
# #define CONFIG_SPL_BSS_MAX_SIZE 0x20000
|
||||
# #define CONFIG_SPL_STACK 0x00188000
|
||||
diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
|
||||
index 126c34763ea..7331c6dc026 100644
|
||||
--- a/include/configs/rk3399_common.h
|
||||
+++ b/include/configs/rk3399_common.h
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_TPL_BOOTROM_SUPPORT)
|
||||
#define CONFIG_SPL_STACK 0x00400000
|
||||
-#define CONFIG_SPL_MAX_SIZE 0x100000
|
||||
+#define CONFIG_SPL_MAX_SIZE 0x40000
|
||||
#define CONFIG_SPL_BSS_START_ADDR 0x00400000
|
||||
#define CONFIG_SPL_BSS_MAX_SIZE 0x2000
|
||||
#else
|
||||
255
patch/u-boot/u-boot-rk3399/rk3399-update-spl-stack-r-addr.patch
Normal file
255
patch/u-boot/u-boot-rk3399/rk3399-update-spl-stack-r-addr.patch
Normal file
@ -0,0 +1,255 @@
|
||||
Patch adapted to disable leez config for now
|
||||
|
||||
From 9ff5697175953fcb3d623ec3579a5a0d2b433b69 Mon Sep 17 00:00:00 2001
|
||||
From: Kever Yang <kever.yang@rock-chips.com>
|
||||
Date: Fri, 18 Oct 2019 15:54:15 +0800
|
||||
Subject: [PATCH] rockchip: rk3399: update SPL_STACK_R_ADDR
|
||||
|
||||
Use the same SPL_STACK_R_ADDR in Kconfig instead of each board config;
|
||||
default to 0x4000000(64MB) instead of 0x80000(512KB) for this address
|
||||
can support all the SoCs including those may have only 64MB memory, and
|
||||
also reserve enough space for atf, kernel(in falcon mode) loading.
|
||||
|
||||
After the ATF entry move to 0x40000, the stack from 0x80000 may be override
|
||||
when loading ATF bl31.
|
||||
|
||||
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
|
||||
---
|
||||
arch/arm/mach-rockchip/rk3399/Kconfig | 3 +++
|
||||
configs/chromebook_bob_defconfig | 1 -
|
||||
configs/evb-rk3399_defconfig | 1 -
|
||||
configs/ficus-rk3399_defconfig | 1 -
|
||||
configs/firefly-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-captain-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-rk3399_defconfig | 1 -
|
||||
configs/khadas-edge-v-rk3399_defconfig | 1 -
|
||||
configs/leez-rk3399_defconfig | 1 -
|
||||
configs/nanopc-t4-rk3399_defconfig | 1 -
|
||||
configs/nanopi-m4-rk3399_defconfig | 1 -
|
||||
configs/nanopi-neo4-rk3399_defconfig | 1 -
|
||||
configs/orangepi-rk3399_defconfig | 1 -
|
||||
configs/puma-rk3399_defconfig | 1 -
|
||||
configs/roc-rk3399-pc_defconfig | 1 -
|
||||
configs/rock-pi-4-rk3399_defconfig | 1 -
|
||||
configs/rock960-rk3399_defconfig | 1 -
|
||||
configs/rockpro64-rk3399_defconfig | 1 -
|
||||
18 files changed, 3 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig b/arch/arm/mach-rockchip/rk3399/Kconfig
|
||||
index 6660d05349b..f781eacd163 100644
|
||||
--- a/arch/arm/mach-rockchip/rk3399/Kconfig
|
||||
+++ b/arch/arm/mach-rockchip/rk3399/Kconfig
|
||||
@@ -91,6 +91,9 @@ config TPL_STACK
|
||||
config TPL_TEXT_BASE
|
||||
default 0xff8c2000
|
||||
|
||||
+config SPL_STACK_R_ADDR
|
||||
+ default 0x04000000
|
||||
+
|
||||
source "board/rockchip/evb_rk3399/Kconfig"
|
||||
source "board/theobroma-systems/puma_rk3399/Kconfig"
|
||||
source "board/vamrs/rock960_rk3399/Kconfig"
|
||||
diff --git a/configs/chromebook_bob_defconfig b/configs/chromebook_bob_defconfig
|
||||
index 8059c633cec..b6e31a4c499 100644
|
||||
--- a/configs/chromebook_bob_defconfig
|
||||
+++ b/configs/chromebook_bob_defconfig
|
||||
@@ -8,7 +8,6 @@ CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000
|
||||
# CONFIG_SPL_MMC_SUPPORT is not set
|
||||
CONFIG_TARGET_CHROMEBOOK_BOB=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xff1a0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig
|
||||
index 48836c7b887..c1d7d613a9e 100644
|
||||
--- a/configs/evb-rk3399_defconfig
|
||||
+++ b/configs/evb-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/ficus-rk3399_defconfig b/configs/ficus-rk3399_defconfig
|
||||
index 05bbfbf381a..0dcc9a760d6 100644
|
||||
--- a/configs/ficus-rk3399_defconfig
|
||||
+++ b/configs/ficus-rk3399_defconfig
|
||||
@@ -4,7 +4,6 @@ CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000
|
||||
CONFIG_TARGET_ROCK960_RK3399=y
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/firefly-rk3399_defconfig b/configs/firefly-rk3399_defconfig
|
||||
index 4828f0ccaca..ba57fbd5278 100644
|
||||
--- a/configs/firefly-rk3399_defconfig
|
||||
+++ b/configs/firefly-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/khadas-edge-captain-rk3399_defconfig b/configs/khadas-edge-captain-rk3399_defconfig
|
||||
index 19e13502852..80d92e1aad3 100644
|
||||
--- a/configs/khadas-edge-captain-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-captain-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/khadas-edge-rk3399_defconfig b/configs/khadas-edge-rk3399_defconfig
|
||||
index c10f710b42c..9ba25b7d57c 100644
|
||||
--- a/configs/khadas-edge-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/khadas-edge-v-rk3399_defconfig b/configs/khadas-edge-v-rk3399_defconfig
|
||||
index 9b3b6bf634a..424dec1fbac 100644
|
||||
--- a/configs/khadas-edge-v-rk3399_defconfig
|
||||
+++ b/configs/khadas-edge-v-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
#diff --git a/configs/leez-rk3399_defconfig b/configs/leez-rk3399_defconfig
|
||||
#index 35f3a8cfd84..c671879d9a7 100644
|
||||
#--- a/configs/leez-rk3399_defconfig
|
||||
#+++ b/configs/leez-rk3399_defconfig
|
||||
#@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
# CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
# CONFIG_ROCKCHIP_RK3399=y
|
||||
# CONFIG_NR_DRAM_BANKS=1
|
||||
#-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
# CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
# CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
# CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig
|
||||
index b266b3ff419..ae09273a486 100644
|
||||
--- a/configs/nanopc-t4-rk3399_defconfig
|
||||
+++ b/configs/nanopc-t4-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig
|
||||
index c78dd106e8c..e1a61e5a574 100644
|
||||
--- a/configs/nanopi-m4-rk3399_defconfig
|
||||
+++ b/configs/nanopi-m4-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig
|
||||
index 48413cfe61d..c3a592d8fe9 100644
|
||||
--- a/configs/nanopi-neo4-rk3399_defconfig
|
||||
+++ b/configs/nanopi-neo4-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/orangepi-rk3399_defconfig b/configs/orangepi-rk3399_defconfig
|
||||
index 28f5ae18b17..296fd5f0a0f 100644
|
||||
--- a/configs/orangepi-rk3399_defconfig
|
||||
+++ b/configs/orangepi-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
|
||||
index 30b0f4ac6c6..351b0ea3d0d 100644
|
||||
--- a/configs/puma-rk3399_defconfig
|
||||
+++ b/configs/puma-rk3399_defconfig
|
||||
@@ -6,7 +6,6 @@ CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_ROCKCHIP_BOOT_MODE_REG=0x0
|
||||
CONFIG_TARGET_PUMA_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF180000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
||||
diff --git a/configs/roc-rk3399-pc_defconfig b/configs/roc-rk3399-pc_defconfig
|
||||
index 79c128a9292..809f5222368 100644
|
||||
--- a/configs/roc-rk3399-pc_defconfig
|
||||
+++ b/configs/roc-rk3399-pc_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig
|
||||
index dbff125bf1d..f4bb3818cea 100644
|
||||
--- a/configs/rock-pi-4-rk3399_defconfig
|
||||
+++ b/configs/rock-pi-4-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/rock960-rk3399_defconfig b/configs/rock960-rk3399_defconfig
|
||||
index cb3c68db6bd..0d6c55ce745 100644
|
||||
--- a/configs/rock960-rk3399_defconfig
|
||||
+++ b/configs/rock960-rk3399_defconfig
|
||||
@@ -4,7 +4,6 @@ CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000
|
||||
CONFIG_TARGET_ROCK960_RK3399=y
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig
|
||||
index e8765333049..68f0dca7b2c 100644
|
||||
--- a/configs/rockpro64-rk3399_defconfig
|
||||
+++ b/configs/rockpro64-rk3399_defconfig
|
||||
@@ -3,7 +3,6 @@ CONFIG_ARCH_ROCKCHIP=y
|
||||
CONFIG_SYS_TEXT_BASE=0x00200000
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_NR_DRAM_BANKS=1
|
||||
-CONFIG_SPL_STACK_R_ADDR=0x80000
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_DEBUG_UART=y
|
||||
@ -0,0 +1,22 @@
|
||||
From b0693aeb9ceab57ffc9d9f4ceca610bd82d5ca07 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= <ayufan@ayufan.eu>
|
||||
Date: Mon, 21 May 2018 02:00:19 +0200
|
||||
Subject: [PATCH] ayufan: rock64: for SPL build always use fifo-mode
|
||||
|
||||
Change-Id: I9ac012ce4aaf03a151f7c5c818829d631efdd7ed
|
||||
diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c
|
||||
index fc0f0fad76..d1f26e41fe 100644
|
||||
--- a/drivers/mmc/rockchip_dw_mmc.c
|
||||
+++ b/drivers/mmc/rockchip_dw_mmc.c
|
||||
@@ -70,7 +70,11 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
|
||||
|
||||
if (priv->fifo_depth < 0)
|
||||
return -EINVAL;
|
||||
+#ifdef CONFIG_SPL_BUILD
|
||||
+ priv->fifo_mode = true; // always force fifo mode
|
||||
+#else
|
||||
priv->fifo_mode = dev_read_bool(dev, "fifo-mode");
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* 'clock-freq-min-max' is deprecated
|
||||
Loading…
x
Reference in New Issue
Block a user