api_platform-mips.c 702 B

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