Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stanislav Galabov | 7c60423 | 2016-02-04 12:13:44 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2007 Stanislav Galabov <sgalabov@gmail.com> |
| 4 | * |
Stanislav Galabov | 7c60423 | 2016-02-04 12:13:44 +0200 | [diff] [blame] | 5 | * This file contains routines that fetch data from bd_info sources |
| 6 | */ |
| 7 | |
| 8 | #include <config.h> |
| 9 | #include <linux/types.h> |
| 10 | #include <api_public.h> |
| 11 | |
Stanislav Galabov | 7c60423 | 2016-02-04 12:13:44 +0200 | [diff] [blame] | 12 | #include <asm/global_data.h> |
| 13 | |
| 14 | #include "api_private.h" |
| 15 | |
| 16 | DECLARE_GLOBAL_DATA_PTR; |
| 17 | |
| 18 | /* |
| 19 | * Important notice: handling of individual fields MUST be kept in sync with |
| 20 | * include/asm-generic/u-boot.h, so any changes |
| 21 | * need to reflect their current state and layout of structures involved! |
| 22 | */ |
| 23 | int platform_sys_info(struct sys_info *si) |
| 24 | { |
| 25 | |
Stefan Roese | e207f22 | 2020-08-12 13:16:36 +0200 | [diff] [blame] | 26 | platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM); |
Stanislav Galabov | 7c60423 | 2016-02-04 12:13:44 +0200 | [diff] [blame] | 27 | |
| 28 | return 1; |
| 29 | } |