]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/board_r.c
NDS32: Generic Board Support and Unsupport
[karo-tx-uboot.git] / common / board_r.c
index b17cd925c905d41949c0a9f8a849127f558eda2d..369996011bfd72440be7cca0f5ab4d744904e430 100644 (file)
@@ -132,6 +132,8 @@ static int initr_reloc_global_data(void)
 {
 #ifdef __ARM__
        monitor_flash_len = _end - __image_copy_start;
+#elif defined(CONFIG_NDS32)
+       monitor_flash_len = (ulong)&_end - (ulong)&_start;
 #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
        monitor_flash_len = (ulong)&__init_end - gd->relocaddr;
 #endif
@@ -700,7 +702,7 @@ init_fnc_t init_sequence_r[] = {
 #ifdef CONFIG_DM
        initr_dm,
 #endif
-#ifdef CONFIG_ARM
+#if defined(CONFIG_ARM) || defined(CONFIG_NDS32)
        board_init,     /* Setup chipselects */
 #endif
        /*