blob: 8bfd8122dd89393546b65c0d89efdb531ea44750 [file] [log] [blame]
TsiChungLiew99b037a2008-01-14 17:43:33 -06001Freescale MCF52277EVB ColdFire Development Board
2================================================
3
4TsiChung Liew(Tsi-Chung.Liew@freescale.com)
5Created Jan 8, 2008
6===========================================
7
8
9Changed files:
10==============
11
12- board/freescale/m52277evb/m52277evb.c Dram setup
13- board/freescale/m52277evb/Makefile Makefile
14- board/freescale/m52277evb/config.mk config make
15- board/freescale/m52277evb/u-boot.lds Linker description
16
Peter Tyser45dbaf22010-04-12 22:28:12 -050017- arch/m68k/cpu/mcf5227x/cpu.c cpu specific code
18- arch/m68k/cpu/mcf5227x/cpu_init.c FBCS, Mux pins, icache and RTC extra regs
19- arch/m68k/cpu/mcf5227x/interrupts.c cpu specific interrupt support
20- arch/m68k/cpu/mcf5227x/speed.c system, flexbus, and cpu clock
21- arch/m68k/cpu/mcf5227x/Makefile Makefile
22- arch/m68k/cpu/mcf5227x/config.mk config make
23- arch/m68k/cpu/mcf5227x/start.S start up assembly code
TsiChungLiew99b037a2008-01-14 17:43:33 -060024
Patrick Delaunay03a4c422020-02-28 15:18:14 +010025- board/freescale/m52277evb/README This readme file
TsiChungLiew99b037a2008-01-14 17:43:33 -060026
27- drivers/serial/mcfuart.c ColdFire common UART driver
28- drivers/rtc/mcfrtc.c Realtime clock Driver
29
30- include/asm-m68k/bitops.h Bit operation function export
31- include/asm-m68k/byteorder.h Byte order functions
32- include/asm-m68k/crossbar.h CrossBar structure and definition
33- include/asm-m68k/dspi.h DSPI structure and definition
34- include/asm-m68k/edma.h eDMA structure and definition
35- include/asm-m68k/flexbus.h FlexBus structure and definition
36- include/asm-m68k/fsl_i2c.h I2C structure and definition
37- include/asm-m68k/global_data.h Global data structure
38- include/asm-m68k/immap.h ColdFire specific header file and driver macros
39- include/asm-m68k/immap_5227x.h mcf5227x specific header file
40- include/asm-m68k/io.h io functions
41- include/asm-m68k/lcd.h LCD structure and definition
42- include/asm-m68k/m5227x.h mcf5227x specific header file
43- include/asm-m68k/posix_types.h Posix
44- include/asm-m68k/processor.h header file
45- include/asm-m68k/ptrace.h Exception structure
46- include/asm-m68k/rtc.h Realtime clock header file
47- include/asm-m68k/ssi.h SSI structure and definition
48- include/asm-m68k/string.h String function export
49- include/asm-m68k/timer.h Timer structure and definition
50- include/asm-m68k/types.h Data types definition
51- include/asm-m68k/uart.h Uart structure and definition
Bin Meng75574052016-02-05 19:30:11 -080052- include/asm-m68k/u-boot.h U-Boot structure
TsiChungLiew99b037a2008-01-14 17:43:33 -060053
54- include/configs/M52277EVB.h Board specific configuration file
55
Peter Tysercede5d82010-04-12 22:28:04 -050056- arch/m68k/lib/board.c board init function
57- arch/m68k/lib/cache.c
58- arch/m68k/lib/interrupts Coldfire common interrupt functions
59- arch/m68k/lib/m68k_linux.c
60- arch/m68k/lib/time.c Timer functions (Dma timer and PIT)
61- arch/m68k/lib/traps.c Exception init code
TsiChungLiew99b037a2008-01-14 17:43:33 -060062
631 MCF52277 specific Options/Settings
64====================================
651.1 pre-loader is no longer suppoer in this coldfire family
66
671.2 Configuration settings for M52277EVB Development Board
68CONFIG_MCF5227x -- define for all MCF5227x CPUs
69CONFIG_M52277 -- define for all Freescale MCF52277 CPUs
TsiChungLiew99b037a2008-01-14 17:43:33 -060070
71CONFIG_MCFUART -- define to use common CF Uart driver
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020072CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
TsiChungLiew99b037a2008-01-14 17:43:33 -060073CONFIG_BAUDRATE -- define UART baudrate
74
75CONFIG_MCFRTC -- define to use common CF RTC driver
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020076CONFIG_SYS_MCFRTC_BASE -- provide base address for RTC in immap.h
77CONFIG_SYS_RTC_OSCILLATOR -- define RTC clock frequency
TsiChungLiew99b037a2008-01-14 17:43:33 -060078RTC_DEBUG -- define to show RTC debug message
Bin Meng75574052016-02-05 19:30:11 -080079CONFIG_CMD_DATE -- enable to use date feature in U-Boot
TsiChungLiew99b037a2008-01-14 17:43:33 -060080
81CONFIG_MCFTMR -- define to use DMA timer
TsiChungLiew99b037a2008-01-14 17:43:33 -060082
Heiko Schocherf2850742012-10-24 13:48:22 +020083CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver
Heiko Schocher479a4cf2013-01-29 08:53:15 +010084CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020085CONFIG_SYS_I2C_SPEED -- define for I2C speed
86CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
87CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset
88CONFIG_SYS_IMMR -- define for MBAR offset
TsiChungLiew99b037a2008-01-14 17:43:33 -060089
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020090CONFIG_SYS_MBAR -- define MBAR offset
TsiChungLiew99b037a2008-01-14 17:43:33 -060091
92CONFIG_MONITOR_IS_IN_RAM -- Not support
93
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020094CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF52277 internal SRAM
TsiChungLiew99b037a2008-01-14 17:43:33 -060095
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020096CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
97CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
98CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
TsiChungLiew99b037a2008-01-14 17:43:33 -060099
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200100CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
TsiChungLiew99b037a2008-01-14 17:43:33 -0600101
Bin Meng75574052016-02-05 19:30:11 -0800102CONFIG_LCD and CONFIG_CMD_USB are not supported in this current U-Boot,
TsiChungLiew99b037a2008-01-14 17:43:33 -0600103update will be provided at later time
104
1052. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
106===========================================
1072.1. System memory map:
108 Flash: 0x00000000-0x3FFFFFFF (1024MB)
109 DDR: 0x40000000-0x7FFFFFFF (1024MB)
110 SRAM: 0x80000000-0x8FFFFFFF (256MB)
111 IP: 0xF0000000-0xFFFFFFFF (256MB)
112
Bin Meng75574052016-02-05 19:30:11 -08001132.2. For the initial bringup, we adopted a consistent memory scheme between U-Boot and
TsiChungLiew99b037a2008-01-14 17:43:33 -0600114 linux kernel, you can customize it based on your system requirements:
115 Flash0: 0x00000000-0x00FFFFFF (16MB)
116
117 DDR: 0x40000000-0x4FFFFFFF (64MB)
118 SRAM: 0x80000000-0x80007FFF (32KB)
119 IP: 0xFC000000-0xFC0FFFFF (64KB)
120
1213. COMPILATION
122==============
1233.1 To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or
124uClinux version) from codesourcery.com was used. Download it from:
125http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
126
1273.2 Compilation
128 export CROSS_COMPILE=cross-compile-prefix
129 cd u-boot-1.x.x
130 make distclean
131 make M52277EVB_config
132 make
133
1344. SCREEN DUMP
135==============
1364.1 M52277EVB Development board
137 (NOTE: May not show exactly the same)
138
139U-Boot 1.3.1 (Jan 8 2008 - 12:44:08)
140
141CPU: Freescale MCF52277 (Mask:6c Version:0)
142 CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ
143 INP CLK 16 Mhz VCO CLK 480 Mhz
144Board: Freescale 52277 EVB
145I2C: ready
146DRAM: 64 MB
147FLASH: 16 MB
148In: serial
149Out: serial
150Err: serial
151-> print
152baudrate=115200
153hostname=M52277EVB
154inpclk=16000000
155loadaddr=(0x40000000 + 0x10000)
156load=tftp ${loadaddr) ${u-boot}
157upd=run load; run prog
158prog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save
159u-boot=u-boot.bin
160stdin=serial
161stdout=serial
162stderr=serial
163mem=65024k
164
165Environment size: 280/32764 bytes
166-> bdinfo
167memstart = 0x40000000
168memsize = 0x04000000
169flashstart = 0x00000000
170flashsize = 0x01000000
171flashoffset = 0x00000000
172sramstart = 0x80000000
173sramsize = 0x00008000
174mbar = 0xFC000000
175busfreq = 80 MHz
176flbfreq = 80 Mhz
177inpfreq = 16 Mhz
178vcofreq = 480 Mhz
179
180baudrate = 115200 bps
181->
182-> help
183? - alias for 'help'
TsiChungLiew99b037a2008-01-14 17:43:33 -0600184base - print or set address offset
185bdinfo - print Board Info structure
186boot - boot default, i.e., run 'bootcmd'
187bootd - boot default, i.e., run 'bootcmd'
188bootelf - Boot from an ELF image in memory
189bootm - boot application image from memory
190bootp - boot image via network using BootP/TFTP protocol
191bootvx - Boot vxWorks from an ELF image
192cmp - memory compare
193coninfo - print console devices and information
194cp - memory copy
195crc32 - checksum calculation
196date - get/set/reset date & time
197dcache - enable or disable data cache
198echo - echo args to console
199erase - erase FLASH memory
200flinfo - print FLASH memory information
201go - start application at address 'addr'
202help - print online help
Peter Tyser469cde42009-04-18 22:34:03 -0500203i2c - I2C sub-system
TsiChungLiew99b037a2008-01-14 17:43:33 -0600204icache - enable or disable instruction cache
TsiChungLiew99b037a2008-01-14 17:43:33 -0600205iminfo - print header information for application image
206imls - list all images found in flash
TsiChungLiew99b037a2008-01-14 17:43:33 -0600207itest - return true/false on integer compare
208loadb - load binary file over serial line (kermit mode)
209loads - load S-Record file over serial line
210loady - load binary file over serial line (ymodem mode)
211loop - infinite loop on address range
212ls - list files in a directory (default /)
213md - memory display
214mm - memory modify (auto-incrementing)
215mtest - simple RAM test
216mw - memory write (fill)
217nm - memory modify (constant address)
218ping - send ICMP ECHO_REQUEST to network host
219printenv- print environment variables
220protect - enable or disable FLASH write protection
221reset - Perform RESET of the CPU
222run - run commands in an environment variable
223saveenv - save environment variables to persistent storage
224setenv - set environment variables
225sleep - delay execution for some time
Peter Tyserd78876c2009-09-16 21:38:10 -0500226source - run script from memory
TsiChungLiew99b037a2008-01-14 17:43:33 -0600227version - print monitor version
228->