hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/arch/arm/mach-rockchip/Kconfig
....@@ -381,6 +381,61 @@
381381
382382 endif
383383
384
+config ROCKCHIP_RK3528
385
+ bool "Support Rockchip RK3528"
386
+ select ARM64 if !ARM64_BOOT_AARCH32
387
+ select GICV2 if !ARM64_BOOT_AARCH32
388
+ select SUPPORT_TPL if !ARM64_BOOT_AARCH32
389
+ select SUPPORT_SPL if !ARM64_BOOT_AARCH32
390
+ select TPL_TINY_FRAMEWORK if TPL
391
+ select DEBUG_UART_BOARD_INIT
392
+ imply TPL if !ARM64_BOOT_AARCH32
393
+ imply SPL if !ARM64_BOOT_AARCH32
394
+ imply TPL_SERIAL_SUPPORT
395
+ help
396
+ The Rockchip RK3528 is a ARM-based SoC with a quad-core Cortex-A53.
397
+
398
+if ROCKCHIP_RK3528
399
+
400
+config TPL_LDSCRIPT
401
+ default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
402
+
403
+config TPL_TEXT_BASE
404
+ default 0xfe481000
405
+
406
+config TPL_MAX_SIZE
407
+ default 61440
408
+
409
+endif
410
+
411
+config ROCKCHIP_RK3562
412
+ bool "Support Rockchip RK3562"
413
+ select GICV2
414
+ select ARM64
415
+ select ARM_SMCCC
416
+ select SUPPORT_TPL
417
+ select SUPPORT_SPL
418
+ select TPL_TINY_FRAMEWORK if TPL
419
+ select DEBUG_UART_BOARD_INIT
420
+ imply TPL
421
+ imply SPL
422
+ imply TPL_SERIAL_SUPPORT
423
+ help
424
+ The Rockchip RK3562 is a ARM-based SoC with a quad-core Cortex-A53.
425
+
426
+if ROCKCHIP_RK3562
427
+
428
+config TPL_LDSCRIPT
429
+ default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
430
+
431
+config TPL_TEXT_BASE
432
+ default 0xfe481000
433
+
434
+config TPL_MAX_SIZE
435
+ default 61440
436
+
437
+endif
438
+
384439 config ROCKCHIP_RK3568
385440 bool "Support Rockchip RK3568"
386441 select ARM64 if !ARM64_BOOT_AARCH32
....@@ -597,6 +652,8 @@
597652 default 0xff1005c8 if ROCKCHIP_RK3328
598653 default 0xff738200 if ROCKCHIP_RK3368
599654 default 0xff320300 if ROCKCHIP_RK3399
655
+ default 0xff370200 if ROCKCHIP_RK3528
656
+ default 0xff010220 if ROCKCHIP_RK3562
600657 default 0xfdc20200 if ROCKCHIP_RK3568
601658 default 0xfd588080 if ROCKCHIP_RK3588
602659 default 0xfe020200 if ROCKCHIP_RK1808
....@@ -622,6 +679,8 @@
622679 default 0xff1d0020 if ROCKCHIP_RK3328
623680 default 0xff830020 if ROCKCHIP_RK3368
624681 default 0xff8680a0 if ROCKCHIP_RK3399
682
+ default 0xff620000 if ROCKCHIP_RK3528
683
+ default 0xffa90020 if ROCKCHIP_RK3562
625684 default 0xfdd1c020 if ROCKCHIP_RK3568
626685 default 0xfd8c8000 if ROCKCHIP_RK3588
627686 default 0xff590020 if ROCKCHIP_RV1106
....@@ -644,6 +703,8 @@
644703 default 0xff091000 if ROCKCHIP_RK3328
645704 default 0xff8c0000 if ROCKCHIP_RK3368
646705 default 0xff8c0000 if ROCKCHIP_RK3399
706
+ default 0xfe480000 if ROCKCHIP_RK3528
707
+ default 0xfe480000 if ROCKCHIP_RK3562
647708 default 0xfdcc0000 if ROCKCHIP_RK3568
648709 default 0xff000000 if ROCKCHIP_RK3588
649710 default 0xff6c0000 if ROCKCHIP_RV1106
....@@ -813,16 +874,22 @@
813874 - U-Boot: only some necessary U-Boot devices(storage, crypto...) in dm tree.
814875 - kernel: all the devices(except the U-Boot only) in dm tree.
815876
877
+config EMBED_KERNEL_DTB
878
+ bool "Enable embedded dtb support"
879
+ default n
880
+ help
881
+ Enable embedded dtb support.
882
+
816883 config EMBED_KERNEL_DTB_PATH
817
- string "Embeded kernel dtb file path"
818
- depends on USING_KERNEL_DTB
884
+ string "Embedded kernel dtb file path"
885
+ depends on EMBED_KERNEL_DTB && USING_KERNEL_DTB
819886 default "dts/kern.dtb"
820887 help
821888 This file will auto be appended to the u-boot.bin.
822889
823890 config EMBED_KERNEL_DTB_ALWAYS
824
- bool "Always using embed kernel dtb"
825
- depends on USING_KERNEL_DTB
891
+ bool "Always using embedded kernel dtb"
892
+ depends on EMBED_KERNEL_DTB && USING_KERNEL_DTB
826893 default n
827894 help
828895 Allow fallback to always use a prepared kernel dtb even USING_KERNEL_DTB
....@@ -914,6 +981,16 @@
914981 default y
915982 help
916983 Define a lot of hotkeys for debug.
984
+
985
+config ROCKCHIP_CMD
986
+ string "Rockchip specific command"
987
+ default ""
988
+ help
989
+ It defines a command to be run when the key is pressed if assigned.
990
+ String format: "cmd key".
991
+ @cmd: any U-Boot cmd.
992
+ @key: any key map id, '-' standard for ignore.
993
+ e.g. "sd_update 115", 115 is KEY_VOLUMEUP.
917994
918995 config GICV2
919996 bool "ARM GICv2"
....@@ -1013,14 +1090,16 @@
10131090 default 0x0
10141091 depends on PSTORE
10151092 help
1016
- This select linux pstore buffer address for uboot.
1093
+ This select linux pstore buffer address for U-Boot. When value is
1094
+ 0, U-Boot auto gets this address from preloader atags.
10171095
10181096 config PERSISTENT_RAM_SIZE
10191097 hex "Linux pstore buffer size"
10201098 default 0x0
1021
- depends on PSTORE
1099
+ depends on (PERSISTENT_RAM_ADDR != 0)
10221100 help
1023
- This select linux pstore buffer size for uboot.
1101
+ This select linux pstore buffer size for U-Boot, the value must be
1102
+ set if PERSISTENT_RAM_ADDR != 0.
10241103
10251104 source "arch/arm/mach-rockchip/px30/Kconfig"
10261105 source "arch/arm/mach-rockchip/rk3036/Kconfig"
....@@ -1033,6 +1112,8 @@
10331112 source "arch/arm/mach-rockchip/rk3328/Kconfig"
10341113 source "arch/arm/mach-rockchip/rk3368/Kconfig"
10351114 source "arch/arm/mach-rockchip/rk3399/Kconfig"
1115
+source "arch/arm/mach-rockchip/rk3528/Kconfig"
1116
+source "arch/arm/mach-rockchip/rk3562/Kconfig"
10361117 source "arch/arm/mach-rockchip/rk3568/Kconfig"
10371118 source "arch/arm/mach-rockchip/rk3588/Kconfig"
10381119 source "arch/arm/mach-rockchip/rk1808/Kconfig"