diff options
Diffstat (limited to 'lib_nios/board.c')
-rw-r--r-- | lib_nios/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_nios/board.c b/lib_nios/board.c index 08085c2bb00..fb477e94e0c 100644 --- a/lib_nios/board.c +++ b/lib_nios/board.c @@ -132,8 +132,10 @@ void board_init (void) bd->bi_memstart = CFG_SDRAM_BASE; bd->bi_memsize = CFG_SDRAM_SIZE; bd->bi_flashstart = CFG_FLASH_BASE; +#if defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE) bd->bi_sramstart= CFG_SRAM_BASE; bd->bi_sramsize = CFG_SRAM_SIZE; +#endif bd->bi_baudrate = CONFIG_BAUDRATE; for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { |