Blame view

arch/m68k/include/asm/coldfire.h 1.58 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
  /****************************************************************************/
  
  /*
   *	coldfire.h -- Motorola ColdFire CPU sepecific defines
   *
31f4fde38   Greg Ungerer   [PATCH] m68knommu...
6
   *	(C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
9
10
11
12
13
   *	(C) Copyright 2000, Lineo (www.lineo.com)
   */
  
  /****************************************************************************/
  #ifndef	coldfire_h
  #define	coldfire_h
  /****************************************************************************/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
  
  /*
ce3de78a1   Greg Ungerer   m68knommu: remove...
16
17
18
19
   *	Define master clock frequency. This is done at config time now.
   *	No point enumerating dozens of possible clock options here. And
   *	in any case new boards come along from time to time that have yet
   *	another different clocking frequency.
31f4fde38   Greg Ungerer   [PATCH] m68knommu...
20
21
22
   */
  #ifdef CONFIG_CLOCK_SET
  #define	MCF_CLK		CONFIG_CLOCK_FREQ
31f4fde38   Greg Ungerer   [PATCH] m68knommu...
23
24
25
26
27
  #else
  #error "Don't know what your ColdFire CPU clock frequency is??"
  #endif
  
  /*
b195c4792   Greg Ungerer   m68knommu: clean ...
28
29
30
31
32
33
   *	Define the processor internal peripherals base address.
   *
   *	The majority of ColdFire parts use an MBAR register to set
   *	the base address. Some have an IPSBAR register instead, and it
   *	has slightly different rules on its size and alignment. Some
   *	parts have fixed addresses and the internal peripherals cannot
d4852a34e   Greg Ungerer   m68knommu: make C...
34
   *	be relocated in the CPU address space.
b195c4792   Greg Ungerer   m68knommu: clean ...
35
   *
d4852a34e   Greg Ungerer   m68knommu: make C...
36
37
38
   *	The value of MBAR or IPSBAR is config time selectable, we no
   *	longer hard define it here. No MBAR or IPSBAR will be defined if
   *	this part has a fixed peripheral address map.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
39
   */
d4852a34e   Greg Ungerer   m68knommu: make C...
40
41
42
43
44
  #ifdef CONFIG_MBAR
  #define	MCF_MBAR	CONFIG_MBAR
  #endif
  #ifdef CONFIG_IPSBAR
  #define	MCF_IPSBAR	CONFIG_IPSBAR
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
45
46
47
48
  #endif
  
  /****************************************************************************/
  #endif	/* coldfire_h */