]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
7c604231 SG |
2 | /* |
3 | * (C) Copyright 2007 Stanislav Galabov <[email protected]> | |
4 | * | |
7c604231 SG |
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 | ||
12 | #include <asm/u-boot.h> | |
13 | #include <asm/global_data.h> | |
14 | ||
15 | #include "api_private.h" | |
16 | ||
17 | DECLARE_GLOBAL_DATA_PTR; | |
18 | ||
19 | /* | |
20 | * Important notice: handling of individual fields MUST be kept in sync with | |
21 | * include/asm-generic/u-boot.h, so any changes | |
22 | * need to reflect their current state and layout of structures involved! | |
23 | */ | |
24 | int platform_sys_info(struct sys_info *si) | |
25 | { | |
26 | ||
e207f225 | 27 | platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM); |
7c604231 SG |
28 | |
29 | return 1; | |
30 | } |