TrustZone: Add Support Trust OS

if Trust OS running ,
          - disable ddr_freq
          - disable fiq debug
This commit is contained in:
qjb
2015-01-07 15:15:31 +08:00
parent 4b8c633001
commit 940a3100bd
5 changed files with 24 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ config ARCH_ROCKCHIP
select DMADEVICES
select PL330_DMA
select FIQ_GLUE
select ARM_ERRATA_818325
select ARM_ERRATA_821420
select ARM_ERRATA_818325 if !ARM_TRUSTZONE
select ARM_ERRATA_821420 if !ARM_TRUSTZONE
if ARCH_ROCKCHIP

View File

@@ -5,7 +5,7 @@ obj-y += rk312x.o
obj-y += rk3126b.o
obj-y += rk3188.o
obj-y += rk3288.o
obj-y += ddr_freq.o
obj-$(!CONFIG_ARM_TRUSTZONE) += ddr_freq.o
obj-y += efuse.o
obj-y += pvtm.o
obj-y += rk_system_status.o

View File

@@ -841,7 +841,9 @@ void fiq_glue_resume(void);
static inline void rkpm_peri_resume(u32 power_mode)
{
rkpm_gic_dist_resume(&slp_gic_save[0]);
#ifndef CONFIG_ARM_TRUSTZONE
fiq_glue_resume();
#endif
}
static void rkpm_save_setting_resume(void)

View File

@@ -146,7 +146,9 @@ static void __init rk3288_dt_map_io(void)
writel_relaxed(0x00010001, RK_GRF_VIRT + RK3288_GRF_SOC_CON2);
/* disable address remap */
#ifndef CONFIG_ARM_TRUSTZONE
writel_relaxed(0x08000000, RK_SGRF_VIRT + RK3288_SGRF_SOC_CON0);
#endif
/* enable timer7 for core */
writel_relaxed(0, RK3288_TIMER7_VIRT + 0x10);
@@ -162,7 +164,9 @@ static void __init rk3288_dt_map_io(void)
writel_relaxed(24, RK_PMU_VIRT + RK3288_PMU_GPU_PWRUP_CNT);
rk3288_boot_mode_init();
#ifndef CONFIG_ARM_TRUSTZONE
rockchip_efuse_init();
#endif
}
static const u8 pmu_st_map[] = {
@@ -667,7 +671,11 @@ static int __init rk3288_pm_dbg(void)
static int __init rk3288_ddr_init(void)
{
if (cpu_is_rk3288())
if (cpu_is_rk3288()
#ifdef CONFIG_ARM_TRUSTZONE
&& false
#endif
)
{
ddr_change_freq = _ddr_change_freq;
ddr_round_rate = _ddr_round_rate;

View File

@@ -596,6 +596,16 @@ config IO_36
comment "Processor Features"
config ARM_TRUSTZONE
bool "Support TrustZone-enabled Trusted Execution Environment"
default n
help
Select if you want a kernel to be executed at non-secure world.
This option should be used with related secure bootloader and
TrustZone software.
If you don't know about TrustZone, say 'N'.
config ARM_LPAE
bool "Support for the Large Physical Address Extension"
depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \