~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/m68k/include/asm/coldfire.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
 
16
16
/*
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
20
 
 *      at config time too.
 
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.
21
21
 */
22
22
#ifdef CONFIG_CLOCK_SET
23
23
#define MCF_CLK         CONFIG_CLOCK_FREQ
24
 
#define MCF_BUSCLK      (CONFIG_CLOCK_FREQ / CONFIG_CLOCK_DIV)
25
24
#else
26
25
#error "Don't know what your ColdFire CPU clock frequency is??"
27
26
#endif
28
27
 
29
28
/*
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.
 
30
 *
 
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.
 
36
 *
 
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.
32
40
 */
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
39
 
#else
40
 
#define MCF_IPSBAR      0x40000000
 
41
#ifdef CONFIG_MBAR
 
42
#define MCF_MBAR        CONFIG_MBAR
41
43
#endif
42
 
 
43
 
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
44
 
    defined(CONFIG_M520x)
45
 
#undef MCF_MBAR
46
 
#define MCF_MBAR        MCF_IPSBAR
47
 
#elif defined(CONFIG_M532x)
48
 
#undef MCF_MBAR
49
 
#define MCF_MBAR        0x00000000
 
44
#ifdef CONFIG_IPSBAR
 
45
#define MCF_IPSBAR      CONFIG_IPSBAR
50
46
#endif
51
47
 
52
48
/****************************************************************************/