17
* Define master clock frequency. This is essentially done at config
18
* time now. No point enumerating dozens of possible clock options
19
* here. Also the peripheral clock (bus clock) divide ratio is set
17
* Define master clock frequency. This is done at config time now.
18
* No point enumerating dozens of possible clock options here. And
19
* in any case new boards come along from time to time that have yet
20
* another different clocking frequency.
22
22
#ifdef CONFIG_CLOCK_SET
23
23
#define MCF_CLK CONFIG_CLOCK_FREQ
24
#define MCF_BUSCLK (CONFIG_CLOCK_FREQ / CONFIG_CLOCK_DIV)
26
25
#error "Don't know what your ColdFire CPU clock frequency is??"
30
* Define the processor support peripherals base address.
31
* This is generally setup by the boards start up code.
29
* Define the processor internal peripherals base address.
31
* The majority of ColdFire parts use an MBAR register to set
32
* the base address. Some have an IPSBAR register instead, and it
33
* has slightly different rules on its size and alignment. Some
34
* parts have fixed addresses and the internal peripherals cannot
35
* be relocated in the CPU address space.
37
* The value of MBAR or IPSBAR is config time selectable, we no
38
* longer hard define it here. No MBAR or IPSBAR will be defined if
39
* this part has a fixed peripheral address map.
33
#define MCF_MBAR 0x10000000
34
#define MCF_MBAR2 0x80000000
35
#if defined(CONFIG_M54xx)
36
#define MCF_IPSBAR MCF_MBAR
37
#elif defined(CONFIG_M520x)
38
#define MCF_IPSBAR 0xFC000000
40
#define MCF_IPSBAR 0x40000000
42
#define MCF_MBAR CONFIG_MBAR
43
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
46
#define MCF_MBAR MCF_IPSBAR
47
#elif defined(CONFIG_M532x)
49
#define MCF_MBAR 0x00000000
45
#define MCF_IPSBAR CONFIG_IPSBAR
52
48
/****************************************************************************/