coldfire.h 1.6 KB

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