Changeset 19b3cc6 in mainline for kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
- Timestamp:
- 2014-01-17T23:12:10Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e26a9d95
- Parents:
- fddffb2 (diff), facc34d (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
rfddffb2 r19b3cc6 37 37 #include <ipc/irq.h> 38 38 #include <console/chardev.h> 39 #include <genarch/drivers/pl011/pl011.h> 39 40 #include <genarch/drivers/pl050/pl050.h> 40 #include <genarch/drivers/arm926_uart/arm926_uart.h>41 41 #include <genarch/kbrd/kbrd.h> 42 42 #include <genarch/srln/srln.h> 43 43 #include <console/console.h> 44 44 #include <sysinfo/sysinfo.h> 45 #include <print.h>46 45 #include <ddi/device.h> 47 46 #include <mm/page.h> … … 53 52 #include <abi/fb/visuals.h> 54 53 #include <ddi/ddi.h> 55 #include <print.h> 54 #include <log.h> 55 56 56 57 57 … … 61 61 icp_hw_map_t hw_map; 62 62 irq_t timer_irq; 63 arm926_uart_t uart;63 pl011_uart_t uart; 64 64 } icp; 65 65 … … 275 275 } else { 276 276 /* Spurious interrupt.*/ 277 printf("cpu%d: spurious interrupt (inum=%d)\n", 277 log(LF_ARCH, LVL_DEBUG, 278 "cpu%d: spurious interrupt (inum=%d)", 278 279 CPU->id, i); 279 280 } … … 314 315 stdout_wire(fbdev); 315 316 #endif 316 #ifdef CONFIG_ARM926_UART 317 if (arm926_uart_init(&icp.uart, ARM926_UART0_IRQ, 318 ARM926_UART0_BASE_ADDRESS, sizeof(arm926_uart_regs_t))) 317 #ifdef CONFIG_PL011_UART 318 if (pl011_uart_init(&icp.uart, ICP_UART0_IRQ, ICP_UART)) 319 319 stdout_wire(&icp.uart.outdev); 320 320 #endif … … 350 350 ICP_KBD); 351 351 352 #ifdef CONFIG_ ARM926_UART352 #ifdef CONFIG_PL011_UART 353 353 srln_instance_t *srln_instance = srln_init(); 354 354 if (srln_instance) { 355 355 indev_t *sink = stdin_wire(); 356 356 indev_t *srln = srln_wire(srln_instance, sink); 357 arm926_uart_input_wire(&icp.uart, srln);358 icp_irqc_unmask(ARM926_UART0_IRQ);357 pl011_uart_input_wire(&icp.uart, srln); 358 icp_irqc_unmask(ICP_UART0_IRQ); 359 359 } 360 360 #endif
Note:
See TracChangeset
for help on using the changeset viewer.