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 52*a187559eSBin Meng- 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 Denk 71702e6014SWolfgang DenkCONFIG_MCFUART -- define to use common CF Uart driver 72702e6014SWolfgang DenkCONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2 73702e6014SWolfgang DenkCONFIG_BAUDRATE -- define UART baudrate 74702e6014SWolfgang Denk 75702e6014SWolfgang DenkCONFIG_MCFRTC -- define to use common CF RTC driver 76702e6014SWolfgang DenkCONFIG_SYS_MCFRTC_BASE -- provide base address for RTC in immap.h 77702e6014SWolfgang DenkCONFIG_SYS_RTC_OSCILLATOR -- define RTC clock frequency 78702e6014SWolfgang DenkRTC_DEBUG -- define to show RTC debug message 79*a187559eSBin MengCONFIG_CMD_DATE -- enable to use date feature in U-Boot 80702e6014SWolfgang Denk 81702e6014SWolfgang DenkCONFIG_MCFTMR -- define to use DMA timer 82702e6014SWolfgang DenkCONFIG_MCFPIT -- define to use PIT timer 83702e6014SWolfgang Denk 8400f792e0SHeiko SchocherCONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver 85ea818dbbSHeiko SchocherCONFIG_SYS_I2C_SOFT -- define for I2C bit-banged 86702e6014SWolfgang DenkCONFIG_SYS_I2C_SPEED -- define for I2C speed 87702e6014SWolfgang DenkCONFIG_SYS_I2C_SLAVE -- define for I2C slave address 88702e6014SWolfgang DenkCONFIG_SYS_I2C_OFFSET -- define for I2C base address offset 89702e6014SWolfgang DenkCONFIG_SYS_IMMR -- define for MBAR offset 90702e6014SWolfgang Denk 91702e6014SWolfgang DenkCONFIG_SYS_MBAR -- define MBAR offset 92702e6014SWolfgang Denk 93702e6014SWolfgang DenkCONFIG_MONITOR_IS_IN_RAM -- Not support 94702e6014SWolfgang Denk 95702e6014SWolfgang DenkCONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF52277 internal SRAM 96702e6014SWolfgang Denk 97702e6014SWolfgang DenkCONFIG_SYS_CSn_BASE -- defines the Chip Select Base register 98702e6014SWolfgang DenkCONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register 99702e6014SWolfgang DenkCONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register 100702e6014SWolfgang Denk 101702e6014SWolfgang DenkCONFIG_SYS_SDRAM_BASE -- defines the DRAM Base 102702e6014SWolfgang Denk 103*a187559eSBin MengCONFIG_LCD and CONFIG_CMD_USB are not supported in this current U-Boot, 104702e6014SWolfgang Denkupdate will be provided at later time 105702e6014SWolfgang Denk 106702e6014SWolfgang Denk2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL 107702e6014SWolfgang Denk=========================================== 108702e6014SWolfgang Denk2.1. System memory map: 109702e6014SWolfgang Denk Flash: 0x00000000-0x3FFFFFFF (1024MB) 110702e6014SWolfgang Denk DDR: 0x40000000-0x7FFFFFFF (1024MB) 111702e6014SWolfgang Denk SRAM: 0x80000000-0x8FFFFFFF (256MB) 112702e6014SWolfgang Denk IP: 0xF0000000-0xFFFFFFFF (256MB) 113702e6014SWolfgang Denk 114*a187559eSBin Meng2.2. For the initial bringup, we adopted a consistent memory scheme between U-Boot and 115702e6014SWolfgang Denk linux kernel, you can customize it based on your system requirements: 116702e6014SWolfgang Denk Flash0: 0x00000000-0x00FFFFFF (16MB) 117702e6014SWolfgang Denk 118702e6014SWolfgang Denk DDR: 0x40000000-0x4FFFFFFF (64MB) 119702e6014SWolfgang Denk SRAM: 0x80000000-0x80007FFF (32KB) 120702e6014SWolfgang Denk IP: 0xFC000000-0xFC0FFFFF (64KB) 121702e6014SWolfgang Denk 122702e6014SWolfgang Denk3. COMPILATION 123702e6014SWolfgang Denk============== 124702e6014SWolfgang Denk3.1 To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or 125702e6014SWolfgang DenkuClinux version) from codesourcery.com was used. Download it from: 126702e6014SWolfgang Denkhttp://www.codesourcery.com/gnu_toolchains/coldfire/download.html 127702e6014SWolfgang Denk 128702e6014SWolfgang Denk3.2 Compilation 129702e6014SWolfgang Denk export CROSS_COMPILE=cross-compile-prefix 130702e6014SWolfgang Denk cd u-boot-1.x.x 131702e6014SWolfgang Denk make distclean 132702e6014SWolfgang Denk make M52277EVB_config 133702e6014SWolfgang Denk make 134702e6014SWolfgang Denk 135702e6014SWolfgang Denk4. SCREEN DUMP 136702e6014SWolfgang Denk============== 137702e6014SWolfgang Denk4.1 M52277EVB Development board 138702e6014SWolfgang Denk (NOTE: May not show exactly the same) 139702e6014SWolfgang Denk 140702e6014SWolfgang DenkU-Boot 1.3.1 (Jan 8 2008 - 12:44:08) 141702e6014SWolfgang Denk 142702e6014SWolfgang DenkCPU: Freescale MCF52277 (Mask:6c Version:0) 143702e6014SWolfgang Denk CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ 144702e6014SWolfgang Denk INP CLK 16 Mhz VCO CLK 480 Mhz 145702e6014SWolfgang DenkBoard: Freescale 52277 EVB 146702e6014SWolfgang DenkI2C: ready 147702e6014SWolfgang DenkDRAM: 64 MB 148702e6014SWolfgang DenkFLASH: 16 MB 149702e6014SWolfgang DenkIn: serial 150702e6014SWolfgang DenkOut: serial 151702e6014SWolfgang DenkErr: serial 152702e6014SWolfgang Denk-> print 153702e6014SWolfgang Denkbaudrate=115200 154702e6014SWolfgang Denkhostname=M52277EVB 155702e6014SWolfgang Denkinpclk=16000000 156702e6014SWolfgang Denkloadaddr=(0x40000000 + 0x10000) 157702e6014SWolfgang Denkload=tftp ${loadaddr) ${u-boot} 158702e6014SWolfgang Denkupd=run load; run prog 159702e6014SWolfgang Denkprog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save 160702e6014SWolfgang Denku-boot=u-boot.bin 161702e6014SWolfgang Denkstdin=serial 162702e6014SWolfgang Denkstdout=serial 163702e6014SWolfgang Denkstderr=serial 164702e6014SWolfgang Denkmem=65024k 165702e6014SWolfgang Denk 166702e6014SWolfgang DenkEnvironment size: 280/32764 bytes 167702e6014SWolfgang Denk-> bdinfo 168702e6014SWolfgang Denkmemstart = 0x40000000 169702e6014SWolfgang Denkmemsize = 0x04000000 170702e6014SWolfgang Denkflashstart = 0x00000000 171702e6014SWolfgang Denkflashsize = 0x01000000 172702e6014SWolfgang Denkflashoffset = 0x00000000 173702e6014SWolfgang Denksramstart = 0x80000000 174702e6014SWolfgang Denksramsize = 0x00008000 175702e6014SWolfgang Denkmbar = 0xFC000000 176702e6014SWolfgang Denkbusfreq = 80 MHz 177702e6014SWolfgang Denkflbfreq = 80 Mhz 178702e6014SWolfgang Denkinpfreq = 16 Mhz 179702e6014SWolfgang Denkvcofreq = 480 Mhz 180702e6014SWolfgang Denk 181702e6014SWolfgang Denkbaudrate = 115200 bps 182702e6014SWolfgang Denk-> 183702e6014SWolfgang Denk-> help 184702e6014SWolfgang Denk? - alias for 'help' 185702e6014SWolfgang Denkbase - print or set address offset 186702e6014SWolfgang Denkbdinfo - print Board Info structure 187702e6014SWolfgang Denkboot - boot default, i.e., run 'bootcmd' 188702e6014SWolfgang Denkbootd - boot default, i.e., run 'bootcmd' 189702e6014SWolfgang Denkbootelf - Boot from an ELF image in memory 190702e6014SWolfgang Denkbootm - boot application image from memory 191702e6014SWolfgang Denkbootp - boot image via network using BootP/TFTP protocol 192702e6014SWolfgang Denkbootvx - Boot vxWorks from an ELF image 193702e6014SWolfgang Denkcmp - memory compare 194702e6014SWolfgang Denkconinfo - print console devices and information 195702e6014SWolfgang Denkcp - memory copy 196702e6014SWolfgang Denkcrc32 - checksum calculation 197702e6014SWolfgang Denkdate - get/set/reset date & time 198702e6014SWolfgang Denkdcache - enable or disable data cache 199702e6014SWolfgang Denkecho - echo args to console 200702e6014SWolfgang Denkerase - erase FLASH memory 201702e6014SWolfgang Denkflinfo - print FLASH memory information 202702e6014SWolfgang Denkgo - start application at address 'addr' 203702e6014SWolfgang Denkhelp - print online help 204702e6014SWolfgang Denki2c - I2C sub-system 205702e6014SWolfgang Denkicache - enable or disable instruction cache 206702e6014SWolfgang Denkiminfo - print header information for application image 207702e6014SWolfgang Denkimls - list all images found in flash 208702e6014SWolfgang Denkitest - return true/false on integer compare 209702e6014SWolfgang Denkloadb - load binary file over serial line (kermit mode) 210702e6014SWolfgang Denkloads - load S-Record file over serial line 211702e6014SWolfgang Denkloady - load binary file over serial line (ymodem mode) 212702e6014SWolfgang Denkloop - infinite loop on address range 213702e6014SWolfgang Denkls - list files in a directory (default /) 214702e6014SWolfgang Denkmd - memory display 215702e6014SWolfgang Denkmm - memory modify (auto-incrementing) 216702e6014SWolfgang Denkmtest - simple RAM test 217702e6014SWolfgang Denkmw - memory write (fill) 218702e6014SWolfgang Denknm - memory modify (constant address) 219702e6014SWolfgang Denkping - send ICMP ECHO_REQUEST to network host 220702e6014SWolfgang Denkprintenv- print environment variables 221702e6014SWolfgang Denkprotect - enable or disable FLASH write protection 222702e6014SWolfgang Denkreset - Perform RESET of the CPU 223702e6014SWolfgang Denkrun - run commands in an environment variable 224702e6014SWolfgang Denksaveenv - save environment variables to persistent storage 225702e6014SWolfgang Denksetenv - set environment variables 226702e6014SWolfgang Denksleep - delay execution for some time 227702e6014SWolfgang Denksource - run script from memory 228702e6014SWolfgang Denkversion - print monitor version 229702e6014SWolfgang Denk-> 230