diff options
author | TsiChungLiew <Tsi-Chung.Liew@freescale.com> | 2008-01-14 17:43:33 -0600 |
---|---|---|
committer | TsiChungLiew <Tsi-Chung.Liew@freescale.com> | 2008-01-17 14:59:41 -0600 |
commit | 1552af70ecab11b9f3dceff7528ed15faf678b9d (patch) | |
tree | 19f641d3a5ff6ccd0a6089eb49a090a509e90dc3 /include/asm-m68k | |
parent | 397b7b81a1f1008798ae1206913508cc89cb3a7d (diff) | |
download | u-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.zip u-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.tar.gz u-boot-imx-1552af70ecab11b9f3dceff7528ed15faf678b9d.tar.bz2 |
ColdFire: Add MCF5227x cpu and M52277EVB support-1
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
Signed-off by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'include/asm-m68k')
-rw-r--r-- | include/asm-m68k/global_data.h | 3 | ||||
-rw-r--r-- | include/asm-m68k/immap.h | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/include/asm-m68k/global_data.h b/include/asm-m68k/global_data.h index 9d9894b..1e26eb0 100644 --- a/include/asm-m68k/global_data.h +++ b/include/asm-m68k/global_data.h @@ -53,6 +53,9 @@ typedef struct global_data { unsigned long env_addr; /* Address of Environment struct */ unsigned long env_valid; /* Checksum of Environment valid? */ unsigned long have_console; /* serial_init() was called */ +#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO) + unsigned long fb_base; /* Base addr of framebuffer memory */ +#endif #ifdef CONFIG_BOARD_TYPES unsigned long board_type; #endif diff --git a/include/asm-m68k/immap.h b/include/asm-m68k/immap.h index 852d941..9dd9707 100644 --- a/include/asm-m68k/immap.h +++ b/include/asm-m68k/immap.h @@ -26,6 +26,40 @@ #ifndef __IMMAP_H #define __IMMAP_H +#ifdef CONFIG_M52277 +#include <asm/immap_5227x.h> +#include <asm/m5227x.h> + +#define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x4000)) + +#define CFG_MCFRTC_BASE (MMAP_RTC) + +#ifdef CONFIG_LCD +#define CFG_LCD_BASE (MMAP_LCD) +#endif + +/* Timer */ +#ifdef CONFIG_MCFTMR +#define CFG_UDELAY_BASE (MMAP_DTMR0) +#define CFG_TMR_BASE (MMAP_DTMR1) +#define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0) +#define CFG_TMRINTR_NO (INT0_HI_DTMR1) +#define CFG_TMRINTR_MASK (INTC_IPRH_INT33) +#define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK) +#define CFG_TMRINTR_PRI (6) +#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_M52277 */ + #ifdef CONFIG_M5235 #include <asm/immap_5235.h> #include <asm/m5235.h> |