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