blob: 8c3667b10cd18439cbfbc4dcd69f2b5e1da4c2e8 [file] [log] [blame]
Dirk Behme2781f802009-01-27 18:19:12 +01001
2Summary
3=======
4
5This README is about U-Boot support for TI's ARM Cortex-A8 based OMAP3 [1]
6family of SoCs. TI's OMAP3 SoC family contains an ARM Cortex-A8. Additionally,
7some family members contain a TMS320C64x+ DSP and/or an Imagination SGX 2D/3D
8graphics processor and various other standard peripherals.
9
10Currently the following boards are supported:
11
12* OMAP3530 BeagleBoard [2]
13
Dirk Behme220faba2009-01-28 21:39:57 +010014* Gumstix Overo [3]
15
Dirk Behmebb732be2009-01-28 21:39:58 +010016* TI EVM [4]
17
Dirk Behme7b84a7b2009-01-28 21:39:58 +010018* OpenPandora Ltd. Pandora [5]
19
Dirk Behmebab104e2009-01-28 21:40:16 +010020* TI/Logic PD Zoom MDK [6]
21
Tom Rix0419d912009-05-15 23:48:36 +020022* TI/Logic PD Zoom 2 [7]
23
Mike Rapoport8abe7302010-12-18 17:43:19 -050024* CompuLab Ltd. CM-T35 [8]
25
Dirk Behme2781f802009-01-27 18:19:12 +010026Build
27=====
28
29* BeagleBoard:
30
31make omap3_beagle_config
32make
33
Dirk Behme220faba2009-01-28 21:39:57 +010034* Gumstix Overo:
35
36make omap3_overo_config
37make
38
Dirk Behmebb732be2009-01-28 21:39:58 +010039* TI EVM:
40
41make omap3_evm_config
42make
43
Dirk Behmebab104e2009-01-28 21:40:16 +010044* Zoom MDK:
45
46make omap3_zoom1_config
47make
48
Tom Rix0419d912009-05-15 23:48:36 +020049* Zoom 2:
50
51make omap3_zoom2_config
52make
53
Mike Rapoport8abe7302010-12-18 17:43:19 -050054* CM-T35:
55
56make cm_t35_config
57make
58
Michael Jones8ce85da2011-11-04 13:53:44 -040059
Dirk Behme2781f802009-01-27 18:19:12 +010060Custom commands
61===============
62
63To make U-Boot for OMAP3 support NAND device SW or HW ECC calculation, U-Boot
64for OMAP3 supports custom user command
65
66nandecc hw/sw
67
68To be compatible with NAND drivers using SW ECC (e.g. kernel code)
69
70nandecc sw
71
72enables SW ECC calculation. HW ECC enabled with
73
74nandecc hw
75
76is typically used to write 2nd stage bootloader (known as 'x-loader') which is
77executed by OMAP3's boot rom and therefore has to be written with HW ECC.
78
79For all other commands see
80
81help
82
Tom Rixdd2d1cc2009-05-15 23:48:36 +020083Interfaces
84==========
85
86gpio
Simon Schwarzd816de52011-09-28 05:00:26 +000087----
Tom Rixdd2d1cc2009-05-15 23:48:36 +020088
89To set a bit :
90
Sanjeev Premi0c2c8ac2011-09-08 10:48:39 -040091 if (!gpio_request(N, "")) {
92 gpio_direction_output(N, 0);
93 gpio_set_value(N, 1);
Tom Rixdd2d1cc2009-05-15 23:48:36 +020094 }
95
96To clear a bit :
97
Sanjeev Premi0c2c8ac2011-09-08 10:48:39 -040098 if (!gpio_request(N, "")) {
99 gpio_direction_output(N, 0);
100 gpio_set_value(N, 0);
Tom Rixdd2d1cc2009-05-15 23:48:36 +0200101 }
102
103To read a bit :
104
Sanjeev Premi0c2c8ac2011-09-08 10:48:39 -0400105 if (!gpio_request(N, "")) {
106 gpio_direction_input(N);
107 val = gpio_get_value(N);
108 gpio_free(N);
Tom Rixdd2d1cc2009-05-15 23:48:36 +0200109 }
110 if (val)
111 printf("GPIO N is set\n");
112 else
113 printf("GPIO N is clear\n");
114
Simon Schwarzd816de52011-09-28 05:00:26 +0000115dma
116---
117void omap3_dma_init(void)
118 Init the DMA module
119int omap3_dma_get_conf_chan(uint32_t chan, struct dma4_chan *config);
120 Read config of the channel
121int omap3_dma_conf_chan(uint32_t chan, struct dma4_chan *config);
122 Write config to the channel
123int omap3_dma_conf_transfer(uint32_t chan, uint32_t *src, uint32_t *dst,
124 uint32_t sze)
125 Config source, destination and size of a transfer
126int omap3_dma_wait_for_transfer(uint32_t chan)
127 Wait for a transfer to end - this hast to be called before a channel
128 or the data the channel transferd are used.
129int omap3_dma_get_revision(uint32_t *minor, uint32_t *major)
130 Read silicon Revision of the DMA module
131
Andreas Bießmann82a65472013-04-05 04:55:21 +0000132NAND
133====
134
135There are some OMAP3 devices out there with NAND attached. Due to the fact that
136OMAP3 ROM code can only handle 1-bit hamming ECC for accessing first page
137(place where SPL lives) we require this setup for u-boot at least when reading
138the second progam within SPL. A lot of newer NAND chips however require more
139than 1-bit ECC for the pages, some can live with 1-bit for the first page. To
140handle this we can switch to another ECC algorithm after reading the payload
141within SPL.
142
143BCH8
144----
145
146To enable hardware assisted BCH8 (8-bit BCH [Bose, Chaudhuri, Hocquenghem]) on
147OMAP3 devices we can use the BCH library in lib/bch.c. To do so add CONFIG_BCH
pekon gupta3ef49732013-11-18 19:03:01 +0530148and set CONFIG_NAND_OMAP_ECCSCHEME=5 (refer README.nand) for selecting BCH8_SW.
Andreas Bießmann82a65472013-04-05 04:55:21 +0000149The NAND OOB layout is the same as in linux kernel, if the linux kernel BCH8
150implementation for OMAP3 works for you so the u-boot version should also.
151When you require the SPL to read with BCH8 there are two more configs to
152change:
153
154 * CONFIG_SYS_NAND_ECCPOS (must be the same as .eccpos in
155 GPMC_NAND_HW_BCH8_ECC_LAYOUT defined in
156 arch/arm/include/asm/arch-omap3/omap_gpmc.h)
157 * CONFIG_SYS_NAND_ECCSIZE must be 512
158 * CONFIG_SYS_NAND_ECCBYTES must be 13 for this BCH8 setup
Tom Rixdd2d1cc2009-05-15 23:48:36 +0200159
Dirk Behme2781f802009-01-27 18:19:12 +0100160Acknowledgements
161================
162
Mike Rapoport8abe7302010-12-18 17:43:19 -0500163OMAP3 U-Boot is based on U-Boot tar ball [9] for BeagleBoard and EVM done by
Dirk Behme2781f802009-01-27 18:19:12 +0100164several TI employees.
165
166Links
167=====
168
169[1] OMAP3:
170
171http://www.ti.com/omap3 (high volume) and
172http://www.ti.com/omap35x (broad market)
173
174[2] OMAP3530 BeagleBoard:
175
176http://beagleboard.org/
177
Dirk Behme220faba2009-01-28 21:39:57 +0100178[3] Gumstix Overo:
179
180http://www.gumstix.net/Overo/
181
Dirk Behmebb732be2009-01-28 21:39:58 +0100182[4] TI EVM:
183
184http://focus.ti.com/docs/toolsw/folders/print/tmdxevm3503.html
185
Dirk Behme7b84a7b2009-01-28 21:39:58 +0100186[5] OpenPandora Ltd. Pandora:
187
188http://openpandora.org/
189
Dirk Behmebab104e2009-01-28 21:40:16 +0100190[6] TI/Logic PD Zoom MDK:
191
192http://www.logicpd.com/products/devkit/ti/zoom_mobile_development_kit
193
Tom Rix0419d912009-05-15 23:48:36 +0200194[7] TI/Logic PD Zoom 2
195
196http://www.logicpd.com/sites/default/files/1012659A_Zoom_OMAP34x-II_MDP_Brief.pdf
Mike Rapoport8abe7302010-12-18 17:43:19 -0500197
198[8] CompuLab Ltd. CM-T35:
199
200http://www.compulab.co.il/t3530/html/t3530-cm-datasheet.htm
201
202[9] TI OMAP3 U-Boot:
Dirk Behme2781f802009-01-27 18:19:12 +0100203
204http://beagleboard.googlecode.com/files/u-boot_beagle_revb.tar.gz