diff options
author | angelo@sysam.it <angelo@sysam.it> | 2015-02-12 01:40:00 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-03-05 20:13:21 -0500 |
commit | e77e65dfc2f803e7dd78f5bb2bc6b3750635cedd (patch) | |
tree | b2bd4bce76fb02f4756c977d966b35def10ba234 /arch/m68k/include/asm/immap.h | |
parent | 06fd66a4aa8f0bdb0e78072593728fa31be8dadf (diff) | |
download | u-boot-imx-e77e65dfc2f803e7dd78f5bb2bc6b3750635cedd.zip u-boot-imx-e77e65dfc2f803e7dd78f5bb2bc6b3750635cedd.tar.gz u-boot-imx-e77e65dfc2f803e7dd78f5bb2bc6b3750635cedd.tar.bz2 |
m68k: add mcf5307 cpu support
Add Freescale MCF5307 cpu support.
Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Diffstat (limited to 'arch/m68k/include/asm/immap.h')
-rw-r--r-- | arch/m68k/include/asm/immap.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/immap.h b/arch/m68k/include/asm/immap.h index f0a76f4..aca5f3a 100644 --- a/arch/m68k/include/asm/immap.h +++ b/arch/m68k/include/asm/immap.h @@ -240,6 +240,30 @@ #endif #endif /* CONFIG_M5282 */ +#ifdef CONFIG_M5307 +#include <asm/immap_5307.h> +#include <asm/m5307.h> + +#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \ + (CONFIG_SYS_UART_PORT * 0x40)) +#define CONFIG_SYS_INTR_BASE (MMAP_INTC) +#define CONFIG_SYS_NUM_IRQS (64) + +/* Timer */ +#ifdef CONFIG_MCFTMR +#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) +#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) +#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *) \ + (CONFIG_SYS_INTR_BASE))->ipr) +#define CONFIG_SYS_TMRINTR_NO (31) +#define CONFIG_SYS_TMRINTR_MASK (0x00000400) +#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) +#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \ + MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3) +#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) +#endif +#endif /* CONFIG_M5307 */ + #if defined(CONFIG_MCF5301x) #include <asm/immap_5301x.h> #include <asm/m5301x.h> |