bdinfo.c 412 B

12345678910111213141516171819202122
  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. #include <common.h>
  9. #include <init.h>
  10. DECLARE_GLOBAL_DATA_PTR;
  11. int arch_setup_bdinfo(void)
  12. {
  13. struct bd_info *bd = gd->bd;
  14. bd->bi_memstart = PHYSADDR(CONFIG_SYS_SDRAM_BASE);
  15. bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
  16. return 0;
  17. }