All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 06/17] warp7: Print out the OPTEE DRAM region
Date: Fri, 13 Apr 2018 16:31:10 +0100	[thread overview]
Message-ID: <1523633481-20914-7-git-send-email-bryan.odonoghue@linaro.org> (raw)
In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org>

Right now a region of 0x300000 bytes is allocated at the end of DRAM for
the purposes of loading an OPTEE firmware inside of it. This patch adds the
printout of the relevant address ranges.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 board/warp7/warp7.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index 56f0cdd..da52b18 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -181,7 +181,17 @@ int checkboard(void)
 	else
 		mode = "non-secure";
 
+#ifdef CONFIG_OPTEE_TZDRAM_SIZE
+	unsigned long optee_start, optee_end;
+
+	optee_end = PHYS_SDRAM + PHYS_SDRAM_SIZE;
+	optee_start = optee_end - CONFIG_OPTEE_TZDRAM_SIZE;
+
+	printf("Board: WARP7 in %s mode OPTEE DRAM 0x%08lx-0x%08lx\n",
+	       mode, optee_start, optee_end);
+#else
 	printf("Board: WARP7 in %s mode\n", mode);
+#endif
 
 	return 0;
 }
-- 
2.7.4

  parent reply	other threads:[~2018-04-13 15:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-13 15:31 [U-Boot] [PATCH v3 00/17] warp7: Enable automated OPTEE/HAB boot flow Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 01/17] imximage: Specify default IVT offset in IMX image Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 02/17] warp7: hab: Add a CSF location definition Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 03/17] warp7: hab: Set environment variable indicating HAB enable Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 04/17] warp7: defconfig: Enable OPTEE for WaRP7 Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 05/17] warp7: Allocate specific region of memory to OPTEE Bryan O'Donoghue
2018-04-13 15:31 ` Bryan O'Donoghue [this message]
2018-04-13 15:31 ` [U-Boot] [PATCH v3 07/17] warp7: Specify CONFIG_OPTEE_LOAD_ADDR Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 08/17] warp7: defconfig: Enable CONFIG_SECURE_BOOT Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 09/17] warp7: defconfig: Enable CONFIG_BOOTM_TEE Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 10/17] warp7: Make CONFIG_SYS_FDT_ADDR a define Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 11/17] warp7: Add Kconfig WARP7_ROOT_PART Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 12/17] warp7: select uuid partition based on rootpart Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 13/17] warp7: Define the name of a signed boot-script file Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 14/17] warp7: add warp7_auth_or_fail Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 15/17] warp7: hab: Set environment variable indicating IVT offset Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 16/17] warp7: defconfig: Enable CMD_SETEXPR Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 17/17] warp7: Add support for automated secure boot.scr verification Bryan O'Donoghue
2018-04-16 18:12 ` [U-Boot] [PATCH v3 00/17] warp7: Enable automated OPTEE/HAB boot flow Breno Matheus Lima
2018-04-16 19:58 ` Fabio Estevam

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=1523633481-20914-7-git-send-email-bryan.odonoghue@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --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.