mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 07:01:57 +00:00
rockchip: rk322x: set the DDR region as non-secure in SPL
Disable the ddr secure region setting in SPL and the ddr memory becomes non-secure, every one can access it. the trust firmware like OPTEE should have the correct setting for it after SPL if there is one. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
bf82e200a9
commit
18d38d3a94
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,8 @@ static struct rk322x_grf * const grf = (void *)GRF_BASE;
|
||||||
CON_IOMUX_UART2SEL_MASK,
|
CON_IOMUX_UART2SEL_MASK,
|
||||||
CON_IOMUX_UART2SEL_21 << CON_IOMUX_UART2SEL_SHIFT);
|
CON_IOMUX_UART2SEL_21 << CON_IOMUX_UART2SEL_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SGRF_DDR_CON0 0x10150000
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
@ -71,6 +73,8 @@ void board_init_f(ulong dummy)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Disable the ddr secure region setting to make it non-secure */
|
||||||
|
rk_clrreg(SGRF_DDR_CON0, 0x4000);
|
||||||
#if defined(CONFIG_ROCKCHIP_SPL_BACK_TO_BROM) && !defined(CONFIG_SPL_BOARD_INIT)
|
#if defined(CONFIG_ROCKCHIP_SPL_BACK_TO_BROM) && !defined(CONFIG_SPL_BOARD_INIT)
|
||||||
back_to_bootrom();
|
back_to_bootrom();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue