Add new u-boot command "imx_tamper" to configure and check the tamper pins. The codes are used for reference and test. So command is disabled at default, user can enable it by adding CONFIG_IMX_TAMPER=y to defconfig The iMX7D has 10 tamper pins those can be used for SNVS tamper detection. Tamper 9 pin is NVCC_DRAM power switch for LPSR by default. It must be fused to tamper function by command => fuse prog -y 1 3 0x80000000 Otherwise, SNVS power consumption would be high When tamper is detected, CPU can't enter/stay in SNVS mode, the tamper must be cleared and disabled before enter SNVS. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Shaojun Wang <shaojun.wang@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> |
||
|---|---|---|
| .. | ||
| clock.h | ||
| clock_slice.h | ||
| crm_regs.h | ||
| gpio.h | ||
| imx-rdc.h | ||
| imx-regs.h | ||
| mx7-ddr.h | ||
| mx7-pins.h | ||
| mx7_plugin.S | ||
| mx7d_pins.h | ||
| mx7d_rdc.h | ||
| snvs.h | ||
| sys_proto.h | ||