api_platform-mips.c 683 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2007 Stanislav Galabov <sgalabov@gmail.com>
  4. *
  5. * This file contains routines that fetch data from bd_info sources
  6. */
  7. #include <config.h>
  8. #include <linux/types.h>
  9. #include <api_public.h>
  10. #include <asm/u-boot.h>
  11. #include <asm/global_data.h>
  12. #include "api_private.h"
  13. DECLARE_GLOBAL_DATA_PTR;
  14. /*
  15. * Important notice: handling of individual fields MUST be kept in sync with
  16. * include/asm-generic/u-boot.h, so any changes
  17. * need to reflect their current state and layout of structures involved!
  18. */
  19. int platform_sys_info(struct sys_info *si)
  20. {
  21. platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
  22. return 1;
  23. }