diff options
author | Ingo Albrecht <prom@berlin.ccc.de> | 2010-04-11 07:22:22 +0200 |
---|---|---|
committer | Ingo Albrecht <prom@berlin.ccc.de> | 2010-07-20 14:41:19 +0200 |
commit | e9b639ca87dd8afed876a87e65550330a45ffcf1 (patch) | |
tree | e2c1ad3ad74b91b3df948f6cde7e0bf08b246c4e /src/target/firmware/board/compal_e88/init.c | |
parent | e258b5db7972e13d0dd82d2f70308a81a3e93412 (diff) |
firmware: cleaned up init files.
Diffstat (limited to 'src/target/firmware/board/compal_e88/init.c')
-rw-r--r-- | src/target/firmware/board/compal_e88/init.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/target/firmware/board/compal_e88/init.c b/src/target/firmware/board/compal_e88/init.c index 94586754..59a320f2 100644 --- a/src/target/firmware/board/compal_e88/init.c +++ b/src/target/firmware/board/compal_e88/init.c @@ -75,13 +75,7 @@ static void board_io_init(void) static void __ctor_board board_init(void) { - /* FIXME: this needs to go to board_e99/init.c once we have it */ - wdog_enable(0); - - static cfi_flash_t flash; - // XXX: move after mapping initialization and use final address - flash_init(&flash, 0x00000000); - + /* Configure the memory interface */ calypso_mem_cfg(CALYPSO_nCS0, 3, CALYPSO_MEM_16bit, 1); calypso_mem_cfg(CALYPSO_nCS1, 3, CALYPSO_MEM_16bit, 1); calypso_mem_cfg(CALYPSO_nCS2, 5, CALYPSO_MEM_16bit, 1); @@ -96,28 +90,35 @@ static void __ctor_board board_init(void) /* Configure the RHEA bridge with some sane default values */ calypso_rhea_cfg(0, 0, 0xff, 0, 1, 0, 0); + /* Initialize board-specific GPIO */ board_io_init(); /* Enable bootrom mapping to route exception vectors to RAM */ calypso_bootrom(1); calypso_exceptions_install(); + /* Initialize interrupt controller */ irq_init(); /* initialize MODEM UART to be used for sercomm*/ uart_init(SERCOMM_UART_NR, 1); uart_baudrate(SERCOMM_UART_NR, UART_115200); - /* initialize IRDA UART to be used for old-school console code. + /* 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_baudrate(CONS_UART_NR, UART_115200); + /* Initialize hardware timers */ hwtimer_init(); + /* Initialize DMA controller */ dma_init(); + + /* Initialize real time clock */ rtc_init(); + /* Initialize system timers (uses hwtimer 2) */ timer_init(); /* Initialize LCD driver (uses I2C) */ |