diff options
author | TsiChungLiew <Tsi-Chung.Liew@freescale.com> | 2007-08-16 19:23:50 -0500 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2007-08-17 11:36:29 -0600 |
commit | 4a442d3186b31893b4f77c6e82f63c4517a5224b (patch) | |
tree | 7f0ad1c0464cbeeee6b3db4ccf9d7204d5d9819f /include/asm-m68k/immap.h | |
parent | 8ae158cd87a4a25722b27835261b6ff0fa2aa6a7 (diff) | |
download | u-boot-imx-4a442d3186b31893b4f77c6e82f63c4517a5224b.zip u-boot-imx-4a442d3186b31893b4f77c6e82f63c4517a5224b.tar.gz u-boot-imx-4a442d3186b31893b4f77c6e82f63c4517a5224b.tar.bz2 |
ColdFire: Add M5235EVB Platform for MCF523x
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'include/asm-m68k/immap.h')
-rw-r--r-- | include/asm-m68k/immap.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/asm-m68k/immap.h b/include/asm-m68k/immap.h index d66c161..ffb9a37 100644 --- a/include/asm-m68k/immap.h +++ b/include/asm-m68k/immap.h @@ -26,6 +26,35 @@ #ifndef __IMMAP_H #define __IMMAP_H +#ifdef CONFIG_M5235 +#include <asm/immap_5235.h> +#include <asm/m5235.h> + +#define CFG_FEC0_IOBASE (MMAP_FEC) +#define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40)) + +/* Timer */ +#ifdef CONFIG_MCFTMR +#define CFG_UDELAY_BASE (MMAP_DTMR0) +#define CFG_TMR_BASE (MMAP_DTMR3) +#define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprl0) +#define CFG_TMRINTR_NO (INT0_LO_DTMR3) +#define CFG_TMRINTR_MASK (INTC_IPRL_INT22) +#define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK) +#define CFG_TMRINTR_PRI (0x1E) /* Level must include inorder to work */ +#define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) +#endif + +#ifdef CONFIG_MCFPIT +#define CFG_UDELAY_BASE (MMAP_PIT0) +#define CFG_PIT_BASE (MMAP_PIT1) +#define CFG_PIT_PRESCALE (6) +#endif + +#define CFG_INTR_BASE (MMAP_INTC0) +#define CFG_NUM_IRQS (128) +#endif /* CONFIG_M5235 */ + #ifdef CONFIG_M5249 #include <asm/immap_5249.h> #include <asm/m5249.h> |