diff options
-rw-r--r-- | arch/m68k/include/asm/coldfire.h | 9 | ||||
-rw-r--r-- | arch/m68k/include/asm/m5206sim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m520xsim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m523xsim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m5249sim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m5272sim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m527xsim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m528xsim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m5307sim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m532xsim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m5407sim.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/m54xxsim.h | 1 | ||||
-rw-r--r-- | arch/m68knommu/Kconfig | 11 |
13 files changed, 15 insertions, 16 deletions
diff --git a/arch/m68k/include/asm/coldfire.h b/arch/m68k/include/asm/coldfire.h index 98d1d25101f2..c94557b91448 100644 --- a/arch/m68k/include/asm/coldfire.h +++ b/arch/m68k/include/asm/coldfire.h | |||
@@ -14,14 +14,13 @@ | |||
14 | 14 | ||
15 | 15 | ||
16 | /* | 16 | /* |
17 | * Define master clock frequency. This is essentially done at config | 17 | * Define master clock frequency. This is done at config time now. |
18 | * time now. No point enumerating dozens of possible clock options | 18 | * No point enumerating dozens of possible clock options here. And |
19 | * here. Also the peripheral clock (bus clock) divide ratio is set | 19 | * in any case new boards come along from time to time that have yet |
20 | * at config time too. | 20 | * another different clocking frequency. |
21 | */ | 21 | */ |
22 | #ifdef CONFIG_CLOCK_SET | 22 | #ifdef CONFIG_CLOCK_SET |
23 | #define MCF_CLK CONFIG_CLOCK_FREQ | 23 | #define MCF_CLK CONFIG_CLOCK_FREQ |
24 | #define MCF_BUSCLK (CONFIG_CLOCK_FREQ / CONFIG_CLOCK_DIV) | ||
25 | #else | 24 | #else |
26 | #error "Don't know what your ColdFire CPU clock frequency is??" | 25 | #error "Don't know what your ColdFire CPU clock frequency is??" |
27 | #endif | 26 | #endif |
diff --git a/arch/m68k/include/asm/m5206sim.h b/arch/m68k/include/asm/m5206sim.h index dfd6d3f73584..9015eadd5c00 100644 --- a/arch/m68k/include/asm/m5206sim.h +++ b/arch/m68k/include/asm/m5206sim.h | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | #define CPU_NAME "COLDFIRE(m5206)" | 15 | #define CPU_NAME "COLDFIRE(m5206)" |
16 | #define CPU_INSTR_PER_JIFFY 3 | 16 | #define CPU_INSTR_PER_JIFFY 3 |
17 | #define MCF_BUSCLK MCF_CLK | ||
17 | 18 | ||
18 | #include <asm/m52xxacr.h> | 19 | #include <asm/m52xxacr.h> |
19 | 20 | ||
diff --git a/arch/m68k/include/asm/m520xsim.h b/arch/m68k/include/asm/m520xsim.h index 87f8ce73b318..ee89801eec9d 100644 --- a/arch/m68k/include/asm/m520xsim.h +++ b/arch/m68k/include/asm/m520xsim.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define CPU_NAME "COLDFIRE(m520x)" | 14 | #define CPU_NAME "COLDFIRE(m520x)" |
15 | #define CPU_INSTR_PER_JIFFY 3 | 15 | #define CPU_INSTR_PER_JIFFY 3 |
16 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
16 | 17 | ||
17 | #include <asm/m52xxacr.h> | 18 | #include <asm/m52xxacr.h> |
18 | 19 | ||
diff --git a/arch/m68k/include/asm/m523xsim.h b/arch/m68k/include/asm/m523xsim.h index 3f3dbf01a109..3852f074fddd 100644 --- a/arch/m68k/include/asm/m523xsim.h +++ b/arch/m68k/include/asm/m523xsim.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define CPU_NAME "COLDFIRE(m523x)" | 14 | #define CPU_NAME "COLDFIRE(m523x)" |
15 | #define CPU_INSTR_PER_JIFFY 3 | 15 | #define CPU_INSTR_PER_JIFFY 3 |
16 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
16 | 17 | ||
17 | #include <asm/m52xxacr.h> | 18 | #include <asm/m52xxacr.h> |
18 | 19 | ||
diff --git a/arch/m68k/include/asm/m5249sim.h b/arch/m68k/include/asm/m5249sim.h index 33b0b4df07ca..805714ca8d7d 100644 --- a/arch/m68k/include/asm/m5249sim.h +++ b/arch/m68k/include/asm/m5249sim.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define CPU_NAME "COLDFIRE(m5249)" | 14 | #define CPU_NAME "COLDFIRE(m5249)" |
15 | #define CPU_INSTR_PER_JIFFY 3 | 15 | #define CPU_INSTR_PER_JIFFY 3 |
16 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
16 | 17 | ||
17 | #include <asm/m52xxacr.h> | 18 | #include <asm/m52xxacr.h> |
18 | 19 | ||
diff --git a/arch/m68k/include/asm/m5272sim.h b/arch/m68k/include/asm/m5272sim.h index 57ca4de1f911..759c2b07a994 100644 --- a/arch/m68k/include/asm/m5272sim.h +++ b/arch/m68k/include/asm/m5272sim.h | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | #define CPU_NAME "COLDFIRE(m5272)" | 15 | #define CPU_NAME "COLDFIRE(m5272)" |
16 | #define CPU_INSTR_PER_JIFFY 3 | 16 | #define CPU_INSTR_PER_JIFFY 3 |
17 | #define MCF_BUSCLK MCF_CLK | ||
17 | 18 | ||
18 | #include <asm/m52xxacr.h> | 19 | #include <asm/m52xxacr.h> |
19 | 20 | ||
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h index 838fb2b1e88b..c23046ee3a51 100644 --- a/arch/m68k/include/asm/m527xsim.h +++ b/arch/m68k/include/asm/m527xsim.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define CPU_NAME "COLDFIRE(m527x)" | 14 | #define CPU_NAME "COLDFIRE(m527x)" |
15 | #define CPU_INSTR_PER_JIFFY 3 | 15 | #define CPU_INSTR_PER_JIFFY 3 |
16 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
16 | 17 | ||
17 | #include <asm/m52xxacr.h> | 18 | #include <asm/m52xxacr.h> |
18 | 19 | ||
diff --git a/arch/m68k/include/asm/m528xsim.h b/arch/m68k/include/asm/m528xsim.h index 47324f2258a7..d798bd5df56c 100644 --- a/arch/m68k/include/asm/m528xsim.h +++ b/arch/m68k/include/asm/m528xsim.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define CPU_NAME "COLDFIRE(m528x)" | 14 | #define CPU_NAME "COLDFIRE(m528x)" |
15 | #define CPU_INSTR_PER_JIFFY 3 | 15 | #define CPU_INSTR_PER_JIFFY 3 |
16 | #define MCF_BUSCLK MCF_CLK | ||
16 | 17 | ||
17 | #include <asm/m52xxacr.h> | 18 | #include <asm/m52xxacr.h> |
18 | 19 | ||
diff --git a/arch/m68k/include/asm/m5307sim.h b/arch/m68k/include/asm/m5307sim.h index e4365f2e5c29..4c94c01f36c4 100644 --- a/arch/m68k/include/asm/m5307sim.h +++ b/arch/m68k/include/asm/m5307sim.h | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #define CPU_NAME "COLDFIRE(m5307)" | 17 | #define CPU_NAME "COLDFIRE(m5307)" |
18 | #define CPU_INSTR_PER_JIFFY 3 | 18 | #define CPU_INSTR_PER_JIFFY 3 |
19 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
19 | 20 | ||
20 | #include <asm/m53xxacr.h> | 21 | #include <asm/m53xxacr.h> |
21 | 22 | ||
diff --git a/arch/m68k/include/asm/m532xsim.h b/arch/m68k/include/asm/m532xsim.h index 0dea126f3fcf..ba4cc784f574 100644 --- a/arch/m68k/include/asm/m532xsim.h +++ b/arch/m68k/include/asm/m532xsim.h | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #define CPU_NAME "COLDFIRE(m532x)" | 12 | #define CPU_NAME "COLDFIRE(m532x)" |
13 | #define CPU_INSTR_PER_JIFFY 3 | 13 | #define CPU_INSTR_PER_JIFFY 3 |
14 | #define MCF_BUSCLK (MCF_CLK / 3) | ||
14 | 15 | ||
15 | #include <asm/m53xxacr.h> | 16 | #include <asm/m53xxacr.h> |
16 | 17 | ||
diff --git a/arch/m68k/include/asm/m5407sim.h b/arch/m68k/include/asm/m5407sim.h index c1eba01d26b0..762c58c89050 100644 --- a/arch/m68k/include/asm/m5407sim.h +++ b/arch/m68k/include/asm/m5407sim.h | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #define CPU_NAME "COLDFIRE(m5407)" | 17 | #define CPU_NAME "COLDFIRE(m5407)" |
18 | #define CPU_INSTR_PER_JIFFY 3 | 18 | #define CPU_INSTR_PER_JIFFY 3 |
19 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
19 | 20 | ||
20 | #include <asm/m54xxacr.h> | 21 | #include <asm/m54xxacr.h> |
21 | 22 | ||
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h index cc5d94d215b4..daaae276bb09 100644 --- a/arch/m68k/include/asm/m54xxsim.h +++ b/arch/m68k/include/asm/m54xxsim.h | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #define CPU_NAME "COLDFIRE(m54xx)" | 8 | #define CPU_NAME "COLDFIRE(m54xx)" |
9 | #define CPU_INSTR_PER_JIFFY 2 | 9 | #define CPU_INSTR_PER_JIFFY 2 |
10 | #define MCF_BUSCLK (MCF_CLK / 2) | ||
10 | 11 | ||
11 | #include <asm/m54xxacr.h> | 12 | #include <asm/m54xxacr.h> |
12 | 13 | ||
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index 2e6fe63b7a0f..b5424cf948e6 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -260,17 +260,6 @@ config CLOCK_FREQ | |||
260 | if it is fitted (there are some exceptions). This value will be | 260 | if it is fitted (there are some exceptions). This value will be |
261 | specific to the exact CPU that you are using. | 261 | specific to the exact CPU that you are using. |
262 | 262 | ||
263 | config CLOCK_DIV | ||
264 | int "Set the core/bus clock divide ratio" | ||
265 | default "1" | ||
266 | depends on CLOCK_SET | ||
267 | help | ||
268 | On many SoC style CPUs the master CPU clock is also used to drive | ||
269 | on-chip peripherals. The clock that is distributed to these | ||
270 | peripherals is sometimes a fixed ratio of the master clock | ||
271 | frequency. If so then set this to the divider ratio of the | ||
272 | master clock to the peripheral clock. If not sure then select 1. | ||
273 | |||
274 | config OLDMASK | 263 | config OLDMASK |
275 | bool "Old mask 5307 (1H55J) silicon" | 264 | bool "Old mask 5307 (1H55J) silicon" |
276 | depends on M5307 | 265 | depends on M5307 |