diff options
Diffstat (limited to 'arch/arm/mach-shmobile/timer.c')
| -rw-r--r-- | arch/arm/mach-shmobile/timer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/timer.c b/arch/arm/mach-shmobile/timer.c index f1d027aa7a81..0edf2a6d2bbe 100644 --- a/arch/arm/mach-shmobile/timer.c +++ b/arch/arm/mach-shmobile/timer.c | |||
| @@ -70,6 +70,18 @@ void __init shmobile_init_delay(void) | |||
| 70 | if (!max_freq) | 70 | if (!max_freq) |
| 71 | return; | 71 | return; |
| 72 | 72 | ||
| 73 | #ifdef CONFIG_ARCH_SHMOBILE_LEGACY | ||
| 74 | /* Non-multiplatform r8a73a4 SoC cannot use arch timer due | ||
| 75 | * to GIC being initialized from C and arch timer via DT */ | ||
| 76 | if (of_machine_is_compatible("renesas,r8a73a4")) | ||
| 77 | has_arch_timer = false; | ||
| 78 | |||
| 79 | /* Non-multiplatform r8a7790 SoC cannot use arch timer due | ||
| 80 | * to GIC being initialized from C and arch timer via DT */ | ||
| 81 | if (of_machine_is_compatible("renesas,r8a7790")) | ||
| 82 | has_arch_timer = false; | ||
| 83 | #endif | ||
| 84 | |||
| 73 | if (!has_arch_timer || !IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) { | 85 | if (!has_arch_timer || !IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) { |
| 74 | if (is_a7_a8_a9) | 86 | if (is_a7_a8_a9) |
| 75 | shmobile_setup_delay_hz(max_freq, 1, 3); | 87 | shmobile_setup_delay_hz(max_freq, 1, 3); |
