diff options
Diffstat (limited to 'src/target/firmware/board/compal_e86')
-rw-r--r-- | src/target/firmware/board/compal_e86/init.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/target/firmware/board/compal_e86/init.c b/src/target/firmware/board/compal_e86/init.c index 2d463cb2..1280ddd5 100644 --- a/src/target/firmware/board/compal_e86/init.c +++ b/src/target/firmware/board/compal_e86/init.c @@ -77,7 +77,7 @@ static void board_io_init(void) writew(reg, ARMIO_LATCH_OUT); } -void board_init(void) +void board_init(int with_irq) { /* Disable watchdog (compal loader leaves it enabled) */ wdog_enable(0); @@ -101,19 +101,20 @@ void board_init(void) board_io_init(); /* Enable bootrom mapping to route exception vectors to RAM */ - calypso_bootrom(1); + calypso_bootrom(with_irq); calypso_exceptions_install(); /* Initialize interrupt controller */ - irq_init(); + if (with_irq) + irq_init(); /* initialize MODEM UART to be used for sercomm*/ - uart_init(SERCOMM_UART_NR, 1); + uart_init(SERCOMM_UART_NR, with_irq); uart_baudrate(SERCOMM_UART_NR, UART_115200); /* initialize IRDA UART to be used for old-school console code. * note: IRDA uart only accessible on C115 and C117 PCB */ - uart_init(CONS_UART_NR, 1); + uart_init(CONS_UART_NR, with_irq); uart_baudrate(CONS_UART_NR, UART_115200); /* Initialize hardware timers */ @@ -134,7 +135,7 @@ void board_init(void) bl_level(0); /* Initialize keypad driver */ - keypad_init(1); + keypad_init(with_irq); /* Initialize ABB driver (uses SPI) */ twl3025_init(); |