1702e6014SWolfgang DenkFreescale MCF52277EVB ColdFire Development Board
2702e6014SWolfgang Denk================================================
3702e6014SWolfgang Denk
4702e6014SWolfgang DenkTsiChung Liew(Tsi-Chung.Liew@freescale.com)
5702e6014SWolfgang DenkCreated Jan 8, 2008
6702e6014SWolfgang Denk===========================================
7702e6014SWolfgang Denk
8702e6014SWolfgang Denk
9702e6014SWolfgang DenkChanged files:
10702e6014SWolfgang Denk==============
11702e6014SWolfgang Denk
12702e6014SWolfgang Denk- board/freescale/m52277evb/m52277evb.c	Dram setup
13702e6014SWolfgang Denk- board/freescale/m52277evb/Makefile	Makefile
14702e6014SWolfgang Denk- board/freescale/m52277evb/config.mk	config make
15702e6014SWolfgang Denk- board/freescale/m52277evb/u-boot.lds	Linker description
16702e6014SWolfgang Denk
17702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/cpu.c		cpu specific code
18702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/cpu_init.c	FBCS, Mux pins, icache and RTC extra regs
19702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/interrupts.c	cpu specific interrupt support
20702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/speed.c		system, flexbus, and cpu clock
21702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/Makefile		Makefile
22702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/config.mk	config make
23702e6014SWolfgang Denk- arch/m68k/cpu/mcf5227x/start.S		start up assembly code
24702e6014SWolfgang Denk
25702e6014SWolfgang Denk- doc/README.m52277evb		This readme file
26702e6014SWolfgang Denk
27702e6014SWolfgang Denk- drivers/serial/mcfuart.c	ColdFire common UART driver
28702e6014SWolfgang Denk- drivers/rtc/mcfrtc.c		Realtime clock Driver
29702e6014SWolfgang Denk
30702e6014SWolfgang Denk- include/asm-m68k/bitops.h		Bit operation function export
31702e6014SWolfgang Denk- include/asm-m68k/byteorder.h		Byte order functions
32702e6014SWolfgang Denk- include/asm-m68k/crossbar.h		CrossBar structure and definition
33702e6014SWolfgang Denk- include/asm-m68k/dspi.h		DSPI structure and definition
34702e6014SWolfgang Denk- include/asm-m68k/edma.h		eDMA structure and definition
35702e6014SWolfgang Denk- include/asm-m68k/flexbus.h		FlexBus structure and definition
36702e6014SWolfgang Denk- include/asm-m68k/fsl_i2c.h		I2C structure and definition
37702e6014SWolfgang Denk- include/asm-m68k/global_data.h	Global data structure
38702e6014SWolfgang Denk- include/asm-m68k/immap.h		ColdFire specific header file and driver macros
39702e6014SWolfgang Denk- include/asm-m68k/immap_5227x.h	mcf5227x specific header file
40702e6014SWolfgang Denk- include/asm-m68k/io.h			io functions
41702e6014SWolfgang Denk- include/asm-m68k/lcd.h		LCD structure and definition
42702e6014SWolfgang Denk- include/asm-m68k/m5227x.h		mcf5227x specific header file
43702e6014SWolfgang Denk- include/asm-m68k/posix_types.h	Posix
44702e6014SWolfgang Denk- include/asm-m68k/processor.h		header file
45702e6014SWolfgang Denk- include/asm-m68k/ptrace.h		Exception structure
46702e6014SWolfgang Denk- include/asm-m68k/rtc.h		Realtime clock header file
47702e6014SWolfgang Denk- include/asm-m68k/ssi.h		SSI structure and definition
48702e6014SWolfgang Denk- include/asm-m68k/string.h		String function export
49702e6014SWolfgang Denk- include/asm-m68k/timer.h		Timer structure and definition
50702e6014SWolfgang Denk- include/asm-m68k/types.h		Data types definition
51702e6014SWolfgang Denk- include/asm-m68k/uart.h		Uart structure and definition
52702e6014SWolfgang Denk- include/asm-m68k/u-boot.h		u-boot structure
53702e6014SWolfgang Denk
54702e6014SWolfgang Denk- include/configs/M52277EVB.h		Board specific configuration file
55702e6014SWolfgang Denk
56702e6014SWolfgang Denk- arch/m68k/lib/board.c			board init function
57702e6014SWolfgang Denk- arch/m68k/lib/cache.c
58702e6014SWolfgang Denk- arch/m68k/lib/interrupts			Coldfire common interrupt functions
59702e6014SWolfgang Denk- arch/m68k/lib/m68k_linux.c
60702e6014SWolfgang Denk- arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
61702e6014SWolfgang Denk- arch/m68k/lib/traps.c			Exception init code
62702e6014SWolfgang Denk
63702e6014SWolfgang Denk1 MCF52277 specific Options/Settings
64702e6014SWolfgang Denk====================================
65702e6014SWolfgang Denk1.1 pre-loader is no longer suppoer in this coldfire family
66702e6014SWolfgang Denk
67702e6014SWolfgang Denk1.2 Configuration settings for M52277EVB Development Board
68702e6014SWolfgang DenkCONFIG_MCF5227x		-- define for all MCF5227x CPUs
69702e6014SWolfgang DenkCONFIG_M52277		-- define for all Freescale MCF52277 CPUs
70702e6014SWolfgang DenkCONFIG_M52277EVB	-- define for M52277EVB board
71702e6014SWolfgang Denk
72702e6014SWolfgang DenkCONFIG_MCFUART		-- define to use common CF Uart driver
73702e6014SWolfgang DenkCONFIG_SYS_UART_PORT		-- define UART port number, start with 0, 1 and 2
74702e6014SWolfgang DenkCONFIG_BAUDRATE		-- define UART baudrate
75702e6014SWolfgang Denk
76702e6014SWolfgang DenkCONFIG_MCFRTC		-- define to use common CF RTC driver
77702e6014SWolfgang DenkCONFIG_SYS_MCFRTC_BASE		-- provide base address for RTC in immap.h
78702e6014SWolfgang DenkCONFIG_SYS_RTC_OSCILLATOR	-- define RTC clock frequency
79702e6014SWolfgang DenkRTC_DEBUG		-- define to show RTC debug message
80702e6014SWolfgang DenkCONFIG_CMD_DATE		-- enable to use date feature in u-boot
81702e6014SWolfgang Denk
82702e6014SWolfgang DenkCONFIG_MCFTMR		-- define to use DMA timer
83702e6014SWolfgang DenkCONFIG_MCFPIT		-- define to use PIT timer
84702e6014SWolfgang Denk
85702e6014SWolfgang DenkCONFIG_FSL_I2C		-- define to use FSL common I2C driver
86702e6014SWolfgang DenkCONFIG_HARD_I2C		-- define for I2C hardware support
87*ea818dbbSHeiko SchocherCONFIG_SYS_I2C_SOFT	-- define for I2C bit-banged
88702e6014SWolfgang DenkCONFIG_SYS_I2C_SPEED		-- define for I2C speed
89702e6014SWolfgang DenkCONFIG_SYS_I2C_SLAVE		-- define for I2C slave address
90702e6014SWolfgang DenkCONFIG_SYS_I2C_OFFSET		-- define for I2C base address offset
91702e6014SWolfgang DenkCONFIG_SYS_IMMR		-- define for MBAR offset
92702e6014SWolfgang Denk
93702e6014SWolfgang DenkCONFIG_SYS_MBAR		-- define MBAR offset
94702e6014SWolfgang Denk
95702e6014SWolfgang DenkCONFIG_MONITOR_IS_IN_RAM -- Not support
96702e6014SWolfgang Denk
97702e6014SWolfgang DenkCONFIG_SYS_INIT_RAM_ADDR	-- defines the base address of the MCF52277 internal SRAM
98702e6014SWolfgang Denk
99702e6014SWolfgang DenkCONFIG_SYS_CSn_BASE	-- defines the Chip Select Base register
100702e6014SWolfgang DenkCONFIG_SYS_CSn_MASK	-- defines the Chip Select Mask register
101702e6014SWolfgang DenkCONFIG_SYS_CSn_CTRL	-- defines the Chip Select Control register
102702e6014SWolfgang Denk
103702e6014SWolfgang DenkCONFIG_SYS_SDRAM_BASE	-- defines the DRAM Base
104702e6014SWolfgang Denk
105702e6014SWolfgang DenkCONFIG_LCD and CONFIG_CMD_USB are not supported in this current u-boot,
106702e6014SWolfgang Denkupdate will be provided at later time
107702e6014SWolfgang Denk
108702e6014SWolfgang Denk2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
109702e6014SWolfgang Denk===========================================
110702e6014SWolfgang Denk2.1. System memory map:
111702e6014SWolfgang Denk	Flash:		0x00000000-0x3FFFFFFF (1024MB)
112702e6014SWolfgang Denk	DDR:		0x40000000-0x7FFFFFFF (1024MB)
113702e6014SWolfgang Denk	SRAM:		0x80000000-0x8FFFFFFF (256MB)
114702e6014SWolfgang Denk	IP:		0xF0000000-0xFFFFFFFF (256MB)
115702e6014SWolfgang Denk
116702e6014SWolfgang Denk2.2. For the initial bringup, we adopted a consistent memory scheme between u-boot and
117702e6014SWolfgang Denk	linux kernel, you can customize it based on your system requirements:
118702e6014SWolfgang Denk	Flash0:		0x00000000-0x00FFFFFF (16MB)
119702e6014SWolfgang Denk
120702e6014SWolfgang Denk	DDR:		0x40000000-0x4FFFFFFF (64MB)
121702e6014SWolfgang Denk	SRAM:		0x80000000-0x80007FFF (32KB)
122702e6014SWolfgang Denk	IP:		0xFC000000-0xFC0FFFFF (64KB)
123702e6014SWolfgang Denk
124702e6014SWolfgang Denk3. COMPILATION
125702e6014SWolfgang Denk==============
126702e6014SWolfgang Denk3.1	To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or
127702e6014SWolfgang DenkuClinux version) from codesourcery.com was used. Download it from:
128702e6014SWolfgang Denkhttp://www.codesourcery.com/gnu_toolchains/coldfire/download.html
129702e6014SWolfgang Denk
130702e6014SWolfgang Denk3.2 Compilation
131702e6014SWolfgang Denk   export CROSS_COMPILE=cross-compile-prefix
132702e6014SWolfgang Denk   cd u-boot-1.x.x
133702e6014SWolfgang Denk   make distclean
134702e6014SWolfgang Denk   make M52277EVB_config
135702e6014SWolfgang Denk   make
136702e6014SWolfgang Denk
137702e6014SWolfgang Denk4. SCREEN DUMP
138702e6014SWolfgang Denk==============
139702e6014SWolfgang Denk4.1 M52277EVB Development board
140702e6014SWolfgang Denk    (NOTE: May not show exactly the same)
141702e6014SWolfgang Denk
142702e6014SWolfgang DenkU-Boot 1.3.1 (Jan 8 2008 - 12:44:08)
143702e6014SWolfgang Denk
144702e6014SWolfgang DenkCPU:   Freescale MCF52277 (Mask:6c Version:0)
145702e6014SWolfgang Denk       CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ
146702e6014SWolfgang Denk       INP CLK 16 Mhz VCO CLK 480 Mhz
147702e6014SWolfgang DenkBoard: Freescale 52277 EVB
148702e6014SWolfgang DenkI2C:   ready
149702e6014SWolfgang DenkDRAM:  64 MB
150702e6014SWolfgang DenkFLASH: 16 MB
151702e6014SWolfgang DenkIn:    serial
152702e6014SWolfgang DenkOut:   serial
153702e6014SWolfgang DenkErr:   serial
154702e6014SWolfgang Denk-> print
155702e6014SWolfgang Denkbaudrate=115200
156702e6014SWolfgang Denkhostname=M52277EVB
157702e6014SWolfgang Denkinpclk=16000000
158702e6014SWolfgang Denkloadaddr=(0x40000000 + 0x10000)
159702e6014SWolfgang Denkload=tftp ${loadaddr) ${u-boot}
160702e6014SWolfgang Denkupd=run load; run prog
161702e6014SWolfgang Denkprog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save
162702e6014SWolfgang Denku-boot=u-boot.bin
163702e6014SWolfgang Denkstdin=serial
164702e6014SWolfgang Denkstdout=serial
165702e6014SWolfgang Denkstderr=serial
166702e6014SWolfgang Denkmem=65024k
167702e6014SWolfgang Denk
168702e6014SWolfgang DenkEnvironment size: 280/32764 bytes
169702e6014SWolfgang Denk-> bdinfo
170702e6014SWolfgang Denkmemstart    = 0x40000000
171702e6014SWolfgang Denkmemsize     = 0x04000000
172702e6014SWolfgang Denkflashstart  = 0x00000000
173702e6014SWolfgang Denkflashsize   = 0x01000000
174702e6014SWolfgang Denkflashoffset = 0x00000000
175702e6014SWolfgang Denksramstart   = 0x80000000
176702e6014SWolfgang Denksramsize    = 0x00008000
177702e6014SWolfgang Denkmbar        = 0xFC000000
178702e6014SWolfgang Denkbusfreq     =     80 MHz
179702e6014SWolfgang Denkflbfreq     =     80 Mhz
180702e6014SWolfgang Denkinpfreq     =     16 Mhz
181702e6014SWolfgang Denkvcofreq     =    480 Mhz
182702e6014SWolfgang Denk
183702e6014SWolfgang Denkbaudrate    = 115200 bps
184702e6014SWolfgang Denk->
185702e6014SWolfgang Denk-> help
186702e6014SWolfgang Denk?       - alias for 'help'
187702e6014SWolfgang Denkbase    - print or set address offset
188702e6014SWolfgang Denkbdinfo  - print Board Info structure
189702e6014SWolfgang Denkboot    - boot default, i.e., run 'bootcmd'
190702e6014SWolfgang Denkbootd   - boot default, i.e., run 'bootcmd'
191702e6014SWolfgang Denkbootelf - Boot from an ELF image in memory
192702e6014SWolfgang Denkbootm   - boot application image from memory
193702e6014SWolfgang Denkbootp	- boot image via network using BootP/TFTP protocol
194702e6014SWolfgang Denkbootvx  - Boot vxWorks from an ELF image
195702e6014SWolfgang Denkcmp     - memory compare
196702e6014SWolfgang Denkconinfo - print console devices and information
197702e6014SWolfgang Denkcp      - memory copy
198702e6014SWolfgang Denkcrc32   - checksum calculation
199702e6014SWolfgang Denkdate    - get/set/reset date & time
200702e6014SWolfgang Denkdcache  - enable or disable data cache
201702e6014SWolfgang Denkecho    - echo args to console
202702e6014SWolfgang Denkerase   - erase FLASH memory
203702e6014SWolfgang Denkflinfo  - print FLASH memory information
204702e6014SWolfgang Denkgo      - start application at address 'addr'
205702e6014SWolfgang Denkhelp    - print online help
206702e6014SWolfgang Denki2c     - I2C sub-system
207702e6014SWolfgang Denkicache  - enable or disable instruction cache
208702e6014SWolfgang Denkiminfo  - print header information for application image
209702e6014SWolfgang Denkimls    - list all images found in flash
210702e6014SWolfgang Denkitest	- return true/false on integer compare
211702e6014SWolfgang Denkloadb   - load binary file over serial line (kermit mode)
212702e6014SWolfgang Denkloads   - load S-Record file over serial line
213702e6014SWolfgang Denkloady   - load binary file over serial line (ymodem mode)
214702e6014SWolfgang Denkloop    - infinite loop on address range
215702e6014SWolfgang Denkls	- list files in a directory (default /)
216702e6014SWolfgang Denkmd      - memory display
217702e6014SWolfgang Denkmm      - memory modify (auto-incrementing)
218702e6014SWolfgang Denkmtest   - simple RAM test
219702e6014SWolfgang Denkmw      - memory write (fill)
220702e6014SWolfgang Denknm      - memory modify (constant address)
221702e6014SWolfgang Denkping	- send ICMP ECHO_REQUEST to network host
222702e6014SWolfgang Denkprintenv- print environment variables
223702e6014SWolfgang Denkprotect - enable or disable FLASH write protection
224702e6014SWolfgang Denkreset   - Perform RESET of the CPU
225702e6014SWolfgang Denkrun     - run commands in an environment variable
226702e6014SWolfgang Denksaveenv - save environment variables to persistent storage
227702e6014SWolfgang Denksetenv  - set environment variables
228702e6014SWolfgang Denksleep   - delay execution for some time
229702e6014SWolfgang Denksource  - run script from memory
230702e6014SWolfgang Denkversion - print monitor version
231702e6014SWolfgang Denk->
232