From: Duje Mihanović <duje.mihanovic@skole.hr>
Date: Tue, 24 Dec 2024 21:07:53 +0000 (+0100)
Subject: enable psci-sysreset
X-Git-Url: http://git.dujemihanovic.xyz/img/html/index.html?a=commitdiff_plain;h=a6a7043040747ae8c8f9dc9deb818457ca5cbe5e;p=u-boot.git

enable psci-sysreset
---

diff --git a/board/samsung/coreprimevelte/coreprimevelte.c b/board/samsung/coreprimevelte/coreprimevelte.c
index 8ee7007662..db66cf21a1 100644
--- a/board/samsung/coreprimevelte/coreprimevelte.c
+++ b/board/samsung/coreprimevelte/coreprimevelte.c
@@ -29,6 +29,8 @@ int dram_init(void)
 	return 0;
 }
 
+#ifndef CONFIG_SYSRESET
 void reset_cpu(void)
 {
 }
+#endif
diff --git a/configs/coreprimevelte_defconfig b/configs/coreprimevelte_defconfig
index 7c2bdd9a57..7678e24886 100644
--- a/configs/coreprimevelte_defconfig
+++ b/configs/coreprimevelte_defconfig
@@ -28,5 +28,7 @@ CONFIG_CPU_ARMV8=y
 CONFIG_BAUDRATE=921600
 CONFIG_SYS_NS16550=y
 CONFIG_SYS_NS16550_MEM32=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_PSCI=y
 CONFIG_MBEDTLS_LIB=y
 # CONFIG_TOOLS_MKEFICAPSULE is not set