All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL
@ 2017-07-26 10:16 Kever Yang
  2017-07-26 10:16 ` [U-Boot] [PATCH 2/4] rockchip: rk322x: update dts node for mmc Kever Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Kever Yang @ 2017-07-26 10:16 UTC (permalink / raw)
  To: u-boot

Lets set the all the DDR region as non secure in SPL, the
trust like OPTEE should have the correct setting for it if
there is one.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 arch/arm/mach-rockchip/rk322x-board-spl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-rockchip/rk322x-board-spl.c b/arch/arm/mach-rockchip/rk322x-board-spl.c
index 15216c7..aa8a742 100644
--- a/arch/arm/mach-rockchip/rk322x-board-spl.c
+++ b/arch/arm/mach-rockchip/rk322x-board-spl.c
@@ -41,6 +41,8 @@ static struct rk322x_grf * const grf = (void *)GRF_BASE;
 		     CON_IOMUX_UART2SEL_MASK,
 		     CON_IOMUX_UART2SEL_21 << CON_IOMUX_UART2SEL_SHIFT);
 }
+
+#define SGRF_DDR_CON0 0x10150000
 void board_init_f(ulong dummy)
 {
 	struct udevice *dev;
@@ -71,6 +73,7 @@ void board_init_f(ulong dummy)
 		return;
 	}
 
+	rk_clrreg(SGRF_DDR_CON0, 0x4000);
 #if defined(CONFIG_ROCKCHIP_SPL_BACK_TO_BROM) && !defined(CONFIG_SPL_BOARD_INIT)
 	back_to_bootrom();
 #endif
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-07-27  8:17 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-26 10:16 [U-Boot] [PATCH 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL Kever Yang
2017-07-26 10:16 ` [U-Boot] [PATCH 2/4] rockchip: rk322x: update dts node for mmc Kever Yang
2017-07-26 11:11   ` [U-Boot] [U-Boot, " Philipp Tomsich
2017-07-26 17:42   ` Philipp Tomsich
2017-07-27  1:12     ` Kever Yang
2017-07-27  8:17       ` Dr. Philipp Tomsich
2017-07-26 10:16 ` [U-Boot] [PATCH 3/4] rockchip: clk: update dwmmc clock div Kever Yang
2017-07-26 11:11   ` [U-Boot] [U-Boot,3/4] " Philipp Tomsich
2017-07-26 18:01   ` Philipp Tomsich
2017-07-27  3:29     ` Kever Yang
2017-07-27  8:16       ` Dr. Philipp Tomsich
2017-07-26 10:16 ` [U-Boot] [PATCH 4/4] rockchip: clk: remove RATE_TO_DIV Kever Yang
2017-07-26 11:11   ` [U-Boot] [U-Boot,4/4] " Philipp Tomsich
2017-07-26 17:51   ` Philipp Tomsich
2017-07-26 11:11 ` [U-Boot] [U-Boot, 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL Philipp Tomsich
2017-07-26 17:40 ` Philipp Tomsich
2017-07-27  2:33   ` Kever Yang
2017-07-27  8:14     ` Dr. Philipp Tomsich

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.