X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=common%2Fboard_r.c;h=369996011bfd72440be7cca0f5ab4d744904e430;hb=313aa1077312c61255502365095fc4df144b8847;hp=b17cd925c905d41949c0a9f8a849127f558eda2d;hpb=29759a745ab60f423e4e217089ff0361c0671759;p=karo-tx-uboot.git diff --git a/common/board_r.c b/common/board_r.c index b17cd925c9..369996011b 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -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 /*