Changeset 69483af in mainline
- Timestamp:
- 2013-05-01T23:04:34Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eef14771
- Parents:
- 9d504072
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
r9d504072 r69483af 167 167 static void bbxm_output_init(void) 168 168 { 169 #ifdef CONFIG_OMAP_UART 169 170 /* UART3 is wired to external RS232 connector */ 170 171 const bool ok = omap_uart_init(&beagleboard.uart, … … 173 174 stdout_wire(&beagleboard.uart.outdev); 174 175 } 176 #endif 175 177 } 176 178 177 179 static void bbxm_input_init(void) 178 180 { 181 #ifdef CONFIG_OMAP_UART 179 182 srln_instance_t *srln_instance = srln_init(); 180 183 if (srln_instance) { … … 184 187 amdm37x_irc_enable(beagleboard.irc_addr, AMDM37x_UART3_IRQ); 185 188 } 189 #endif 186 190 } 187 191 -
kernel/arch/arm32/src/mach/beaglebone/beaglebone.c
r9d504072 r69483af 195 195 static void bbone_output_init(void) 196 196 { 197 #ifdef CONFIG_OMAP_UART 197 198 const bool ok = omap_uart_init(&bbone.uart, 198 199 AM335x_UART0_IRQ, AM335x_UART0_BASE_ADDRESS, … … 201 202 if (ok) 202 203 stdout_wire(&bbone.uart.outdev); 204 #endif 203 205 } 204 206 205 207 static void bbone_input_init(void) 206 208 { 209 #ifdef CONFIG_OMAP_UART 207 210 srln_instance_t *srln_instance = srln_init(); 208 211 if (srln_instance) { … … 212 215 am335x_irc_enable(bbone.irc_addr, AM335x_UART0_IRQ); 213 216 } 217 #endif 214 218 } 215 219 -
kernel/genarch/include/genarch/drivers/omap/uart.h
r9d504072 r69483af 46 46 } omap_uart_t; 47 47 48 #ifdef CONFIG_OMAP_UART49 48 extern bool omap_uart_init(omap_uart_t *uart, inr_t interrupt, 50 49 uintptr_t addr, size_t size); 51 50 52 51 extern void omap_uart_input_wire(omap_uart_t *uart, indev_t *indev); 53 #else54 static bool omap_uart_init(omap_uart_t *uart, inr_t interrupt,55 uintptr_t addr, size_t size)56 { return true; }57 58 static void omap_uart_input_wire(omap_uart_t *uart, indev_t *indev) {}59 #endif60 52 61 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.