mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-24 17:48:14 +01:00
Rename arch-rmobile to arch-renesas and mach-rmobile to mach-renesas
because all the chips are made by Renesas, while only a subset of
them is from the R-Mobile line.
Use the following command to perform the rename, with manual move of
the directories using git mv and manual fix up to arch/arm/Makefile:
"
$ git grep -l '\<\(arch\|mach\)-rmobile\>' | \
xargs -I {} sed -i 's@\<\(arch\|mach\)-rmobile\>@\1-renesas@g' {}
$ sed -i 's@rmobile@renesas@' board/*/*/Kconfig
"
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
49 lines
955 B
C
49 lines
955 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* This file implements basic PSCI support for Renesas r8a779a0 SoC
|
|
*
|
|
* Copyright (C) 2020 Renesas Electronics Corp.
|
|
*
|
|
*/
|
|
|
|
#include <asm/io.h>
|
|
#include <asm/psci.h>
|
|
#include <asm/secure.h>
|
|
|
|
int __secure psci_features(u32 function_id, u32 psci_fid)
|
|
{
|
|
switch (psci_fid) {
|
|
case ARM_PSCI_0_2_FN_PSCI_VERSION:
|
|
case ARM_PSCI_0_2_FN_SYSTEM_RESET:
|
|
return 0x0;
|
|
}
|
|
/* case ARM_PSCI_0_2_FN_CPU_ON: */
|
|
/* case ARM_PSCI_0_2_FN_CPU_OFF: */
|
|
/* case ARM_PSCI_0_2_FN_AFFINITY_INFO: */
|
|
/* case ARM_PSCI_0_2_FN_MIGRATE_INFO_TYPE: */
|
|
/* case ARM_PSCI_0_2_FN_SYSTEM_OFF: */
|
|
return ARM_PSCI_RET_NI;
|
|
}
|
|
|
|
u32 __secure psci_version(void)
|
|
{
|
|
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);
|
|
|
|
while (1)
|
|
;
|
|
}
|
|
|
|
int psci_update_dt(void *fdt)
|
|
{
|
|
return 0;
|
|
}
|