diff options
| -rw-r--r-- | arch/arm/mach-shmobile/setup-sh73a0.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index b7bd8e509668..3447ca7e90d9 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c | |||
| @@ -775,6 +775,13 @@ void __init sh73a0_add_standard_devices_dt(void) | |||
| 775 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 775 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
| 776 | } | 776 | } |
| 777 | 777 | ||
| 778 | #define RESCNT2 IOMEM(0xe6188020) | ||
| 779 | static void sh73a0_restart(enum reboot_mode mode, const char *cmd) | ||
| 780 | { | ||
| 781 | /* Do soft power on reset */ | ||
| 782 | writel((1 << 31), RESCNT2); | ||
| 783 | } | ||
| 784 | |||
| 778 | static const char *sh73a0_boards_compat_dt[] __initdata = { | 785 | static const char *sh73a0_boards_compat_dt[] __initdata = { |
| 779 | "renesas,sh73a0", | 786 | "renesas,sh73a0", |
| 780 | NULL, | 787 | NULL, |
| @@ -786,6 +793,7 @@ DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)") | |||
| 786 | .init_early = sh73a0_init_delay, | 793 | .init_early = sh73a0_init_delay, |
| 787 | .init_machine = sh73a0_add_standard_devices_dt, | 794 | .init_machine = sh73a0_add_standard_devices_dt, |
| 788 | .init_late = shmobile_init_late, | 795 | .init_late = shmobile_init_late, |
| 796 | .restart = sh73a0_restart, | ||
| 789 | .dt_compat = sh73a0_boards_compat_dt, | 797 | .dt_compat = sh73a0_boards_compat_dt, |
| 790 | MACHINE_END | 798 | MACHINE_END |
| 791 | #endif /* CONFIG_USE_OF */ | 799 | #endif /* CONFIG_USE_OF */ |
