diff options
author | Steve Markgraf <steve@steve-m.de> | 2013-01-03 22:50:21 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2013-01-05 18:37:49 +0100 |
commit | e340681c5bbcb9f904b0058d7f69f80ab2d32cc5 (patch) | |
tree | 444a59eb702b21985ca5ddce17f82f5217c2662f /src/target/firmware/board/mt62xx | |
parent | 9fc637700346a269f4fbd40284c440ed53e6355b (diff) |
fw: introduce with_irq parameter for board_init()
So far the loader-app used to do the init on its
own, which brought a lot of problems for board-
specific initialization.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/board/mt62xx')
-rw-r--r-- | src/target/firmware/board/mt62xx/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/board/mt62xx/init.c b/src/target/firmware/board/mt62xx/init.c index 3f683757..e3daa37d 100644 --- a/src/target/firmware/board/mt62xx/init.c +++ b/src/target/firmware/board/mt62xx/init.c @@ -117,7 +117,7 @@ void memory_init(void) #endif } -void board_init(void) +void board_init(int with_irq) { /* powerup the baseband */ writew(POWERKEY1_MAGIC, MTK_RTC_POWERKEY1); @@ -134,6 +134,6 @@ void board_init(void) memory_init(); /* Initialize UART without interrupts */ - uart_init(SERCOMM_UART_NR, 0); + uart_init(SERCOMM_UART_NR, with_irq); uart_baudrate(SERCOMM_UART_NR, UART_115200); } |