diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 16 | ||||
-rw-r--r-- | arch/sh/include/asm/timex.h | 10 |
2 files changed, 19 insertions, 7 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 0031a6979f3a..2121fbb2ff4c 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -540,14 +540,16 @@ config SH_TIMER_MTU2 | |||
540 | 540 | ||
541 | config SH_PCLK_FREQ | 541 | config SH_PCLK_FREQ |
542 | int "Peripheral clock frequency (in Hz)" | 542 | int "Peripheral clock frequency (in Hz)" |
543 | default "27000000" if CPU_SUBTYPE_SH7343 | 543 | depends on SH_CLK_CPG_LEGACY |
544 | default "31250000" if CPU_SUBTYPE_SH7619 | 544 | default "31250000" if CPU_SUBTYPE_SH7619 |
545 | default "32000000" if CPU_SUBTYPE_SH7722 | 545 | default "33333333" if CPU_SUBTYPE_SH7770 || \ |
546 | default "33333333" if CPU_SUBTYPE_SH7770 || CPU_SUBTYPE_SH7723 || \ | 546 | CPU_SUBTYPE_SH7760 || \ |
547 | CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7705 || \ | 547 | CPU_SUBTYPE_SH7705 || \ |
548 | CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7206 || \ | 548 | CPU_SUBTYPE_SH7203 || \ |
549 | CPU_SUBTYPE_SH7263 || CPU_SUBTYPE_MXG || \ | 549 | CPU_SUBTYPE_SH7206 || \ |
550 | CPU_SUBTYPE_SH7786 || CPU_SUBTYPE_SH7724 | 550 | CPU_SUBTYPE_SH7263 || \ |
551 | CPU_SUBTYPE_MXG || \ | ||
552 | CPU_SUBTYPE_SH7786 | ||
551 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R | 553 | default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R |
552 | default "66000000" if CPU_SUBTYPE_SH4_202 | 554 | default "66000000" if CPU_SUBTYPE_SH4_202 |
553 | default "50000000" | 555 | default "50000000" |
diff --git a/arch/sh/include/asm/timex.h b/arch/sh/include/asm/timex.h index b556d49e5f2b..18bf06d9c764 100644 --- a/arch/sh/include/asm/timex.h +++ b/arch/sh/include/asm/timex.h | |||
@@ -6,7 +6,17 @@ | |||
6 | #ifndef __ASM_SH_TIMEX_H | 6 | #ifndef __ASM_SH_TIMEX_H |
7 | #define __ASM_SH_TIMEX_H | 7 | #define __ASM_SH_TIMEX_H |
8 | 8 | ||
9 | /* | ||
10 | * Only parts using the legacy CPG code for their clock framework | ||
11 | * implementation need to define their own Pclk value. If provided, this | ||
12 | * can be used for accurately setting CLOCK_TICK_RATE, otherwise we | ||
13 | * simply fall back on the i8253 PIT value. | ||
14 | */ | ||
15 | #ifdef CONFIG_SH_PCLK_FREQ | ||
9 | #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ | 16 | #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ |
17 | #else | ||
18 | #define CLOCK_TICK_RATE 1193180 | ||
19 | #endif | ||
10 | 20 | ||
11 | #include <asm-generic/timex.h> | 21 | #include <asm-generic/timex.h> |
12 | 22 | ||