Blame view

doc/README.omap3 4.41 KB
f904cdbb6   Dirk Behme   OMAP3: Add common...
1
2
3
4
5
6
7
8
9
10
11
12
  
  Summary
  =======
  
  This README is about U-Boot support for TI's ARM Cortex-A8 based OMAP3 [1]
  family of SoCs. TI's OMAP3 SoC family contains an ARM Cortex-A8. Additionally,
  some family members contain a TMS320C64x+ DSP and/or an Imagination SGX 2D/3D
  graphics processor and various other standard peripherals.
  
  Currently the following boards are supported:
  
  * OMAP3530 BeagleBoard [2]
9d0fc8110   Dirk Behme   OMAP3: Add Overo ...
13
  * Gumstix Overo [3]
ad9bc8e52   Dirk Behme   OMAP3: Add EVM board
14
  * TI EVM [4]
2be2c6cc6   Dirk Behme   OMAP3: Add Pandor...
15
  * OpenPandora Ltd. Pandora [5]
7379f45a7   Dirk Behme   OMAP3: Add Zoom1 ...
16
  * TI/Logic PD Zoom MDK [6]
376aee78d   Tom Rix   ZOOM2 Add initial...
17
  * TI/Logic PD Zoom 2 [7]
36b4e2ddd   Mike Rapoport   OMAP3: add CM-T35...
18
  * CompuLab Ltd. CM-T35 [8]
f904cdbb6   Dirk Behme   OMAP3: Add common...
19
20
21
22
23
24
25
  Build
  =====
  
  * BeagleBoard:
  
  make omap3_beagle_config
  make
9d0fc8110   Dirk Behme   OMAP3: Add Overo ...
26
27
28
29
  * Gumstix Overo:
  
  make omap3_overo_config
  make
ad9bc8e52   Dirk Behme   OMAP3: Add EVM board
30
31
32
33
  * TI EVM:
  
  make omap3_evm_config
  make
2be2c6cc6   Dirk Behme   OMAP3: Add Pandor...
34
35
36
37
  * Pandora:
  
  make omap3_pandora_config
  make
7379f45a7   Dirk Behme   OMAP3: Add Zoom1 ...
38
39
40
41
  * Zoom MDK:
  
  make omap3_zoom1_config
  make
376aee78d   Tom Rix   ZOOM2 Add initial...
42
43
44
45
  * Zoom 2:
  
  make omap3_zoom2_config
  make
36b4e2ddd   Mike Rapoport   OMAP3: add CM-T35...
46
47
48
49
  * CM-T35:
  
  make cm_t35_config
  make
84d7a0171   Michael Jones   OMAP3: mvblx: Ini...
50

f904cdbb6   Dirk Behme   OMAP3: Add common...
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  Custom commands
  ===============
  
  To make U-Boot for OMAP3 support NAND device SW or HW ECC calculation, U-Boot
  for OMAP3 supports custom user command
  
  nandecc hw/sw
  
  To be compatible with NAND drivers using SW ECC (e.g. kernel code)
  
  nandecc sw
  
  enables SW ECC calculation. HW ECC enabled with
  
  nandecc hw
  
  is typically used to write 2nd stage bootloader (known as 'x-loader') which is
  executed by OMAP3's boot rom and therefore has to be written with HW ECC.
  
  For all other commands see
  
  help
0c872ecd0   Tom Rix   OMAP3 Port kernel...
73
74
75
76
  Interfaces
  ==========
  
  gpio
4c4bb19d0   Simon Schwarz   omap3: Add interf...
77
  ----
0c872ecd0   Tom Rix   OMAP3 Port kernel...
78
79
  
  To set a bit :
3b690ebbb   Sanjeev Premi   omap: gpio: gener...
80
81
82
  	if (!gpio_request(N, "")) {
  		gpio_direction_output(N, 0);
  		gpio_set_value(N, 1);
0c872ecd0   Tom Rix   OMAP3 Port kernel...
83
84
85
  	}
  
  To clear a bit :
3b690ebbb   Sanjeev Premi   omap: gpio: gener...
86
87
88
  	if (!gpio_request(N, "")) {
  		gpio_direction_output(N, 0);
  		gpio_set_value(N, 0);
0c872ecd0   Tom Rix   OMAP3 Port kernel...
89
90
91
  	}
  
  To read a bit :
