TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 1 | Freescale MCF52277EVB ColdFire Development Board |
| 2 | ================================================ |
| 3 | |
| 4 | TsiChung Liew(Tsi-Chung.Liew@freescale.com) |
| 5 | Created Jan 8, 2008 |
| 6 | =========================================== |
| 7 | |
| 8 | |
| 9 | Changed 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 Tyser | 45dbaf2 | 2010-04-12 22:28:12 -0500 | [diff] [blame] | 17 | - 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 |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 24 | |
| 25 | - doc/README.m52277evb This readme file |
| 26 | |
| 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 Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 52 | - include/asm-m68k/u-boot.h U-Boot structure |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 53 | |
| 54 | - include/configs/M52277EVB.h Board specific configuration file |
| 55 | |
Peter Tyser | cede5d8 | 2010-04-12 22:28:04 -0500 | [diff] [blame] | 56 | - 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 |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 62 | |
| 63 | 1 MCF52277 specific Options/Settings |
| 64 | ==================================== |
| 65 | 1.1 pre-loader is no longer suppoer in this coldfire family |
| 66 | |
| 67 | 1.2 Configuration settings for M52277EVB Development Board |
| 68 | CONFIG_MCF5227x -- define for all MCF5227x CPUs |
| 69 | CONFIG_M52277 -- define for all Freescale MCF52277 CPUs |
| 70 | CONFIG_M52277EVB -- define for M52277EVB board |
| 71 | |
| 72 | CONFIG_MCFUART -- define to use common CF Uart driver |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 73 | CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2 |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 74 | CONFIG_BAUDRATE -- define UART baudrate |
| 75 | |
| 76 | CONFIG_MCFRTC -- define to use common CF RTC driver |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 77 | CONFIG_SYS_MCFRTC_BASE -- provide base address for RTC in immap.h |
| 78 | CONFIG_SYS_RTC_OSCILLATOR -- define RTC clock frequency |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 79 | RTC_DEBUG -- define to show RTC debug message |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 80 | CONFIG_CMD_DATE -- enable to use date feature in U-Boot |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 81 | |
| 82 | CONFIG_MCFTMR -- define to use DMA timer |
| 83 | CONFIG_MCFPIT -- define to use PIT timer |
| 84 | |
Heiko Schocher | f285074 | 2012-10-24 13:48:22 +0200 | [diff] [blame] | 85 | CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver |
Heiko Schocher | 479a4cf | 2013-01-29 08:53:15 +0100 | [diff] [blame] | 86 | CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 87 | CONFIG_SYS_I2C_SPEED -- define for I2C speed |
| 88 | CONFIG_SYS_I2C_SLAVE -- define for I2C slave address |
| 89 | CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset |
| 90 | CONFIG_SYS_IMMR -- define for MBAR offset |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 91 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 92 | CONFIG_SYS_MBAR -- define MBAR offset |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 93 | |
| 94 | CONFIG_MONITOR_IS_IN_RAM -- Not support |
| 95 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 96 | CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF52277 internal SRAM |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 97 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 98 | CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register |
| 99 | CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register |
| 100 | CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 101 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 102 | CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 103 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 104 | CONFIG_LCD and CONFIG_CMD_USB are not supported in this current U-Boot, |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 105 | update will be provided at later time |
| 106 | |
| 107 | 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL |
| 108 | =========================================== |
| 109 | 2.1. System memory map: |
| 110 | Flash: 0x00000000-0x3FFFFFFF (1024MB) |
| 111 | DDR: 0x40000000-0x7FFFFFFF (1024MB) |
| 112 | SRAM: 0x80000000-0x8FFFFFFF (256MB) |
| 113 | IP: 0xF0000000-0xFFFFFFFF (256MB) |
| 114 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 115 | 2.2. For the initial bringup, we adopted a consistent memory scheme between U-Boot and |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 116 | linux kernel, you can customize it based on your system requirements: |
| 117 | Flash0: 0x00000000-0x00FFFFFF (16MB) |
| 118 | |
| 119 | DDR: 0x40000000-0x4FFFFFFF (64MB) |
| 120 | SRAM: 0x80000000-0x80007FFF (32KB) |
| 121 | IP: 0xFC000000-0xFC0FFFFF (64KB) |
| 122 | |
| 123 | 3. COMPILATION |
| 124 | ============== |
| 125 | 3.1 To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or |
| 126 | uClinux version) from codesourcery.com was used. Download it from: |
| 127 | http://www.codesourcery.com/gnu_toolchains/coldfire/download.html |
| 128 | |
| 129 | 3.2 Compilation |
| 130 | export CROSS_COMPILE=cross-compile-prefix |
| 131 | cd u-boot-1.x.x |
| 132 | make distclean |
| 133 | make M52277EVB_config |
| 134 | make |
| 135 | |
| 136 | 4. SCREEN DUMP |
| 137 | ============== |
| 138 | 4.1 M52277EVB Development board |
| 139 | (NOTE: May not show exactly the same) |
| 140 | |
| 141 | U-Boot 1.3.1 (Jan 8 2008 - 12:44:08) |
| 142 | |
| 143 | CPU: Freescale MCF52277 (Mask:6c Version:0) |
| 144 | CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ |
| 145 | INP CLK 16 Mhz VCO CLK 480 Mhz |
| 146 | Board: Freescale 52277 EVB |
| 147 | I2C: ready |
| 148 | DRAM: 64 MB |
| 149 | FLASH: 16 MB |
| 150 | In: serial |
| 151 | Out: serial |
| 152 | Err: serial |
| 153 | -> print |
| 154 | baudrate=115200 |
| 155 | hostname=M52277EVB |
| 156 | inpclk=16000000 |
| 157 | loadaddr=(0x40000000 + 0x10000) |
| 158 | load=tftp ${loadaddr) ${u-boot} |
| 159 | upd=run load; run prog |
| 160 | prog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save |
| 161 | u-boot=u-boot.bin |
| 162 | stdin=serial |
| 163 | stdout=serial |
| 164 | stderr=serial |
| 165 | mem=65024k |
| 166 | |
| 167 | Environment size: 280/32764 bytes |
| 168 | -> bdinfo |
| 169 | memstart = 0x40000000 |
| 170 | memsize = 0x04000000 |
| 171 | flashstart = 0x00000000 |
| 172 | flashsize = 0x01000000 |
| 173 | flashoffset = 0x00000000 |
| 174 | sramstart = 0x80000000 |
| 175 | sramsize = 0x00008000 |
| 176 | mbar = 0xFC000000 |
| 177 | busfreq = 80 MHz |
| 178 | flbfreq = 80 Mhz |
| 179 | inpfreq = 16 Mhz |
| 180 | vcofreq = 480 Mhz |
| 181 | |
| 182 | baudrate = 115200 bps |
| 183 | -> |
| 184 | -> help |
| 185 | ? - alias for 'help' |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 186 | base - print or set address offset |
| 187 | bdinfo - print Board Info structure |
| 188 | boot - boot default, i.e., run 'bootcmd' |
| 189 | bootd - boot default, i.e., run 'bootcmd' |
| 190 | bootelf - Boot from an ELF image in memory |
| 191 | bootm - boot application image from memory |
| 192 | bootp - boot image via network using BootP/TFTP protocol |
| 193 | bootvx - Boot vxWorks from an ELF image |
| 194 | cmp - memory compare |
| 195 | coninfo - print console devices and information |
| 196 | cp - memory copy |
| 197 | crc32 - checksum calculation |
| 198 | date - get/set/reset date & time |
| 199 | dcache - enable or disable data cache |
| 200 | echo - echo args to console |
| 201 | erase - erase FLASH memory |
| 202 | flinfo - print FLASH memory information |
| 203 | go - start application at address 'addr' |
| 204 | help - print online help |
Peter Tyser | 469cde4 | 2009-04-18 22:34:03 -0500 | [diff] [blame] | 205 | i2c - I2C sub-system |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 206 | icache - enable or disable instruction cache |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 207 | iminfo - print header information for application image |
| 208 | imls - list all images found in flash |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 209 | itest - return true/false on integer compare |
| 210 | loadb - load binary file over serial line (kermit mode) |
| 211 | loads - load S-Record file over serial line |
| 212 | loady - load binary file over serial line (ymodem mode) |
| 213 | loop - infinite loop on address range |
| 214 | ls - list files in a directory (default /) |
| 215 | md - memory display |
| 216 | mm - memory modify (auto-incrementing) |
| 217 | mtest - simple RAM test |
| 218 | mw - memory write (fill) |
| 219 | nm - memory modify (constant address) |
| 220 | ping - send ICMP ECHO_REQUEST to network host |
| 221 | printenv- print environment variables |
| 222 | protect - enable or disable FLASH write protection |
| 223 | reset - Perform RESET of the CPU |
| 224 | run - run commands in an environment variable |
| 225 | saveenv - save environment variables to persistent storage |
| 226 | setenv - set environment variables |
| 227 | sleep - delay execution for some time |
Peter Tyser | d78876c | 2009-09-16 21:38:10 -0500 | [diff] [blame] | 228 | source - run script from memory |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 229 | version - print monitor version |
| 230 | -> |