resend#2 [PATCH 1/3] ColdFire: Add MCF5227x cpu and M52277EVB support-1
Signed-off-by TsiChungLiew <[email protected]>
--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 3 + README | 1 + board/freescale/m52277evb/Makefile | 44 ++++++ board/freescale/m52277evb/config.mk | 25 ++++ board/freescale/m52277evb/m52277evb.c | 86 +++++++++++ board/freescale/m52277evb/u-boot.lds | 145 +++++++++++++++++++ doc/README.m52277evb | 237 +++++++++++++++++++++++++++++++ include/asm-m68k/global_data.h | 3 + include/asm-m68k/immap.h | 34 +++++ include/configs/M52277EVB.h | 251 +++++++++++++++++++++++++++++++++ lib_m68k/board.c | 10 ++ 13 files changed, 841 insertions(+), 0 deletions(-) create mode 100644 board/freescale/m52277evb/Makefile create mode 100644 board/freescale/m52277evb/config.mk create mode 100644 board/freescale/m52277evb/m52277evb.c create mode 100644 board/freescale/m52277evb/u-boot.lds create mode 100644 doc/README.m52277evb create mode 100644 include/configs/M52277EVB.h
MAINTAINERS +1 -0
@@ -642,6 +642,7 @@ Zachary P. Landau <[email protected]> TsiChung Liew <[email protected]> + M52277EVB mcf5227x M5235EVB mcf52x2 M5329EVB mcf532x M5373EVB mcf532x
MAKEALL +1 -0
@@ -641,6 +641,7 @@ LIST_coldfire=" \ EB+MCF-EV123 \ EB+MCF-EV123_internal \ idmr \ + M52277EVB \ M5235EVB \ M5249EVB \ M5253EVB \
Makefile +3 -0
@@ -1739,6 +1739,9 @@ ZPC1900_config: unconfig ## Coldfire ######################################################################### +M52277EVB_config: unconfig + @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale + M5235EVB_config \ M5235EVB_Flash16_config \ M5235EVB_Flash32_config: unconfig
README +1 -0
@@ -136,6 +136,7 @@ Directory Hierarchy: - i386 Files specific to i386 CPUs - ixp Files specific to Intel XScale IXP CPUs - mcf52x2 Files specific to Freescale ColdFire MCF52x2 CPUs + - mcf5227x Files specific to Freescale ColdFire MCF5227x CPUs - mcf532x Files specific to Freescale ColdFire MCF5329 CPUs - mcf5445x Files specific to Freescale ColdFire MCF5445x CPUs - mips Files specific to MIPS CPUs
board/freescale/m52277evb/Makefile new file +44 -0
44 lines not on this page · raw message
board/freescale/m52277evb/config.mk new file +25 -0
@@ -0,0 +1,25 @@ +# +# (C) Copyright 2000-2003 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# Coldfire contribution by Bernhard Kuhn <[email protected]> +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +TEXT_BASE = 0
board/freescale/m52277evb/m52277evb.c new file +86 -0
86 lines not on this page · raw message
board/freescale/m52277evb/u-boot.lds new file +145 -0
145 lines not on this page · raw message
doc/README.m52277evb new file +237 -0
237 lines not on this page · raw message
include/asm-m68k/global_data.h +3 -0
@@ -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
include/asm-m68k/immap.h +34 -0
@@ -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>
include/configs/M52277EVB.h new file +251 -0
251 lines not on this page · raw message
lib_m68k/board.c +10 -0
@@ -313,6 +313,16 @@ board_init_f (ulong bootflag)debug ("Reserving %ldk for protected RAM@%08lx\n" , reg, addr);#endif /* CONFIG_PRAM */ +/* round down to next 4 kB limit */ + addr &= ~(4096 -1 ); +debug ("Top of RAM usable for U-Boot at: %08lx\n" , addr); + +#ifdef CONFIG_LCD +/* reserve memory for LCD display (always full pages) */ + addr =lcd_setmem (addr); + gd->fb_base = addr; +#endif /* CONFIG_LCD */ +/* * reserve memory for U-Boot code, data & bss * round down to next 4 kB limit
Signature · 1 line
1.5.2