diff options
author | Kun-Hua Huang <kunhua@andestech.com> | 2015-08-24 14:52:35 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-28 11:46:35 -0400 |
commit | 2e88bb28d8061286d2f1cabcac224df15b941b82 (patch) | |
tree | f61379fd60c3a45e33c2fbae96df449daf7294db /common/board_r.c | |
parent | 14006a5671058bfe2f323beeec66448fce228adb (diff) |
NDS32: Generic Board Support and Unsupport
Add nds32 ag101p generic board support.
Signed-off-by: Kun-Hua Huang <kunhua@andestech.com>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c index bf6c72572d7..f8c1baa9496 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 @@ -711,7 +713,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 /* |