Changeset eef14771 in mainline for kernel/arch/arm32
- Timestamp:
- 2013-05-05T21:34:14Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06fe3b6, 44ecf89
- Parents:
- 716357f (diff), 69483af (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/arm32/src/mach
- Files:
-
- 2 edited
-
beagleboardxm/beagleboardxm.c (modified) (2 diffs)
-
beaglebone/beaglebone.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
r716357f reef14771 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 -
kernel/arch/arm32/src/mach/beaglebone/beaglebone.c
r716357f reef14771 68 68 am335x_ctrl_module_t *ctrl_module; 69 69 am335x_timer_t timer; 70 am335x_uart_t uart;70 omap_uart_t uart; 71 71 } bbone; 72 72 … … 195 195 static void bbone_output_init(void) 196 196 { 197 const bool ok = am335x_uart_init(&bbone.uart, 197 #ifdef CONFIG_OMAP_UART 198 const bool ok = omap_uart_init(&bbone.uart, 198 199 AM335x_UART0_IRQ, AM335x_UART0_BASE_ADDRESS, 199 200 AM335x_UART0_SIZE); … … 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) { 209 212 indev_t *sink = stdin_wire(); 210 213 indev_t *srln = srln_wire(srln_instance, sink); 211 am335x_uart_input_wire(&bbone.uart, srln);214 omap_uart_input_wire(&bbone.uart, srln); 212 215 am335x_irc_enable(bbone.irc_addr, AM335x_UART0_IRQ); 213 216 } 217 #endif 214 218 } 215 219
Note:
See TracChangeset
for help on using the changeset viewer.
