TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 1 | Freescale MCF5475EVB ColdFire Development Board |
| 2 | ================================================ |
| 3 | |
| 4 | TsiChung Liew(Tsi-Chung.Liew@freescale.com) |
| 5 | Created Jan 08, 2008 |
| 6 | =========================================== |
| 7 | |
| 8 | |
| 9 | Changed 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 | |
Peter Tyser | a414553 | 2010-04-12 22:28:12 -0500 | [diff] [blame] | 18 | - arch/m68k/cpu/mcf547x_8x/cpu.c cpu specific code |
| 19 | - arch/m68k/cpu/mcf547x_8x/cpu_init.c Flexbus ChipSelect, Mux pins setup, icache and RTC extra regs |
| 20 | - arch/m68k/cpu/mcf547x_8x/interrupts.c cpu specific interrupt support |
| 21 | - arch/m68k/cpu/mcf547x_8x/slicetimer.c Timer support |
| 22 | - arch/m68k/cpu/mcf547x_8x/speed.c system, pci, flexbus, and cpu clock |
| 23 | - arch/m68k/cpu/mcf547x_8x/Makefile Makefile |
| 24 | - arch/m68k/cpu/mcf547x_8x/config.mk config make |
| 25 | - arch/m68k/cpu/mcf547x_8x/start.S start up assembly code |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 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 |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 57 | - include/asm-m68k/u-boot.h U-Boot structure |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 58 | |
| 59 | - include/configs/M5475EVB.h Board specific configuration file |
| 60 | |
Peter Tyser | ea0364f | 2010-04-12 22:28:04 -0500 | [diff] [blame] | 61 | - 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 |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 66 | |
| 67 | 1 MCF547x specific Options/Settings |
| 68 | ==================================== |
| 69 | 1.1 pre-loader is no longer suppoer in thie coldfire family |
| 70 | |
| 71 | 1.2 Configuration settings for M5475EVB Development Board |
| 72 | CONFIG_MCF547x_8x -- define for all MCF547x_8x CPUs |
| 73 | CONFIG_M547x -- define for all Freescale MCF547x CPUs |
| 74 | CONFIG_M5475 -- define for M5475EVB board |
| 75 | |
| 76 | CONFIG_MCFUART -- define to use common CF Uart driver |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 77 | CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2 |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 78 | CONFIG_BAUDRATE -- define UART baudrate |
| 79 | |
| 80 | CONFIG_FSLDMAFEC -- define to use common dma FEC driver |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 81 | CONFIG_MII -- enable to use MII driver |
| 82 | CONFIG_CF_DOMII -- enable to use MII feature in cmd_mii.c |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 83 | CONFIG_SYS_DISCOVER_PHY -- enable PHY discovery |
| 84 | CONFIG_SYS_RX_ETH_BUFFER -- Set FEC Receive buffer |
| 85 | CONFIG_SYS_FAULT_ECHO_LINK_DOWN-- |
| 86 | CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration |
| 87 | CONFIG_SYS_FEC1_PINMUX -- Set FEC1 Pin configuration |
| 88 | CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register |
| 89 | CONFIG_SYS_FEC1_MIIBASE -- Set FEC0 MII base register |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 90 | MCFFEC_TOUT_LOOP -- set FEC timeout loop |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 91 | CONFIG_HAS_ETH1 -- define to enable second FEC in U-Boot |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 92 | |
| 93 | CONFIG_CMD_USB -- enable USB commands |
| 94 | CONFIG_USB_OHCI_NEW -- enable USB OHCI driver |
| 95 | CONFIG_USB_STORAGE -- enable USB Storage device |
| 96 | CONFIG_DOS_PARTITION -- enable DOS read/write |
| 97 | |
| 98 | CONFIG_SLTTMR -- define to use SLT timer |
| 99 | |
Heiko Schocher | 00f792e | 2012-10-24 13:48:22 +0200 | [diff] [blame] | 100 | CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver |
Heiko Schocher | ea818db | 2013-01-29 08:53:15 +0100 | [diff] [blame] | 101 | CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 102 | CONFIG_SYS_I2C_SPEED -- define for I2C speed |
| 103 | CONFIG_SYS_I2C_SLAVE -- define for I2C slave address |
| 104 | CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset |
| 105 | CONFIG_SYS_IMMR -- define for MBAR offset |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 106 | |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 107 | CONFIG_PCI -- define for PCI support |
| 108 | CONFIG_PCI_PNP -- define for Plug n play support |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 109 | CONFIG_SKIPPCI_HOSTBRIDGE -- SKIP PCI Host bridge |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 110 | CONFIG_SYS_PCI_MEM_BUS -- PCI memory logical offset |
| 111 | CONFIG_SYS_PCI_MEM_PHYS -- PCI memory physical offset |
| 112 | CONFIG_SYS_PCI_MEM_SIZE -- PCI memory size |
| 113 | CONFIG_SYS_PCI_IO_BUS -- PCI IO logical offset |
| 114 | CONFIG_SYS_PCI_IO_PHYS -- PCI IO physical offset |
| 115 | CONFIG_SYS_PCI_IO_SIZE -- PCI IO size |
| 116 | CONFIG_SYS_PCI_CFG_BUS -- PCI Configuration logical offset |
| 117 | CONFIG_SYS_PCI_CFG_PHYS -- PCI Configuration physical offset |
| 118 | CONFIG_SYS_PCI_CFG_SIZE -- PCI Configuration size |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 119 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 120 | CONFIG_SYS_MBAR -- define MBAR offset |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 121 | |
| 122 | CONFIG_MONITOR_IS_IN_RAM -- Not support |
| 123 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 124 | CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF547x internal SRAM |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 125 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register |
| 127 | CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register |
| 128 | CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 129 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 130 | CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 131 | |
| 132 | 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL |
| 133 | =========================================== |
| 134 | 2.1. System memory map: |
| 135 | Flash: 0xFF800000-0xFFFFFFFF (8MB) |
| 136 | DDR: 0x00000000-0x3FFFFFFF (1024MB) |
| 137 | SRAM: 0xF2000000-0xF2000FFF (4KB) |
| 138 | PCI: 0x70000000-0x8FFFFFFF (512MB) |
| 139 | IP: 0xF0000000-0xFFFFFFFF (256MB) |
| 140 | |
| 141 | 3. COMPILATION |
| 142 | ============== |
| 143 | 3.1 To create U-Boot the gcc-4.x compiler set (ColdFire ELF or uclinux |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 144 | version) from codesourcery.com was used. Download it from: |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 145 | http://www.codesourcery.com/gnu_toolchains/coldfire/download.html |
| 146 | |
| 147 | 3.2 Compilation |
| 148 | export CROSS_COMPILE=cross-compile-prefix |
| 149 | cd u-boot-1.x.x |
| 150 | make distclean |
| 151 | make M5475AFE_config, or - boot 2MB, RAM 64MB |
| 152 | make M5475BFE_config, or - boot 2MB, code 16MB, RAM 64MB |
| 153 | make M5475CFE_config, or - boot 2MB, code 16MB, Video, USB, RAM 64MB |
| 154 | make M5475DFE_config, or - boot 2MB, USB, RAM 64MB |
| 155 | make M5475EFE_config, or - boot 2MB, Video, USB, RAM 64MB |
| 156 | make M5475FFE_config, or - boot 2MB, code 32MB, Video, USB, RAM 128MB |
| 157 | make M5475GFE_config, or - boot 2MB, RAM 64MB |
| 158 | make |
| 159 | |
| 160 | 5. SCREEN DUMP |
| 161 | ============== |
| 162 | 5.1 |
| 163 | |
| 164 | U-Boot 1.3.1 (Jan 8 2008 - 12:47:44) |
| 165 | |
| 166 | CPU: Freescale MCF5475 |
| 167 | CPU CLK 266 Mhz BUS CLK 133 Mhz |
| 168 | Board: Freescale FireEngine 5475 EVB |
| 169 | I2C: ready |
| 170 | DRAM: 64 MB |
| 171 | FLASH: 18 MB |
| 172 | In: serial |
| 173 | Out: serial |
| 174 | Err: serial |
| 175 | Net: FEC0, FEC1 |
| 176 | -> pri |
| 177 | bootdelay=1 |
| 178 | baudrate=115200 |
| 179 | ethaddr=00:e0:0c:bc:e5:60 |
| 180 | eth1addr=00:e0:0c:bc:e5:61 |
| 181 | ipaddr=192.162.1.2 |
| 182 | serverip=192.162.1.1 |
| 183 | gatewayip=192.162.1.1 |
| 184 | netmask=255.255.255.0 |
| 185 | hostname=M547xEVB |
| 186 | netdev=eth0 |
| 187 | loadaddr=10000 |
| 188 | u-boot=u-boot.bin |
| 189 | load=tftp ${loadaddr) ${u-boot} |
| 190 | upd=run load; run prog |
| 191 | prog=prot off bank 1;era ff800000 ff82ffff;cp.b ${loadaddr} ff800000 ${filesize};save |
| 192 | stdin=serial |
| 193 | stdout=serial |
| 194 | stderr=serial |
| 195 | ethact=FEC0 |
| 196 | mem=65024k |
| 197 | |
| 198 | Environment size: 433/8188 bytes |
| 199 | -> bdin |
| 200 | memstart = 0x00000000 |
| 201 | memsize = 0x04000000 |
| 202 | flashstart = 0xFF800000 |
| 203 | flashsize = 0x01200000 |
| 204 | flashoffset = 0x00000000 |
| 205 | sramstart = 0xF2000000 |
| 206 | sramsize = 0x00001000 |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 207 | mbar = 0xF0000000 |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 208 | busfreq = 133.333 MHz |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 209 | pcifreq = 0 MHz |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 210 | ethaddr = 00:E0:0C:BC:E5:60 |
| 211 | eth1addr = 00:E0:0C:BC:E5:61 |
| 212 | ip_addr = 192.162.1.2 |
| 213 | baudrate = 115200 bps |
| 214 | -> ? |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 215 | ? - alias for 'help' |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 216 | base - print or set address offset |
| 217 | bdinfo - print Board Info structure |
| 218 | boot - boot default, i.e., run 'bootcmd' |
| 219 | bootd - boot default, i.e., run 'bootcmd' |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 220 | bootelf - Boot from an ELF image in memory |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 221 | bootm - boot application image from memory |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 222 | bootp - boot image via network using BootP/TFTP protocol |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 223 | bootvx - Boot vxWorks from an ELF image |
| 224 | cmp - memory compare |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 225 | coninfo - print console devices and information |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 226 | cp - memory copy |
| 227 | crc32 - checksum calculation |
| 228 | dcache - enable or disable data cache |
| 229 | echo - echo args to console |
| 230 | erase - erase FLASH memory |
| 231 | flinfo - print FLASH memory information |
| 232 | go - start application at address 'addr' |
| 233 | help - print online help |
Peter Tyser | 0f89c54 | 2009-04-18 22:34:03 -0500 | [diff] [blame] | 234 | i2c - I2C sub-system |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 235 | icache - enable or disable instruction cache |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 236 | iminfo - print header information for application image |
| 237 | imls - list all images found in flash |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 238 | itest - return true/false on integer compare |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 239 | loadb - load binary file over serial line (kermit mode) |
| 240 | loads - load S-Record file over serial line |
| 241 | loady - load binary file over serial line (ymodem mode) |
| 242 | loop - infinite loop on address range |
| 243 | md - memory display |
| 244 | mii - MII utility commands |
| 245 | mm - memory modify (auto-incrementing) |
| 246 | mtest - simple RAM test |
| 247 | mw - memory write (fill) |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 248 | nfs - boot image via network using NFS protocol |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 249 | nm - memory modify (constant address) |
| 250 | pci - list and access PCI Configuration Space |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 251 | ping - send ICMP ECHO_REQUEST to network host |
| 252 | printenv- print environment variables |
| 253 | protect - enable or disable FLASH write protection |
| 254 | rarpboot- boot image via network using RARP/TFTP protocol |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 255 | reset - Perform RESET of the CPU |
| 256 | run - run commands in an environment variable |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 257 | saveenv - save environment variables to persistent storage |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 258 | setenv - set environment variables |
| 259 | sleep - delay execution for some time |
Peter Tyser | 3202d33 | 2009-09-16 21:38:10 -0500 | [diff] [blame] | 260 | source - run script from memory |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 261 | tftpboot- boot image via network using TFTP protocol |
Wolfgang Denk | 865f0f9 | 2008-01-23 14:31:17 +0100 | [diff] [blame] | 262 | usb - USB sub-system |
TsiChungLiew | 57a1272 | 2008-01-15 14:15:46 -0600 | [diff] [blame] | 263 | usbboot - boot from USB device |
| 264 | version - print monitor version |
| 265 | -> usb start |
| 266 | (Re)start USB... |
| 267 | USB: OHCI pci controller (1131, 1561) found @(0:17:0) |
| 268 | OHCI regs address 0x80000000 |
| 269 | scanning bus for devices... 2 USB Device(s) found |
| 270 | scanning bus for storage devices... 1 Storage Device(s) found |
| 271 | -> |