Dave Liu | f8900ce | 2007-09-18 12:38:53 +0800 | [diff] [blame] | 1 | Freescale MPC837xEMDS Board |
| 2 | ----------------------------------------- |
| 3 | 1. Board Switches and Jumpers |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 4 | 1.0 There are four Dual-In-Line Packages(DIP) Switches on MPC837xEMDS board |
Dave Liu | f8900ce | 2007-09-18 12:38:53 +0800 | [diff] [blame] | 5 | For some reason, the HW designers describe the switch settings |
| 6 | in terms of 0 and 1, and then map that to physical switches where |
| 7 | the label "On" refers to logic 0 and "Off" is logic 1. |
| 8 | |
| 9 | Switch bits are numbered 1 through, like, 4 6 8 or 10, but the |
| 10 | bits may contribute to signals that are numbered based at 0, |
| 11 | and some of those signals may be high-bit-number-0 too. Heed |
| 12 | well the names and labels and do not get confused. |
| 13 | |
| 14 | "Off" == 1 |
| 15 | "On" == 0 |
| 16 | |
| 17 | SW4[8] is the bit labled 8 on Switch 4. |
| 18 | SW2[1:6] refers to bits labeled 1 through 6 in order on switch 2. |
| 19 | SW2[1:8]= 0000_0001 refers to bits labeled 1 through 7 is set as "On" |
| 20 | and bits labeled 8 is set as "Off". |
| 21 | |
| 22 | 1.1 For the MPC837xEMDS Processor Board |
| 23 | |
| 24 | First, make sure the board default setting is consistent with the |
| 25 | document shipped with your board. Then apply the following setting: |
| 26 | SW3[1-8]= 0011_0000 (BOOTSEQ, ROMLOC setting) |
| 27 | SW4[1-8]= 0000_0110 (core PLL setting) |
| 28 | SW5[1-8]= 1001_1000 (system PLL, boot up from low end of flash) |
| 29 | SW6[1-8]= 0000_1000 (HRCW is read from NOR FLASH) |
| 30 | SW7[1-8]= 0110_1101 (TSEC1/2 interface setting - RGMII) |
| 31 | J3 2-3, TSEC1 LVDD1 with 2.5V |
| 32 | J6 2-3, TSEC2 LVDD2 with 2.5V |
| 33 | J9 2-3, CLKIN from osc on board |
| 34 | J10 removed, CS0 connect to NOR flash; when mounted, CS0 connect to NAND |
| 35 | J11 removed, Hardware Reset Configuration Word load from FLASH(NOR or NAND) |
| 36 | mounted, HRCW load from BCSR. |
| 37 | |
| 38 | on board Oscillator: 66M |
| 39 | |
| 40 | 2. Memory Map |
| 41 | |
| 42 | 2.1. The memory map should look pretty much like this: |
| 43 | |
| 44 | 0x0000_0000 0x7fff_ffff DDR 2G |
| 45 | 0x8000_0000 0x8fff_ffff PCI MEM prefetch 256M |
| 46 | 0x9000_0000 0x9fff_ffff PCI MEM non-prefetch 256M |
| 47 | 0xc000_0000 0xdfff_ffff Empty 512M |
| 48 | 0xe000_0000 0xe00f_ffff Int Mem Reg Space 1M |
| 49 | 0xe010_0000 0xe02f_ffff Empty 2M |
| 50 | 0xe030_0000 0xe03f_ffff PCI IO 1M |
| 51 | 0xe040_0000 0xe05f_ffff Empty 2M |
Dave Liu | be5a719 | 2008-04-15 13:12:23 +0800 | [diff] [blame] | 52 | 0xe060_0000 0xe060_7fff NAND Flash 32K |
Dave Liu | f8900ce | 2007-09-18 12:38:53 +0800 | [diff] [blame] | 53 | 0xf400_0000 0xf7ff_ffff Empty 64M |
| 54 | 0xf800_0000 0xf800_7fff BCSR on CS1 32K |
| 55 | 0xfe00_0000 0xffff_ffff NOR Flash on CS0 32M |
| 56 | |
| 57 | 3. Definitions |
| 58 | |
| 59 | 3.1 Explanation of NEW definitions in: |
| 60 | |
| 61 | include/configs/MPC837XEMDS.h |
| 62 | |
Peter Tyser | 0f89860 | 2009-05-22 17:23:24 -0500 | [diff] [blame] | 63 | CONFIG_MPC83xx MPC83xx family for both MPC837x and MPC8360 |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame^] | 64 | CONFIG_MPC837x MPC837x specific |
Dave Liu | f8900ce | 2007-09-18 12:38:53 +0800 | [diff] [blame] | 65 | CONFIG_MPC837XEMDS MPC837XEMDS board specific |
| 66 | |
| 67 | 4. Compilation |
| 68 | |
| 69 | Assuming you're using BASH shell: |
| 70 | |
| 71 | export CROSS_COMPILE=your-cross-compile-prefix |
| 72 | cd u-boot |
| 73 | make distclean |
| 74 | make MPC837XEMDS_config |
| 75 | make |
| 76 | |
| 77 | 5. Downloading and Flashing Images |
| 78 | |
| 79 | 5.0 Download over serial line using Kermit: |
| 80 | |
| 81 | loadb |
| 82 | [Drop to kermit: |
| 83 | ^\c |
| 84 | send <u-boot-bin-image> |
| 85 | c |
| 86 | ] |
| 87 | |
| 88 | |
| 89 | Or via tftp: |
| 90 | |
| 91 | tftp 40000 u-boot.bin |
| 92 | |
| 93 | 5.1 Reflash U-boot Image using U-boot |
| 94 | |
| 95 | tftp 40000 u-boot.bin |
| 96 | protect off fe000000 fe1fffff |
| 97 | erase fe000000 fe1fffff |
| 98 | |
| 99 | cp.b 40000 fe000000 xxxx |
| 100 | |
| 101 | You have to supply the correct byte count with 'xxxx' from the TFTP result log. |
| 102 | |
| 103 | 6. Notes |
| 104 | 1) The console baudrate for MPC837XEMDS is 115200bps. |