blob: b61dfba3cdd86d3fa6579214db1c3f17cb03a27f [file] [log] [blame]
TsiChungLiew57a12722008-01-15 14:15:46 -06001Freescale MCF5475EVB ColdFire Development Board
2================================================
3
4TsiChung Liew(Tsi-Chung.Liew@freescale.com)
5Created Jan 08, 2008
6===========================================
7
8
9Changed files:
10==============
11
12- board/freescale/m547xevb/m547xevb.c Dram setup, IDE pre init, and PCI init
13- board/freescale/m547xevb/mii.c MII init
14- board/freescale/m547xevb/Makefile Makefile
15- board/freescale/m547xevb/config.mk config make
16- board/freescale/m547xevb/u-boot.lds Linker description
17
18- cpu/mcf547x_8x/cpu.c cpu specific code
19- cpu/mcf547x_8x/cpu_init.c Flexbus ChipSelect, Mux pins setup, icache and RTC extra regs
20- cpu/mcf547x_8x/interrupts.c cpu specific interrupt support
21- cpu/mcf547x_8x/slicetimer.c Timer support
22- cpu/mcf547x_8x/speed.c system, pci, flexbus, and cpu clock
23- cpu/mcf547x_8x/Makefile Makefile
24- cpu/mcf547x_8x/config.mk config make
25- cpu/mcf547x_8x/start.S start up assembly code
26
27- doc/README.m5475evb This readme file
28
29- drivers/dma/MCD_dmaApi.c DMA API functions
30- drivers/dma/MCD_tasks.c DMA Tasks
31- drivers/dma/MCD_tasksInit.c DMA Tasks Init
32- drivers/net/fsl_mcdmafec.c ColdFire common DMA FEC driver
33- drivers/serial/mcfuart.c ColdFire common UART driver
34
35- include/MCD_dma.h DMA header file
36- include/MCD_progCheck.h DMA header file
37- include/MCD_tasksInit.h DMA header file
38- include/asm-m68k/bitops.h Bit operation function export
39- include/asm-m68k/byteorder.h Byte order functions
40- include/asm-m68k/errno.h Error Number definition
41- include/asm-m68k/fec.h FEC structure and definition
42- include/asm-m68k/fsl_i2c.h I2C structure and definition
43- include/asm-m68k/fsl_mcddmafec.h DMA FEC structure and definition
44- include/asm-m68k/global_data.h Global data structure
45- include/asm-m68k/immap.h ColdFire specific header file and driver macros
46- include/asm-m68k/immap_547x_8x.h mcf547x_8x specific header file
47- include/asm-m68k/io.h io functions
48- include/asm-m68k/m547x_8x.h mcf547x_8x specific header file
49- include/asm-m68k/posix_types.h Posix
50- include/asm-m68k/processor.h header file
51- include/asm-m68k/ptrace.h Exception structure
52- include/asm-m68k/rtc.h Realtime clock header file
53- include/asm-m68k/string.h String function export
54- include/asm-m68k/timer.h Timer structure and definition
55- include/asm-m68k/types.h Data types definition
56- include/asm-m68k/uart.h Uart structure and definition
57- include/asm-m68k/u-boot.h u-boot structure
58
59- include/configs/M5475EVB.h Board specific configuration file
60
Peter Tyserea0364f2010-04-12 22:28:04 -050061- arch/m68k/lib/board.c board init function
62- arch/m68k/lib/cache.c
63- arch/m68k/lib/interrupts Coldfire common interrupt functions
64- arch/m68k/lib/m68k_linux.c
65- arch/m68k/lib/traps.c Exception init code
TsiChungLiew57a12722008-01-15 14:15:46 -060066
671 MCF547x specific Options/Settings
68====================================
691.1 pre-loader is no longer suppoer in thie coldfire family
70
711.2 Configuration settings for M5475EVB Development Board
72CONFIG_MCF547x_8x -- define for all MCF547x_8x CPUs
73CONFIG_M547x -- define for all Freescale MCF547x CPUs
74CONFIG_M5475 -- define for M5475EVB board
75
76CONFIG_MCFUART -- define to use common CF Uart driver
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020077CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
TsiChungLiew57a12722008-01-15 14:15:46 -060078CONFIG_BAUDRATE -- define UART baudrate
79
80CONFIG_FSLDMAFEC -- define to use common dma FEC driver
81CONFIG_NET_MULTI -- define to use multi FEC in u-boot
82CONFIG_MII -- enable to use MII driver
83CONFIG_CF_DOMII -- enable to use MII feature in cmd_mii.c
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020084CONFIG_SYS_DISCOVER_PHY -- enable PHY discovery
85CONFIG_SYS_RX_ETH_BUFFER -- Set FEC Receive buffer
86CONFIG_SYS_FAULT_ECHO_LINK_DOWN--
87CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration
88CONFIG_SYS_FEC1_PINMUX -- Set FEC1 Pin configuration
89CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register
90CONFIG_SYS_FEC1_MIIBASE -- Set FEC0 MII base register
TsiChungLiew57a12722008-01-15 14:15:46 -060091MCFFEC_TOUT_LOOP -- set FEC timeout loop
92CONFIG_HAS_ETH1 -- define to enable second FEC in u-boot
93
94CONFIG_CMD_USB -- enable USB commands
95CONFIG_USB_OHCI_NEW -- enable USB OHCI driver
96CONFIG_USB_STORAGE -- enable USB Storage device
97CONFIG_DOS_PARTITION -- enable DOS read/write
98
99CONFIG_SLTTMR -- define to use SLT timer
100
101CONFIG_FSL_I2C -- define to use FSL common I2C driver
102CONFIG_HARD_I2C -- define for I2C hardware support
103CONFIG_SOFT_I2C -- define for I2C bit-banged
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200104CONFIG_SYS_I2C_SPEED -- define for I2C speed
105CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
106CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset
107CONFIG_SYS_IMMR -- define for MBAR offset
TsiChungLiew57a12722008-01-15 14:15:46 -0600108
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100109CONFIG_PCI -- define for PCI support
110CONFIG_PCI_PNP -- define for Plug n play support
TsiChungLiew57a12722008-01-15 14:15:46 -0600111CONFIG_SKIPPCI_HOSTBRIDGE -- SKIP PCI Host bridge
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200112CONFIG_SYS_PCI_MEM_BUS -- PCI memory logical offset
113CONFIG_SYS_PCI_MEM_PHYS -- PCI memory physical offset
114CONFIG_SYS_PCI_MEM_SIZE -- PCI memory size
115CONFIG_SYS_PCI_IO_BUS -- PCI IO logical offset
116CONFIG_SYS_PCI_IO_PHYS -- PCI IO physical offset
117CONFIG_SYS_PCI_IO_SIZE -- PCI IO size
118CONFIG_SYS_PCI_CFG_BUS -- PCI Configuration logical offset
119CONFIG_SYS_PCI_CFG_PHYS -- PCI Configuration physical offset
120CONFIG_SYS_PCI_CFG_SIZE -- PCI Configuration size
TsiChungLiew57a12722008-01-15 14:15:46 -0600121
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200122CONFIG_SYS_MBAR -- define MBAR offset
TsiChungLiew57a12722008-01-15 14:15:46 -0600123
124CONFIG_MONITOR_IS_IN_RAM -- Not support
125
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200126CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF547x internal SRAM
TsiChungLiew57a12722008-01-15 14:15:46 -0600127
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200128CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
129CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
130CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
TsiChungLiew57a12722008-01-15 14:15:46 -0600131
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200132CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
TsiChungLiew57a12722008-01-15 14:15:46 -0600133
1342. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
135===========================================
1362.1. System memory map:
137 Flash: 0xFF800000-0xFFFFFFFF (8MB)
138 DDR: 0x00000000-0x3FFFFFFF (1024MB)
139 SRAM: 0xF2000000-0xF2000FFF (4KB)
140 PCI: 0x70000000-0x8FFFFFFF (512MB)
141 IP: 0xF0000000-0xFFFFFFFF (256MB)
142
1433. COMPILATION
144==============
1453.1 To create U-Boot the gcc-4.x compiler set (ColdFire ELF or uclinux
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100146 version) from codesourcery.com was used. Download it from:
TsiChungLiew57a12722008-01-15 14:15:46 -0600147 http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
148
1493.2 Compilation
150 export CROSS_COMPILE=cross-compile-prefix
151 cd u-boot-1.x.x
152 make distclean
153 make M5475AFE_config, or - boot 2MB, RAM 64MB
154 make M5475BFE_config, or - boot 2MB, code 16MB, RAM 64MB
155 make M5475CFE_config, or - boot 2MB, code 16MB, Video, USB, RAM 64MB
156 make M5475DFE_config, or - boot 2MB, USB, RAM 64MB
157 make M5475EFE_config, or - boot 2MB, Video, USB, RAM 64MB
158 make M5475FFE_config, or - boot 2MB, code 32MB, Video, USB, RAM 128MB
159 make M5475GFE_config, or - boot 2MB, RAM 64MB
160 make
161
1625. SCREEN DUMP
163==============
1645.1
165
166U-Boot 1.3.1 (Jan 8 2008 - 12:47:44)
167
168CPU: Freescale MCF5475
169 CPU CLK 266 Mhz BUS CLK 133 Mhz
170Board: Freescale FireEngine 5475 EVB
171I2C: ready
172DRAM: 64 MB
173FLASH: 18 MB
174In: serial
175Out: serial
176Err: serial
177Net: FEC0, FEC1
178-> pri
179bootdelay=1
180baudrate=115200
181ethaddr=00:e0:0c:bc:e5:60
182eth1addr=00:e0:0c:bc:e5:61
183ipaddr=192.162.1.2
184serverip=192.162.1.1
185gatewayip=192.162.1.1
186netmask=255.255.255.0
187hostname=M547xEVB
188netdev=eth0
189loadaddr=10000
190u-boot=u-boot.bin
191load=tftp ${loadaddr) ${u-boot}
192upd=run load; run prog
193prog=prot off bank 1;era ff800000 ff82ffff;cp.b ${loadaddr} ff800000 ${filesize};save
194stdin=serial
195stdout=serial
196stderr=serial
197ethact=FEC0
198mem=65024k
199
200Environment size: 433/8188 bytes
201-> bdin
202memstart = 0x00000000
203memsize = 0x04000000
204flashstart = 0xFF800000
205flashsize = 0x01200000
206flashoffset = 0x00000000
207sramstart = 0xF2000000
208sramsize = 0x00001000
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100209mbar = 0xF0000000
TsiChungLiew57a12722008-01-15 14:15:46 -0600210busfreq = 133.333 MHz
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100211pcifreq = 0 MHz
TsiChungLiew57a12722008-01-15 14:15:46 -0600212ethaddr = 00:E0:0C:BC:E5:60
213eth1addr = 00:E0:0C:BC:E5:61
214ip_addr = 192.162.1.2
215baudrate = 115200 bps
216-> ?
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100217? - alias for 'help'
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100218base - print or set address offset
219bdinfo - print Board Info structure
220boot - boot default, i.e., run 'bootcmd'
221bootd - boot default, i.e., run 'bootcmd'
TsiChungLiew57a12722008-01-15 14:15:46 -0600222bootelf - Boot from an ELF image in memory
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100223bootm - boot application image from memory
TsiChungLiew57a12722008-01-15 14:15:46 -0600224bootp - boot image via network using BootP/TFTP protocol
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100225bootvx - Boot vxWorks from an ELF image
226cmp - memory compare
TsiChungLiew57a12722008-01-15 14:15:46 -0600227coninfo - print console devices and information
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100228cp - memory copy
229crc32 - checksum calculation
230dcache - enable or disable data cache
231echo - echo args to console
232erase - erase FLASH memory
233flinfo - print FLASH memory information
234go - start application at address 'addr'
235help - print online help
Peter Tyser0f89c542009-04-18 22:34:03 -0500236i2c - I2C sub-system
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100237icache - enable or disable instruction cache
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100238iminfo - print header information for application image
239imls - list all images found in flash
TsiChungLiew57a12722008-01-15 14:15:46 -0600240itest - return true/false on integer compare
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100241loadb - load binary file over serial line (kermit mode)
242loads - load S-Record file over serial line
243loady - load binary file over serial line (ymodem mode)
244loop - infinite loop on address range
245md - memory display
246mii - MII utility commands
247mm - memory modify (auto-incrementing)
248mtest - simple RAM test
249mw - memory write (fill)
TsiChungLiew57a12722008-01-15 14:15:46 -0600250nfs - boot image via network using NFS protocol
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100251nm - memory modify (constant address)
252pci - list and access PCI Configuration Space
TsiChungLiew57a12722008-01-15 14:15:46 -0600253ping - send ICMP ECHO_REQUEST to network host
254printenv- print environment variables
255protect - enable or disable FLASH write protection
256rarpboot- boot image via network using RARP/TFTP protocol
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100257reset - Perform RESET of the CPU
258run - run commands in an environment variable
TsiChungLiew57a12722008-01-15 14:15:46 -0600259saveenv - save environment variables to persistent storage
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100260setenv - set environment variables
261sleep - delay execution for some time
Peter Tyser3202d332009-09-16 21:38:10 -0500262source - run script from memory
TsiChungLiew57a12722008-01-15 14:15:46 -0600263tftpboot- boot image via network using TFTP protocol
Wolfgang Denk865f0f92008-01-23 14:31:17 +0100264usb - USB sub-system
TsiChungLiew57a12722008-01-15 14:15:46 -0600265usbboot - boot from USB device
266version - print monitor version
267-> usb start
268(Re)start USB...
269USB: OHCI pci controller (1131, 1561) found @(0:17:0)
270OHCI regs address 0x80000000
271scanning bus for devices... 2 USB Device(s) found
272 scanning bus for storage devices... 1 Storage Device(s) found
273->