5 This README is about U-Boot support for TI's ARM Cortex-A8 based OMAP3 [1]
6 family of SoCs. TI's OMAP3 SoC family contains an ARM Cortex-A8. Additionally,
7 some family members contain a TMS320C64x+ DSP and/or an Imagination SGX 2D/3D
8 graphics processor and various other standard peripherals.
10 Currently the following boards are supported:
12 * OMAP3530 BeagleBoard [2]
18 * OpenPandora Ltd. Pandora [5]
20 * TI/Logic PD Zoom MDK [6]
22 * TI/Logic PD Zoom 2 [7]
24 * CompuLab Ltd. CM-T35 [8]
31 make omap3_beagle_config
36 make omap3_overo_config
46 make omap3_pandora_config
51 make omap3_zoom1_config
56 make omap3_zoom2_config
68 To make U-Boot for OMAP3 support NAND device SW or HW ECC calculation, U-Boot
69 for OMAP3 supports custom user command
73 To be compatible with NAND drivers using SW ECC (e.g. kernel code)
77 enables SW ECC calculation. HW ECC enabled with
81 is typically used to write 2nd stage bootloader (known as 'x-loader') which is
82 executed by OMAP3's boot rom and therefore has to be written with HW ECC.
84 For all other commands see
96 if (!gpio_request(N, "")) {
97 gpio_direction_output(N, 0);
103 if (!gpio_request(N, "")) {
104 gpio_direction_output(N, 0);
105 gpio_set_value(N, 0);
110 if (!gpio_request(N, "")) {
111 gpio_direction_input(N);
112 val = gpio_get_value(N);
116 printf("GPIO N is set\n");
118 printf("GPIO N is clear\n");
122 void omap3_dma_init(void)
124 int omap3_dma_get_conf_chan(uint32_t chan, struct dma4_chan *config);
125 Read config of the channel
126 int omap3_dma_conf_chan(uint32_t chan, struct dma4_chan *config);
127 Write config to the channel
128 int omap3_dma_conf_transfer(uint32_t chan, uint32_t *src, uint32_t *dst,
130 Config source, destination and size of a transfer
131 int omap3_dma_wait_for_transfer(uint32_t chan)
132 Wait for a transfer to end - this hast to be called before a channel
133 or the data the channel transferd are used.
134 int omap3_dma_get_revision(uint32_t *minor, uint32_t *major)
135 Read silicon Revision of the DMA module
140 There are some OMAP3 devices out there with NAND attached. Due to the fact that
141 OMAP3 ROM code can only handle 1-bit hamming ECC for accessing first page
142 (place where SPL lives) we require this setup for u-boot at least when reading
143 the second progam within SPL. A lot of newer NAND chips however require more
144 than 1-bit ECC for the pages, some can live with 1-bit for the first page. To
145 handle this we can switch to another ECC algorithm after reading the payload
151 To enable hardware assisted BCH8 (8-bit BCH [Bose, Chaudhuri, Hocquenghem]) on
152 OMAP3 devices we can use the BCH library in lib/bch.c. To do so add CONFIG_BCH
153 and set CONFIG_NAND_OMAP_ECCSCHEME=5 (refer README.nand) for selecting BCH8_SW.
154 The NAND OOB layout is the same as in linux kernel, if the linux kernel BCH8
155 implementation for OMAP3 works for you so the u-boot version should also.
156 When you require the SPL to read with BCH8 there are two more configs to
159 * CONFIG_SYS_NAND_ECCPOS (must be the same as .eccpos in
160 GPMC_NAND_HW_BCH8_ECC_LAYOUT defined in
161 arch/arm/include/asm/arch-omap3/omap_gpmc.h)
162 * CONFIG_SYS_NAND_ECCSIZE must be 512
163 * CONFIG_SYS_NAND_ECCBYTES must be 13 for this BCH8 setup
168 OMAP3 U-Boot is based on U-Boot tar ball [9] for BeagleBoard and EVM done by
169 several TI employees.
176 http://www.ti.com/omap3 (high volume) and
177 http://www.ti.com/omap35x (broad market)
179 [2] OMAP3530 BeagleBoard:
181 http://beagleboard.org/
185 http://www.gumstix.net/Overo/
189 http://focus.ti.com/docs/toolsw/folders/print/tmdxevm3503.html
191 [5] OpenPandora Ltd. Pandora:
193 http://openpandora.org/
195 [6] TI/Logic PD Zoom MDK:
197 http://www.logicpd.com/products/devkit/ti/zoom_mobile_development_kit
199 [7] TI/Logic PD Zoom 2
201 http://www.logicpd.com/sites/default/files/1012659A_Zoom_OMAP34x-II_MDP_Brief.pdf
203 [8] CompuLab Ltd. CM-T35:
205 http://www.compulab.co.il/t3530/html/t3530-cm-datasheet.htm
209 http://beagleboard.googlecode.com/files/u-boot_beagle_revb.tar.gz