Ovidiu Panait | a4aa188 | 2020-07-24 14:12:16 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * XTENSA-specific information for the 'bd' command | ||||
4 | * | ||||
5 | * (C) Copyright 2003 | ||||
6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
7 | */ | ||||
8 | |||||
9 | #include <common.h> | ||||
10 | #include <init.h> | ||||
11 | |||||
12 | DECLARE_GLOBAL_DATA_PTR; | ||||
13 | |||||
14 | int arch_setup_bdinfo(void) | ||||
15 | { | ||||
16 | struct bd_info *bd = gd->bd; | ||||
17 | |||||
18 | bd->bi_memstart = PHYSADDR(CONFIG_SYS_SDRAM_BASE); | ||||
19 | bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; | ||||
20 | |||||
21 | return 0; | ||||
22 | } |