Changes in kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c [a14f346:69483af] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
ra14f346 r69483af 35 35 #include <arch/exception.h> 36 36 #include <arch/mach/beagleboardxm/beagleboardxm.h> 37 #include <genarch/drivers/amdm37x _irc/amdm37x_irc.h>38 #include <genarch/drivers/amdm37x _uart/amdm37x_uart.h>39 #include <genarch/drivers/amdm37x _gpt/amdm37x_gpt.h>37 #include <genarch/drivers/amdm37x/uart.h> 38 #include <genarch/drivers/amdm37x/irc.h> 39 #include <genarch/drivers/amdm37x/gpt.h> 40 40 #include <genarch/fb/fb.h> 41 41 #include <genarch/srln/srln.h> … … 61 61 static struct beagleboard { 62 62 amdm37x_irc_regs_t *irc_addr; 63 amdm37x_uart_t uart;63 omap_uart_t uart; 64 64 amdm37x_gpt_t timer; 65 65 } beagleboard; … … 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 const bool ok = amdm37x_uart_init(&beagleboard.uart,171 const bool ok = omap_uart_init(&beagleboard.uart, 171 172 AMDM37x_UART3_IRQ, AMDM37x_UART3_BASE_ADDRESS, AMDM37x_UART3_SIZE); 172 173 if (ok) { 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) { 181 184 indev_t *sink = stdin_wire(); 182 185 indev_t *srln = srln_wire(srln_instance, sink); 183 amdm37x_uart_input_wire(&beagleboard.uart, srln);186 omap_uart_input_wire(&beagleboard.uart, srln); 184 187 amdm37x_irc_enable(beagleboard.irc_addr, AMDM37x_UART3_IRQ); 185 188 } 189 #endif 186 190 } 187 191
Note:
See TracChangeset
for help on using the changeset viewer.