1 | .. SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | .. Copyright (C) 2017, 2018 embedded brains GmbH |
---|
4 | |
---|
5 | arm (ARM) |
---|
6 | ********* |
---|
7 | |
---|
8 | altera-cyclone-v |
---|
9 | ================ |
---|
10 | |
---|
11 | TODO. |
---|
12 | |
---|
13 | atsam |
---|
14 | ===== |
---|
15 | |
---|
16 | TODO. |
---|
17 | |
---|
18 | beagle |
---|
19 | ====== |
---|
20 | |
---|
21 | TODO. |
---|
22 | |
---|
23 | csb336 |
---|
24 | ====== |
---|
25 | |
---|
26 | TODO. |
---|
27 | |
---|
28 | csb337 |
---|
29 | ====== |
---|
30 | |
---|
31 | TODO. |
---|
32 | |
---|
33 | edb7312 |
---|
34 | ======= |
---|
35 | |
---|
36 | TODO. |
---|
37 | |
---|
38 | gdbarmsim |
---|
39 | ========= |
---|
40 | |
---|
41 | TODO. |
---|
42 | |
---|
43 | gumstix |
---|
44 | ======= |
---|
45 | |
---|
46 | TODO. |
---|
47 | |
---|
48 | imx (NXP i.MX) |
---|
49 | ============== |
---|
50 | |
---|
51 | This BSP offers only one variant, the `imx7`. This variant supports the i.MX |
---|
52 | 7Dual processor. The basic hardware initialization is not performed by the |
---|
53 | BSP. A boot loader with device tree support must be used to start the BSP, |
---|
54 | e.g. U-Boot. |
---|
55 | |
---|
56 | Build Configuration Options |
---|
57 | --------------------------- |
---|
58 | |
---|
59 | The following options are available at the configure command line. |
---|
60 | |
---|
61 | ``BSP_PRESS_KEY_FOR_RESET`` |
---|
62 | If defined to a non-zero value, then print a message and wait until pressed |
---|
63 | before resetting board when application terminates. |
---|
64 | |
---|
65 | ``BSP_RESET_BOARD_AT_EXIT`` |
---|
66 | If defined to a non-zero value, then reset the board when the application |
---|
67 | terminates. |
---|
68 | |
---|
69 | ``BSP_PRINT_EXCEPTION_CONTEXT`` |
---|
70 | If defined to a non-zero value, then print the exception context when an |
---|
71 | unexpected exception occurs. |
---|
72 | |
---|
73 | ``BSP_FDT_BLOB_SIZE_MAX`` |
---|
74 | The maximum size of the device tree blob in bytes (default is 262144). |
---|
75 | |
---|
76 | ``CONSOLE_USE_INTERRUPTS`` |
---|
77 | Use interrupt driven mode for console devices (enabled by default). |
---|
78 | |
---|
79 | ``IMX_CCM_IPG_HZ`` |
---|
80 | The IPG clock frequency in Hz (default is 67500000). |
---|
81 | |
---|
82 | ``IMX_CCM_UART_HZ`` |
---|
83 | The UART clock frequency in Hz (default is 24000000). |
---|
84 | |
---|
85 | ``IMX_CCM_AHB_HZ`` |
---|
86 | The AHB clock frequency in Hz (default is 135000000). |
---|
87 | |
---|
88 | Boot via U-Boot |
---|
89 | --------------- |
---|
90 | |
---|
91 | The application executable file (ELF file) must be converted to an U-Boot |
---|
92 | image. Use the following commands: |
---|
93 | |
---|
94 | :: |
---|
95 | |
---|
96 | arm-rtems5-objcopy -O binary app.exe app.bin |
---|
97 | gzip -9 -f -c app.bin > app.bin.gz |
---|
98 | mkimage -A arm -O linux -T kernel -a 0x80200000 -e 0x80200000 -n RTEMS -d app.bin.gz app.img |
---|
99 | |
---|
100 | Use the following U-Boot commands to boot an application via TFTP download: |
---|
101 | |
---|
102 | :: |
---|
103 | |
---|
104 | tftpboot ${loadaddr} app.img && run loadfdt && bootm ${loadaddr} - ${fdt_addr} ; reset |
---|
105 | |
---|
106 | Clock Driver |
---|
107 | ------------ |
---|
108 | |
---|
109 | The clock driver uses the `ARMv7-AR Generic Timer`. |
---|
110 | |
---|
111 | Console Driver |
---|
112 | -------------- |
---|
113 | |
---|
114 | The console driver supports up to seven on-chip UARTs. They are initialized |
---|
115 | according to the device tree. The console driver does not configure the pins. |
---|
116 | |
---|
117 | I2C Driver |
---|
118 | ---------- |
---|
119 | |
---|
120 | I2C drivers are registered by the ``i2c_bus_register_imx()`` function. The I2C |
---|
121 | driver does not configure the pins. |
---|
122 | |
---|
123 | .. code-block:: c |
---|
124 | |
---|
125 | #include <assert.h> |
---|
126 | #include <bsp.h> |
---|
127 | |
---|
128 | void i2c_init(void) |
---|
129 | { |
---|
130 | int rv; |
---|
131 | |
---|
132 | rv = i2c_bus_register_imx("/dev/i2c-0", "i2c0"); |
---|
133 | assert(rv == 0); |
---|
134 | } |
---|
135 | |
---|
136 | SPI Driver |
---|
137 | ---------- |
---|
138 | |
---|
139 | SPI drivers are registered by the ``spi_bus_register_imx()`` function. The SPI |
---|
140 | driver configures the pins according to the ``pinctrl-0`` device tree property. |
---|
141 | SPI transfers with a continuous chip select are limited by the FIFO size of 64 |
---|
142 | bytes. The driver has no DMA support. |
---|
143 | |
---|
144 | .. code-block:: c |
---|
145 | |
---|
146 | #include <assert.h> |
---|
147 | #include <bsp.h> |
---|
148 | |
---|
149 | void spi_init(void) |
---|
150 | { |
---|
151 | int rv; |
---|
152 | |
---|
153 | rv = spi_bus_register_imx("/dev/spi-0", "spi0"); |
---|
154 | assert(rv == 0); |
---|
155 | } |
---|
156 | |
---|
157 | Network Interface Driver |
---|
158 | ------------------------ |
---|
159 | |
---|
160 | The network interface driver is provided by the `libbsd`. It is initialized |
---|
161 | according to the device tree. It supports checksum offload and interrupt |
---|
162 | coalescing. IPv6 transmit checksum offload is not implemented. The interrupt |
---|
163 | coalescing uses the MII/GMII clocks and can be controlled by the following |
---|
164 | system controls: |
---|
165 | |
---|
166 | * ``dev.ffec.<unit>.int_coal.rx_time`` |
---|
167 | * ``dev.ffec.<unit>.int_coal.rx_count`` |
---|
168 | * ``dev.ffec.<unit>.int_coal.tx_time`` |
---|
169 | * ``dev.ffec.<unit>.int_coal.tx_count`` |
---|
170 | |
---|
171 | A value of zero for the time or count disables the interrupt coalescing in the |
---|
172 | corresponding direction. |
---|
173 | |
---|
174 | MMC/SDCard Driver |
---|
175 | ----------------- |
---|
176 | |
---|
177 | The MMC/SDCard driver (uSDHC module) is provided by the `libbsd`. It is |
---|
178 | initialized according to the device tree. Pin re-configuration according to |
---|
179 | the serial clock frequency is not supported. Data transfers are extremely |
---|
180 | slow. This is probably due to the missing DMA support. |
---|
181 | |
---|
182 | Caveats |
---|
183 | ------- |
---|
184 | |
---|
185 | The clock and pin configuration support is quite rudimentary and mostly relies |
---|
186 | on the boot loader. For a pin group configuration see |
---|
187 | ``imx_iomux_configure_pins()``. There is no power management support. |
---|
188 | |
---|
189 | lm3s69xx |
---|
190 | ======== |
---|
191 | |
---|
192 | TODO. |
---|
193 | |
---|
194 | lpc176x |
---|
195 | ======= |
---|
196 | |
---|
197 | TODO. |
---|
198 | |
---|
199 | lpc24xx |
---|
200 | ======= |
---|
201 | |
---|
202 | TODO. |
---|
203 | |
---|
204 | lpc32xx |
---|
205 | ======= |
---|
206 | |
---|
207 | TODO. |
---|
208 | |
---|
209 | raspberrypi |
---|
210 | =========== |
---|
211 | |
---|
212 | TODO. |
---|
213 | |
---|
214 | realview-pbx-a9 |
---|
215 | =============== |
---|
216 | |
---|
217 | TODO. |
---|
218 | |
---|
219 | rtl22xx |
---|
220 | ======= |
---|
221 | |
---|
222 | TODO. |
---|
223 | |
---|
224 | smdk2410 |
---|
225 | ======== |
---|
226 | |
---|
227 | TODO. |
---|
228 | |
---|
229 | stm32f4 |
---|
230 | ======= |
---|
231 | |
---|
232 | TODO. |
---|
233 | |
---|
234 | tms570 |
---|
235 | ====== |
---|
236 | |
---|
237 | TODO. |
---|
238 | |
---|
239 | xilinx-zynq |
---|
240 | =========== |
---|
241 | |
---|
242 | TODO. |
---|