All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 3/6] ls2080ardb: Reserve DP-DDR RAM
Date: Wed, 19 Oct 2016 16:31:14 +0200	[thread overview]
Message-ID: <1476887477-189387-4-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1476887477-189387-1-git-send-email-agraf@suse.de>

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>
---
 board/freescale/ls2080ardb/ls2080ardb.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index fab44b9..55199ca 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");
 
+#ifdef CONFIG_EFI_LOADER
+	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;
 }
 
-- 
1.8.5.6

  parent reply	other threads:[~2016-10-19 14:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-19 14:31 [U-Boot] [PATCH v6 0/6] LS2080ARDB: Enable EFI boot support Alexander Graf
2016-10-19 14:31 ` [U-Boot] [PATCH v6 1/6] ls2080: Exit dpaa only right before exiting U-Boot Alexander Graf
2016-10-19 14:31 ` [U-Boot] [PATCH v6 2/6] efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3 Alexander Graf
2016-10-19 14:31 ` Alexander Graf [this message]
2016-10-19 14:31 ` [U-Boot] [PATCH v6 4/6] armv8: ls2080a: Declare spin tables as reserved for efi loader Alexander Graf
2016-10-19 22:41   ` york sun
2016-10-19 14:31 ` [U-Boot] [PATCH v6 5/6] armv8: fsl-layerscape: Add support for efi_loader RTS reset Alexander Graf
2016-10-19 14:31 ` [U-Boot] [PATCH v6 6/6] ls2080ardb: Convert to distro boot Alexander Graf
2016-10-19 22:44   ` york sun
2016-10-20  8:36     ` Alexander Graf
2016-11-15 20:36 ` [U-Boot] [PATCH v6 0/6] LS2080ARDB: Enable EFI boot support Alexander Graf
2016-11-15 22:11   ` york sun
2016-11-15 22:20     ` Alexander Graf
2016-11-16 21:57       ` york sun
2016-11-16 22:04         ` Alexander Graf
2016-11-16 22:22         ` Alexander Graf
2016-11-16 22:29           ` york sun
2016-11-17 10:46     ` Alexander Graf
2016-11-17 16:38       ` york sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476887477-189387-4-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.