hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/arch/arm/mach-rockchip/rk3568/rk3568.c
....@@ -777,6 +777,23 @@
777777 #endif
778778 }
779779
780
+int fit_standalone_release(char *id, uintptr_t entry_point)
781
+{
782
+ /* risc-v configuration: */
783
+ /* Reset the scr1 */
784
+ writel(0x04000400, CRU_BASE + CRU_SOFTRST_CON26);
785
+ udelay(100);
786
+
787
+ /* set the scr1 addr */
788
+ writel((0xffff0000) | (entry_point >> 16), GRF_BASE + GRF_SOC_CON4);
789
+ udelay(10);
790
+
791
+ /* release the scr1 */
792
+ writel(0x04000000, CRU_BASE + CRU_SOFTRST_CON26);
793
+
794
+ return 0;
795
+}
796
+
780797 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD)
781798 static void qos_priority_init(void)
782799 {