diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-04-24 18:46:36 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-04-26 08:52:51 +0200 |
commit | fbbf44af318b20b61658d2461ff858d5134aa3f5 (patch) | |
tree | 473a35bb8aff6e586fc669d2dd6305d90ed00a5c | |
parent | 7175ef4a71e01fe416845a7ecb9af2dfa201cc87 (diff) | |
download | u-boot-fbbf44af318b20b61658d2461ff858d5134aa3f5.zip u-boot-fbbf44af318b20b61658d2461ff858d5134aa3f5.tar.gz u-boot-fbbf44af318b20b61658d2461ff858d5134aa3f5.tar.bz2 |
warp7: Print out the OPTEE DRAM region
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>
Tested-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
-rw-r--r-- | board/warp7/warp7.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; } |