source: rtems/c/src/lib/libbsp/arm/beagle/simscripts/bbxm.cfg @ 1c0663b4

4.115
Last change on this file since 1c0663b4 was 53dd6d61, checked in by Ben Gras <beng@…>, on 11/03/14 at 18:53:40

BSP for several Beagle products

Specifically the beagleboard, beagleboard xM, beaglebone, beaglebone black.

More info on these targets: http://www.beagleboard.org/

This commit forms a basic BSP by combining Claas's work with

. new clock and irq code and definitions for

beagle targets (beagleboard and beaglebones), mostly
reused from the Minix codebase, thus making
irqs, ticks and non-polled console mode work too

. new timer code for ns timing with high timer resolution,

24MHz on the AM335X and 13MHz on the DM37XX

. select the console uart based on target at configure time
. removing all the lpc32xx-specific macros and code and

other unused code and definitions that the beagle bsp
was based on

. re-using some standard functions instead of lpc32xx versions
. fixed some whitespace problem in preinstall.am
. fixed some compile warnings
. configure MMU: set 1MB sections directly in the TTBR,

just to show the difference between cacheable RAM and
non-cacheable device memory and invalid ranges; this lets us
turn on caches and not rely on boot loader MMU configuration.
Verified to work when MMU is initially either on or off when
RTEMS gets control.

Thanks for testing, commentary, improvements and fixes to Chris Johns,
Brandon Matthews, Matt Carberry, Romain Bornet, AZ technology and others.

Signed-Off-By: Ben Gras <beng@…>

  • Property mode set to 100644
