1 # Intel "Lubbock" Development Board with PXA255 (dbpxa255)
2 # Obsolete; this was Intel's original PXA255 development system
3 # Board also had CPU cards for SA1100, PXA210, PXA250, and more.
5 source [find target/pxa255.cfg]
7 adapter_nsrst_delay 250
10 # NOTE: until after pinmux and such are set up, only CS0 is
11 # available ... not 2nd bank of CFI, or FPGA, SRAM, ENET, etc.
13 # CS0, CS1 -- two banks of CFI flash, 32 MBytes each
14 # each bank is 32-bits wide, two 16-bit chips in parallel
15 set _FLASHNAME $_CHIPNAME.flash0
16 flash bank $_FLASHNAME cfi 0x00000000 0x02000000 2 4 $_TARGETNAME
17 set _FLASHNAME $_CHIPNAME.flash1
18 flash bank $_FLASHNAME cfi 0x04000000 0x02000000 2 4 $_TARGETNAME
20 # CS2 low -- FPGA registers
21 # CS2 high -- 1 MByte SRAM at 0x0a00.0000 ... last 64K for scratch
22 $_TARGETNAME configure -work-area-phys 0x0a0f0000
24 $_TARGETNAME configure -event reset-assert-pre \
25 "$_TARGETNAME configure -work-area-size 0"
27 # Make the hex led display a number, assuming CS2 is set up
28 # and all digits have been enabled through the FPGA.
37 # NOTE: system console normally uses the FF UART connector
39 proc lubbock_init {target} {
41 echo "Initialize PXA255 Lubbock board"
46 mww 0x40e00018 0x00008000
47 mww 0x40e0001c 0x00FC0382
48 mww 0x40e00020 0x0001FFFF
50 mww 0x40e0000c 0x0060A800
51 mww 0x40e00010 0x00FF0382
52 mww 0x40e00014 0x0001C000
53 # GAFR0_[LU]..GAFR2_[LU]
54 mww 0x40e00054 0x98400000
55 mww 0x40e00058 0x00002950
56 mww 0x40e0005c 0x000A9558
57 mww 0x40e00060 0x0005AAAA
58 mww 0x40e00064 0xA0000000
59 mww 0x40e00068 0x00000002
61 # write PSSR, enable GPIOs
62 mww 0x40f00000 0x00000020
64 # write LED ctrl register ... ones disable
65 # high byte, 8 hex leds; low byte, 8 discretes
70 # (2) Address space setup
73 mww 0x48000008 0x23f223f2
74 mww 0x4800000c 0x3ff1a441
75 mww 0x48000010 0x7ff97ff1
77 mww 0x48000014 0x00000000
78 mww 0x48000028 0x00010504
79 mww 0x4800002c 0x00010504
80 mww 0x48000030 0x00010504
81 mww 0x48000034 0x00010504
82 mww 0x48000038 0x00004715
83 mww 0x4800003c 0x00004715
88 # REVISIT this looks dubious ... no refresh cycles
89 mww 0x48000004 0x03CA4018
90 mww 0x48000004 0x004B4018
91 mww 0x48000004 0x000B4018
92 mww 0x48000004 0x000BC018
93 mww 0x48000000 0x00001AC8
94 mww 0x48000000 0x00001AC9
96 mww 0x48000040 0x00000000
99 # CLOCKS (and faster JTAG)
102 # FIXME SRAM isn't working
103 # $target configure -work-area-size 0x10000
112 $_TARGETNAME configure -event reset-init "lubbock_init $_TARGETNAME"