summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/apps/loader/main.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2013-01-03 22:50:21 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-01-05 18:37:49 +0100
commite340681c5bbcb9f904b0058d7f69f80ab2d32cc5 (patch)
tree444a59eb702b21985ca5ddce17f82f5217c2662f /src/target/firmware/apps/loader/main.c
parent9fc637700346a269f4fbd40284c440ed53e6355b (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/apps/loader/main.c')
-rw-r--r--src/target/firmware/apps/loader/main.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/target/firmware/apps/loader/main.c b/src/target/firmware/apps/loader/main.c
index 50a39ddd..3cb1333e 100644
--- a/src/target/firmware/apps/loader/main.c
+++ b/src/target/firmware/apps/loader/main.c
@@ -131,25 +131,8 @@ int main(void)
putchar_asm(phone_ack[i]);
}
- /* Always disable wdt (some platforms enable it on boot) */
- wdog_enable(0);
-
- /* Disable the bootrom mapping */
- calypso_bootrom(0);
-
- /* Initialize TWL3025 for power control */
- twl3025_init();
-
- /* Backlight */
- bl_mode_pwl(1);
- bl_level(50);
-
- /* Initialize UART without interrupts */
- uart_init(SERCOMM_UART_NR, 0);
- uart_baudrate(SERCOMM_UART_NR, UART_115200);
-
- /* Initialize HDLC subsystem */
- sercomm_init();
+ /* initialize board without interrupts */
+ board_init(0);
/* Say hi */
puts("\n\nOsmocomBB Loader (revision " GIT_REVISION ")\n");