Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
699B

  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->bd->bi_memstart,
  22. gd->bd->bi_memsize, MR_ATTR_DRAM);
  23. return 1;
  24. }