]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-at91/spl_at91.c
ARM: keystone2: Build MLO by default
[u-boot] / arch / arm / mach-at91 / spl_at91.c
index e28e568d9d77adcf8ae3a89cd93c71311a330205..b19f95b0d07eaad86710d1a8558da0d93120cb56 100644 (file)
@@ -115,7 +115,7 @@ void board_init_f(ulong dummy)
        timer_init();
 
        /* enable clocks for all PIOs */
-#ifdef CONFIG_AT91SAM9X5
+#if defined(CONFIG_AT91SAM9X5) || defined(CONFIG_AT91SAM9N12)
        at91_periph_clk_enable(ATMEL_ID_PIOAB);
        at91_periph_clk_enable(ATMEL_ID_PIOCD);
 #else
@@ -123,9 +123,12 @@ void board_init_f(ulong dummy)
        at91_periph_clk_enable(ATMEL_ID_PIOB);
        at91_periph_clk_enable(ATMEL_ID_PIOC);
 #endif
+
+#if defined(CONFIG_SPL_SERIAL_SUPPORT)
        /* init console */
        at91_seriald_hw_init();
        preloader_console_init();
+#endif
 
        mem_init();