void up_boot(void) { /* __start provided the basic MMU mappings for SDRAM. Now provide mappings for all * IO regions (Including the vector region). */ up_setupmappings(); /* Provide a special mapping for the IRAM interrupt vector positioned in high * memory. */ up_vectormapping(); /* Setup up vector block. _vector_start and _vector_end are exported from * up_vector.S */ up_copyvectorblock(); /* Set up the board-specific LEDs */ #ifdef CONFIG_ARCH_LEDS board_led_initialize(); #endif /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT up_earlyserialinit(); #endif }
void arm_boot(void) { /* __start provided the basic MMU mappings for SRAM. Now provide mappings for all * IO regions (Including the vector region). */ #ifndef CONFIG_ARCH_ROMPGTABLE up_setupmappings(); /* Provide a special mapping for the IRAM interrupt vector positioned in high * memory. */ #ifndef CONFIG_ARCH_LOWVECTORS up_vectormapping(); #endif #endif /* CONFIG_ARCH_ROMPGTABLE */ /* Setup up vector block. _vector_start and _vector_end are exported from * up_vector.S */ up_copyvectorblock(); /* Reset all clocks */ lpc31_resetclks(); /* Initialize the PLLs */ lpc31_hp1pllconfig(); lpc31_hp0pllconfig(); /* Initialize clocking to settings provided by board-specific logic */ lpc31_clkinit(&g_boardclks); /* Map first 4KB of ARM space to ISRAM area */ putreg32(LPC31_INTSRAM0_PADDR, LPC31_SYSCREG_ARM926SHADOWPTR); /* Perform common, low-level chip initialization (might do nothing) */ lpc31_lowsetup(); /* Perform early serial initialization if we are going to use the serial driver */ #ifdef USE_EARLYSERIALINIT up_earlyserialinit(); #endif /* Perform board-specific initialization */ lpc31_boardinitialize(); }