Clean up to avoid more reset macro duplication.
Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
#define RST_BASE 0xE6160000 /* Domain0 */
#define RST_SRESCR0 (RST_BASE + 0x18)
#define RST_SPRES 0x5AA58000
+#define RST_WDTRSTCR (RST_BASE + 0x10)
+#define RST_RWDT 0xA55A8002
/* Arm Generic Timer */
#define CNTCR_BASE 0xE6080000
#include <asm/io.h>
#include <asm/psci.h>
#include <asm/secure.h>
+#include <asm/arch/renesas.h>
int __secure psci_features(u32 function_id, u32 psci_fid)
{
return ARM_PSCI_VER_0_2;
}
-#define RST_BASE 0xE6160000 /* Domain0 */
-#define RST_SRESCR0 (RST_BASE + 0x18)
-#define RST_SPRES 0x5AA58000
-
void __secure __noreturn psci_system_reset(void)
{
writel(RST_SPRES, RST_SRESCR0);
#include <image.h>
#include <linux/errno.h>
-#define RST_BASE 0xE6160000 /* Domain0 */
-#define RST_WDTRSTCR (RST_BASE + 0x10)
-#define RST_RWDT 0xA55A8002
-
DECLARE_GLOBAL_DATA_PTR;
static void init_generic_timer(void)
return 0;
}
-#define RST_BASE 0xE6160000 /* Domain0 */
-#define RST_SRESCR0 (RST_BASE + 0x18)
-#define RST_SPRES 0x5AA58000
-
void __weak reset_cpu(void)
{
writel(RST_SPRES, RST_SRESCR0);