rockchip: rk3308: set several master IP that can be secure access

Include CRYPTO SDMMC EMMC NAND SFC USB.

Change-Id: I1da1423bbefb45af3c2fad1b848bc7df0729512f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2019-03-26 17:22:08 +08:00
parent 3a10ef3901
commit 01714a2c06
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,7 @@ struct mm_region *mem_map = rk3308_mem_map;
#endif
#define GRF_BASE 0xff000000
#define SGRF_BASE 0xff2b0000
enum {
@ -139,3 +140,15 @@ void board_debug_uart_init(void)
GPIO4D2_UART2_RX_M1 << GPIO4D2_SHIFT |
GPIO4D3_UART2_TX_M1 << GPIO4D3_SHIFT);
}
#if defined(CONFIG_SPL_BUILD)
int arch_cpu_init(void)
{
static struct rk3308_sgrf * const sgrf = (void *)SGRF_BASE;
/* Set CRYPTO SDMMC EMMC NAND SFC USB master bus to be secure access */
rk_clrreg(&sgrf->con_secure0, 0x2b83);
return 0;
}
#endif