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:
parent
3a10ef3901
commit
01714a2c06
|
|
@ -38,6 +38,7 @@ struct mm_region *mem_map = rk3308_mem_map;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GRF_BASE 0xff000000
|
#define GRF_BASE 0xff000000
|
||||||
|
#define SGRF_BASE 0xff2b0000
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
|
|
@ -139,3 +140,15 @@ void board_debug_uart_init(void)
|
||||||
GPIO4D2_UART2_RX_M1 << GPIO4D2_SHIFT |
|
GPIO4D2_UART2_RX_M1 << GPIO4D2_SHIFT |
|
||||||
GPIO4D3_UART2_TX_M1 << GPIO4D3_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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue