diff options
author | York Sun <yorksun@freescale.com> | 2014-02-11 23:57:26 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-21 20:06:13 +0400 |
commit | e38661634b3d60af80d85ce9eb570a45db4729ca (patch) | |
tree | a7a7f3272ccac9757c941c9c71525fd7adf5ccd5 /include | |
parent | 6b1e1254f326940e5b65c7029f71b964bdf28fd4 (diff) | |
download | u-boot-e38661634b3d60af80d85ce9eb570a45db4729ca.tar.xz |
common: Add get_effective_memsize() to memsize.c
This function has been around for powerpc. It is used for systems with
memory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,
this feature can limit U-boot to one block without going over the limit.
Signed-off-by: York Sun <yorksun@freescale.com>
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 033b5d946d..96a45a6cf7 100644 --- a/include/common.h +++ b/include/common.h @@ -461,6 +461,7 @@ void api_init (void); /* common/memsize.c */ long get_ram_size (long *, long); +phys_size_t get_effective_memsize(void); /* $(BOARD)/$(BOARD).c */ void reset_phy (void); |