Skip to contentSkip to conversation

rockchip: rk3328: add COUNTER_FREQUENCY definition

PATCH New Kever Yang 1 participant 3 messages Dec 31, 2019 Arm (32-bit)

lore
Share & tools
lore

Kever Yang

author
#0 lore raw

PATCH 1/3 rockchip: rk3328: add COUNTER_FREQUENCY definition

The arch timer needs COUNTER_FREQUENCY to get correct counter, add it to make the timer works correct.

---

 include/configs/rk3328_common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/rk3328_common.h +1 -0
index b14da3a626..407e5d2931 100644
@@ -11,6 +11,7 @@
 #define CONFIG_IRAM_BASE		0xff090000
 
 #define CONFIG_ROCKCHIP_STIMER_BASE    0xff1d0020
+#define COUNTER_FREQUENCY		24000000
 
 #define CONFIG_SYS_CBSIZE		1024
 #define CONFIG_SKIP_LOWLEVEL_INIT
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/3 rockchip: rk3328: enable spl-fifo-mode for emmc and sdmmc

Since mmc to sram can't do dma, add patch to prevent aborts transfering TF-A parts.

---

 arch/arm/dts/rk3328-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/dts/rk3328-u-boot.dtsi +6 -0
index ffbd657e31..6d5b3ec06e 100644
@@ -51,8 +51,14 @@
 
 &emmc {
 	u-boot,dm-pre-reloc;
+
+	/* mmc to sram can't do dma, prevent aborts transfering TF-A parts */
+	u-boot,spl-fifo-mode;
 };
 
 &sdmmc {
 	u-boot,dm-pre-reloc;
+
+	/* mmc to sram can't do dma, prevent aborts transfering TF-A parts */
+	u-boot,spl-fifo-mode;
 };
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/3 rockchip: evb-rk3328: Enable support ATF in SPL

In reply to Kever Yang

Enable the ATF in SPL and adjust the SPL STACK/HEAD at the same time to support ATF entry at 0x40000.

---

 configs/evb-rk3328_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
configs/evb-rk3328_defconfig +5 -1
index 3e19135a0d..3db40a9a1a 100644
@@ -7,7 +7,8 @@ CONFIG_TPL_LIBCOMMON_SUPPORT=y
 CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
 CONFIG_ENV_OFFSET=0x3F8000
-CONFIG_SPL_STACK_R_ADDR=0x600000
+CONFIG_SPL_STACK_R_ADDR=0x4000000
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
@@ -23,6 +24,9 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_TPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000
+CONFIG_SPL_ATF=y
+CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
 CONFIG_TPL_DRIVERS_MISC_SUPPORT=y
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
Signature · 1 line
2.17.1