From: icenowy at aosc.io Date: Wed, 09 Aug 2017 12:02:48 +0800 Subject: [U-Boot] [linux-sunxi] [PATCH 1/2] sunxi: add PRCM secure switch register definition In-Reply-To: References: <20170720060032.19862-1-icenowy@aosc.io> <4d59b446caaaaf6f73da34c614e88c24@aosc.io> Message-ID: <89ed3430a484c19c2b928c204f2750d8@aosc.io> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de 在 2017-08-09 11:46,Chen-Yu Tsai 写道: > On Tue, Aug 8, 2017 at 2:46 PM, wrote: >> 在 2017-08-08 12:13,Chen-Yu Tsai 写道: >>> >>> On Thu, Jul 20, 2017 at 2:00 PM, Icenowy Zheng >>> wrote: >>>> >>>> Some new Allwinner SoCs' PRCM has a secure switch register, which >>>> controls the access to some clock and power registers in PRCM block. >>>> >>>> Add the definition of this register and its bits in the PRCM header >>>> file. >>>> >>>> Signed-off-by: Icenowy Zheng >>> >>> >>> Could you provide a reference as to where or how you found out >>> about this? >> >> >> https://github.com/tinalinux/brandy/blob/r18-v0.9/arm-trusted-firmware-1.0/plat/sun50iw1p1/sunxi_security.c#L105 > > I assume you've mapped out what each bit means by testing it? Yes. Toggling bit 0 will make at least 0x0 (CPUS_CFG_REG) inaccessible. Toggling bit 1 will make at least 0x40 and 0x44 (PLL_CTRL_REG{0,1}) inaccessible. Toggling bit 2 will make at least 0x120 (VDD_SYS_PWR_RST) inaccessible. (The register names are from http://linux-sunxi.org/PRCM ) > > Tested-by: Chen-Yu Tsai