File size: 6.3 KB
Line 
1# Start with: openocd -f interface/ftdi/flyswatter.cfg -f bbxm.cfg -c 'reset init'
2#   or  with: openocd -f interface/ftdi/flyswatter2.cfg -f bbxm.cfg -c 'reset init'
3source [find board/ti_beagleboard_xm.cfg]
4
5#
6# Use the MLO file from uboot to initialise the board.
7#
8proc beagleboard_xm_mlo { file } {
9  global _CHIPNAME
10  adapter_khz 10
11  catch { mww phys 0x48307250 0x00000004 }
12  reset init
13  icepick_c_wreset $_CHIPNAME.jrc
14  halt
15  dm37x.cpu arm core_state arm
16  puts "Beagleboard xM MLO: $file"
17  load_image $file 0x402005f8 bin
18  resume 0x40200800
19  sleep 500
20  halt
21}
22
23proc beagleboard_xm_init {} {
24  global _CHIPNAME
25  adapter_khz 10
26  catch { mww phys 0x48307250 0x00000004 }
27  reset init
28  icepick_c_wreset $_CHIPNAME.jrc
29  halt
30  dm37x.cpu arm core_state arm
31
32  mwh 0x6e00007c 0x000000ff ;# omap-gpmc
33  mwh 0x6e00007c 0x00000090 ;# omap-gpmc
34  mwh 0x6e000080 0x00000000 ;# omap-gpmc
35  mwh 0x6e00007c 0x00000000 ;# omap-gpmc
36  mwh 0x6e000080 0x00000000 ;# omap-gpmc
37  mwh 0x6e000080 0x00000000 ;# omap-gpmc
38  mwh 0x6e000080 0x00000000 ;# omap-gpmc
39  mwh 0x6e000080 0x00000000 ;# omap-gpmc
40  mwh 0x6e000080 0x00000000 ;# omap-gpmc
41  mwh 0x6e00007c 0x00000030 ;# omap-gpmc
42  mww 0x48004c00 0x00000020 ;# omap3_cm
43  mww 0x48004c10 0x00000020 ;# omap3_cm
44  mww 0x48314048 0x0000aaaa ;# omap3_mpu_wdt
45  mww 0x48314048 0x00005555 ;# omap3_mpu_wdt
46  mww 0x6c000048 0xffffffff ;# omap3_sms
47  mww 0x48004c40 0x00000013 ;# omap3_cm
48  mww 0x48004c10 0x00000025 ;# omap3_cm
49  mww 0x48004c00 0x00000021 ;# omap3_cm
50  mww 0x48306d40 0x00000003 ;# omap3_prm
51  mww 0x48307270 0x00000083 ;# omap3_prm
52  mww 0x48307270 0x00000080 ;# omap3_prm
53  mww 0x48004904 0x00000015 ;# omap3_cm
54  mww 0x48004d00 0x00110016 ;# omap3_cm
55  mww 0x48005140 0x10020a50 ;# omap3_cm
56  mww 0x48004d40 0x08000040 ;# omap3_cm
57  mww 0x48004d40 0x09900040 ;# omap3_cm
58  mww 0x48004d40 0x09900c40 ;# omap3_cm
59  mww 0x48004d40 0x09900c00 ;# omap3_cm
60  mww 0x48004a40 0x00001305 ;# omap3_cm
61  mww 0x48004a40 0x00001125 ;# omap3_cm
62  mww 0x48004a40 0x00001109 ;# omap3_cm
63  mww 0x48004a40 0x0000110a ;# omap3_cm
64  mww 0x48004b40 0x00000005 ;# omap3_cm
65  mww 0x48004c40 0x00000015 ;# omap3_cm
66  mww 0x48004d00 0x00110006 ;# omap3_cm
67  mww 0x48004d00 0x00110007 ;# omap3_cm
68  mww 0x48004d00 0x00110007 ;# omap3_cm
69  mww 0x48005140 0x03020a50 ;# omap3_cm
70  mww 0x48004f40 0x00000004 ;# omap3_cm
71  mww 0x48004e40 0x00000409 ;# omap3_cm
72  mww 0x48004e40 0x00001009 ;# omap3_cm
73  mww 0x48004d48 0x00000009 ;# omap3_cm
74  mww 0x48004d44 0x02436000 ;# omap3_cm
75  mww 0x48004d44 0x0243600c ;# omap3_cm
76  mww 0x48004a40 0x0000110a ;# omap3_cm
77  mww 0x48004d00 0x00170007 ;# omap3_cm
78  mww 0x48004d04 0x00000011 ;# omap3_cm
79  mww 0x48004d50 0x00000001 ;# omap3_cm
80  mww 0x48004d4c 0x00007800 ;# omap3_cm
81  mww 0x48004d4c 0x0000780c ;# omap3_cm
82  mww 0x48004d00 0x00170037 ;# omap3_cm
83  mww 0x48004d04 0x00000017 ;# omap3_cm
84  mww 0x48004004 0x00000011 ;# omap3_cm
85  mww 0x48004044 0x00000001 ;# omap3_cm
86  mww 0x48004040 0x00081400 ;# omap3_cm
87  mww 0x48004040 0x00081400 ;# omap3_cm
88  mww 0x48004004 0x00000017 ;# omap3_cm
89  mww 0x48004944 0x00000001 ;# omap3_cm
90  mww 0x48004940 0x000a5800 ;# omap3_cm
91  mww 0x48004940 0x000a580c ;# omap3_cm
92  mww 0x48004904 0x00000017 ;# omap3_cm
93  mww 0x48005040 0x000000ff ;# omap3_cm
94  mww 0x48004c40 0x00000015 ;# omap3_cm
95  mww 0x48005040 0x000000ff ;# omap3_cm
96  mww 0x48005010 0x00000008 ;# omap3_cm
97  mww 0x48005000 0x00000008 ;# omap3_cm
98  mww 0x48004a00 0x00002000 ;# omap3_cm
99  mww 0x48004a10 0x00002042 ;# omap3_cm
100  mww 0x48005000 0x00000808 ;# omap3_cm
101  mww 0x48005010 0x00000808 ;# omap3_cm
102  mww 0x48004a00 0x0003a000 ;# omap3_cm
103  mww 0x48004a10 0x0003a042 ;# omap3_cm
104  mww 0x48004c10 0x00000025 ;# omap3_cm
105  mww 0x48004000 0x00000001 ;# omap3_cm
106  mww 0x48004a00 0x03fffe29 ;# omap3_cm
107  mww 0x48004a10 0x3ffffffb ;# omap3_cm
108  mww 0x48004a14 0x0000001f ;# omap3_cm
109  mww 0x48004c00 0x000000e9 ;# omap3_cm
110  mww 0x48004c10 0x0000003f ;# omap3_cm
111  mww 0x48004e00 0x00000005 ;# omap3_cm
112  mww 0x48004e10 0x00000001 ;# omap3_cm
113  mww 0x48004f00 0x00000001 ;# omap3_cm
114  mww 0x48004f10 0x00000001 ;# omap3_cm
115  mww 0x48005000 0x0003ffff ;# omap3_cm
116  mww 0x48005010 0x0003ffff ;# omap3_cm
117  mww 0x48005410 0x00000001 ;# omap3_cm
118  mww 0x48005400 0x00000003 ;# omap3_cm
119  mww 0x48004a18 0x00000004 ;# omap3_cm
120  mww 0x48004a08 0x00000004 ;# omap3_cm
121  mww 0x6e000060 0x00001800 ;# omap-gpmc
122  mww 0x6e000064 0x00141400 ;# omap-gpmc
123  mww 0x6e000068 0x00141400 ;# omap-gpmc
124  mww 0x6e00006c 0x0f010f01 ;# omap-gpmc
125  mww 0x6e000070 0x010c1414 ;# omap-gpmc
126  mww 0x6e000074 0x1f0f0a80 ;# omap-gpmc
127  mww 0x6e000078 0x00000870 ;# omap-gpmc
128  mwb 0x6e00007c 0x000000ff ;# omap-gpmc
129  mwb 0x6e00007c 0x00000070 ;# omap-gpmc
130  mwb 0x6e00007c 0x00000090 ;# omap-gpmc
131  mwb 0x6e000080 0x00000000 ;# omap-gpmc
132  mww 0x6d000010 0x00000002 ;# omap.sdrc
133  mww 0x6d000010 0x00000000 ;# omap.sdrc
134  mww 0x6d000044 0x00000100 ;# omap.sdrc
135  mww 0x6d000070 0x04000081 ;# omap.sdrc
136  mww 0x6d000060 0x0000000a ;# omap.sdrc
137  mww 0x6d000080 0x04590099 ;# omap.sdrc
138  mww 0x6d00009c 0xc29dc4c6 ;# omap.sdrc
139  mww 0x6d0000a0 0x00022322 ;# omap.sdrc
140  mww 0x6d0000a4 0x0004e201 ;# omap.sdrc
141  mww 0x6d0000a8 0x00000000 ;# omap.sdrc
142  mww 0x6d0000a8 0x00000001 ;# omap.sdrc
143  mww 0x6d0000a8 0x00000002 ;# omap.sdrc
144  mww 0x6d0000a8 0x00000002 ;# omap.sdrc
145  mww 0x6d000084 0x00000032 ;# omap.sdrc
146  mww 0x6d000040 0x00000004 ;# omap.sdrc
147  mww 0x6d0000b0 0x04590099 ;# omap.sdrc
148  mww 0x6d0000c4 0xc29dc4c6 ;# omap.sdrc
149  mww 0x6d0000c8 0x00022322 ;# omap.sdrc
150  mww 0x6d0000d4 0x0004e201 ;# omap.sdrc
151  mww 0x6d0000d8 0x00000000 ;# omap.sdrc
152  mww 0x6d0000d8 0x00000001 ;# omap.sdrc
153  mww 0x6d0000d8 0x00000002 ;# omap.sdrc
154  mww 0x6d0000d8 0x00000002 ;# omap.sdrc
155  mww 0x6d0000b4 0x00000032 ;# omap.sdrc
156  mww 0x6d0000b0 0x00000000 ;# omap.sdrc
157  mww 0x6e00001c 0x00000000 ;# omap-gpmc
158  mww 0x6e000040 0x00000000 ;# omap-gpmc
159  mww 0x6e000050 0x00000000 ;# omap-gpmc
160  mww 0x6e000078 0x00000000 ;# omap-gpmc
161  mww 0x6e000078 0x00000000 ;# omap-gpmc
162  mww 0x6e000060 0x00001800 ;# omap-gpmc
163  mww 0x6e000064 0x00141400 ;# omap-gpmc
164  mww 0x6e000068 0x00141400 ;# omap-gpmc
165  mww 0x6e00006c 0x0f010f01 ;# omap-gpmc
166  mww 0x6e000070 0x010c1414 ;# omap-gpmc
167  mww 0x6e000074 0x1f0f0a80 ;# omap-gpmc
168  mww 0x6e000078 0x00000870 ;# omap-gpmc
169  mww 0x48004a00 0x437ffe00 ;# omap3_cm
170  mww 0x48004a10 0x637ffed2 ;# omap3_cm
171  puts "Beagleboard xM initialised"
172}
173
174init
Note: See TracBrowser for help on using the repository browser.