diff options
author | Alexander Graf <agraf@suse.de> | 2016-11-17 03:02:59 +0300 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2016-11-17 16:18:55 +0300 |
commit | 215b1fb9fa43049aee34e824bfd994b335155750 (patch) | |
tree | bd7dfb2cbb5f9089284df4b10c8d5176a350615b /board/freescale/ls2080ardb | |
parent | b7b8410a8fee9eda7b062a86a07dda0b97c49f8a (diff) | |
download | u-boot-215b1fb9fa43049aee34e824bfd994b335155750.tar.xz |
ls2080ardb: Reserve DP-DDR RAM
The DP-DDR shouldn't be exposed as conventional memory to an OS, so let's
rather claim it's a reserved region in the EFI memory map
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/ls2080ardb')
-rw-r--r-- | board/freescale/ls2080ardb/ls2080ardb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c index fab44b96ba..02954ef6d7 100644 --- a/board/freescale/ls2080ardb/ls2080ardb.c +++ b/board/freescale/ls2080ardb/ls2080ardb.c @@ -15,6 +15,7 @@ #include <libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> +#include <efi_loader.h> #include <i2c.h> #include <asm/arch/soc.h> #include <fsl_sec.h> @@ -201,6 +202,14 @@ int misc_init_r(void) if (adjust_vdd(0)) printf("Warning: Adjusting core voltage failed.\n"); +#if defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD) + if (soc_has_dp_ddr() && gd->bd->bi_dram[2].size) { + efi_add_memory_map(gd->bd->bi_dram[2].start, + gd->bd->bi_dram[2].size >> EFI_PAGE_SHIFT, + EFI_RESERVED_MEMORY_TYPE, false); + } +#endif + return 0; } |