blob: 4ec8529521915f36d6eb24ddab5a2af3979f72af [file] [log] [blame]
Ovidiu Panaita5855882020-07-24 14:12:16 +03001// 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
12DECLARE_GLOBAL_DATA_PTR;
13
14int 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}