coldfire.h 1.6 KB

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