3b690ebbb   Sanjeev Premi   omap: gpio: gener...
92
93
94
95
  	if (!gpio_request(N, "")) {
  		gpio_direction_input(N);
  		val = gpio_get_value(N);
  		gpio_free(N);
0c872ecd0   Tom Rix   OMAP3 Port kernel...
96
97
98
99
100
101
102
  	}
  	if (val)
  		printf("GPIO N is set
  ");
  	else
  		printf("GPIO N is clear
  ");
4c4bb19d0   Simon Schwarz   omap3: Add interf...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  dma
  ---
  void omap3_dma_init(void)
  	Init the DMA module
  int omap3_dma_get_conf_chan(uint32_t chan, struct dma4_chan *config);
  	Read config of the channel
  int omap3_dma_conf_chan(uint32_t chan, struct dma4_chan *config);
  	Write config to the channel
  int omap3_dma_conf_transfer(uint32_t chan, uint32_t *src, uint32_t *dst,
  		uint32_t sze)
  	Config source, destination and size of a transfer
  int omap3_dma_wait_for_transfer(uint32_t chan)
  	Wait for a transfer to end - this hast to be called before a channel
  	or the data the channel transferd are used.
  int omap3_dma_get_revision(uint32_t *minor, uint32_t *major)
  	Read silicon Revision of the DMA module
4a0930069   Andreas Bießmann   omap_gpmc: add su...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
  NAND
  ====
  
  There are some OMAP3 devices out there with NAND attached. Due to the fact that
  OMAP3 ROM code can only handle 1-bit hamming ECC for accessing first page
  (place where SPL lives) we require this setup for u-boot at least when reading
  the second progam within SPL.  A lot of newer NAND chips however require more
  than 1-bit ECC for the pages, some can live with 1-bit for the first page. To
  handle this we can switch to another ECC algorithm after reading the payload
  within SPL.
  
  BCH8
  ----
  
  To enable hardware assisted BCH8 (8-bit BCH [Bose, Chaudhuri, Hocquenghem]) on
  OMAP3 devices we can use the BCH library in lib/bch.c. To do so add CONFIG_BCH
3f719069c   pekon gupta   mtd: nand: omap: ...
135
  and set CONFIG_NAND_OMAP_ECCSCHEME=5 (refer README.nand) for selecting BCH8_SW.
4a0930069   Andreas Bießmann   omap_gpmc: add su...
136
137
138
139
140
141
142
143
144
145
  The NAND OOB layout is the same as in linux kernel, if the linux kernel BCH8
  implementation for OMAP3 works for you so the u-boot version should also.
  When you require the SPL to read with BCH8 there are two more configs to
  change:
  
   * CONFIG_SYS_NAND_ECCPOS (must be the same as .eccpos in
     GPMC_NAND_HW_BCH8_ECC_LAYOUT defined in
     arch/arm/include/asm/arch-omap3/omap_gpmc.h)
   * CONFIG_SYS_NAND_ECCSIZE must be 512
   * CONFIG_SYS_NAND_ECCBYTES must be 13 for this BCH8 setup
0c872ecd0   Tom Rix   OMAP3 Port kernel...
146

f904cdbb6   Dirk Behme   OMAP3: Add common...
147
148
  Acknowledgements
  ================
36b4e2ddd   Mike Rapoport   OMAP3: add CM-T35...
149
  OMAP3 U-Boot is based on U-Boot tar ball [9] for BeagleBoard and EVM done by
f904cdbb6   Dirk Behme   OMAP3: Add common...
150
151
152
153
154
155
156
157
158
159
160
161
162
  several TI employees.
  
  Links
  =====
  
  [1] OMAP3:
  
  http://www.ti.com/omap3 (high volume) and
  http://www.ti.com/omap35x (broad market)
  
  [2] OMAP3530 BeagleBoard:
  
  http://beagleboard.org/
9d0fc8110   Dirk Behme   OMAP3: Add Overo ...
163
164
165
  [3] Gumstix Overo:
  
  http://www.gumstix.net/Overo/
ad9bc8e52   Dirk Behme   OMAP3: Add EVM board
166
167
168
  [4] TI EVM:
  
  http://focus.ti.com/docs/toolsw/folders/print/tmdxevm3503.html
2be2c6cc6   Dirk Behme   OMAP3: Add Pandor...
169
170
171
  [5] OpenPandora Ltd. Pandora:
  
  http://openpandora.org/
7379f45a7   Dirk Behme   OMAP3: Add Zoom1 ...
172
173
174
  [6] TI/Logic PD Zoom MDK:
  
  http://www.logicpd.com/products/devkit/ti/zoom_mobile_development_kit
376aee78d   Tom Rix   ZOOM2 Add initial...
175
176
177
  [7] TI/Logic PD Zoom 2
  
  http://www.logicpd.com/sites/default/files/1012659A_Zoom_OMAP34x-II_MDP_Brief.pdf
36b4e2ddd   Mike Rapoport   OMAP3: add CM-T35...
178
179
180
181
182
183
  
  [8] CompuLab Ltd. CM-T35:
  
  http://www.compulab.co.il/t3530/html/t3530-cm-datasheet.htm
  
  [9] TI OMAP3 U-Boot:
f904cdbb6   Dirk Behme   OMAP3: Add common...
184
185
  
  http://beagleboard.googlecode.com/files/u-boot_beagle_revb.tar.gz