immap.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * ColdFire Internal Memory Map and Defines
  3. *
  4. * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
  5. * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #ifndef __IMMAP_H
  26. #define __IMMAP_H
  27. #ifdef CONFIG_M5329
  28. #include <asm/immap_5329.h>
  29. #include <asm/m5329.h>
  30. #define CFG_FEC0_IOBASE (MMAP_FEC)
  31. #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
  32. #define CFG_MCFRTC_BASE (MMAP_RTC)
  33. /* Timer */
  34. #ifdef CONFIG_MCFTMR
  35. #define CFG_UDELAY_BASE (MMAP_DTMR0)
  36. #define CFG_TMR_BASE (MMAP_DTMR1)
  37. #define CFG_TMRINTR_NO (INT0_HI_DTMR1)
  38. #define CFG_TMRINTR_MASK (INTC_IPRH_INT33)
  39. #define CFG_TMRINTR_PRI (6)
  40. #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
  41. #endif
  42. #ifdef CONFIG_MCFPIT
  43. #define CFG_UDELAY_BASE (MMAP_PIT0)
  44. #define CFG_PIT_BASE (MMAP_PIT1)
  45. #define CFG_PIT_PRESCALE (6)
  46. #endif
  47. #define CFG_INTR_BASE (MMAP_INTC0)
  48. #define CFG_NUM_IRQS (128)
  49. #endif /* CONFIG_M5329 */
  50. #endif /* __IMMAP_H */