From: Simon Shields Date: Wed, 12 Sep 2018 18:28:31 +1000 Subject: [U-Boot] [PATCH 5/7] ARM: exynos: add exynos4412 TZASC memory layout In-Reply-To: <20180912082833.27000-1-simon@lineageos.org> References: <20180912082833.27000-1-simon@lineageos.org> Message-ID: <20180912082833.27000-6-simon@lineageos.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch adds the TZASC registers and base address as documented in the user manual. A follow-up patch will use this to mark all address spaces as non-secure. Signed-off-by: Simon Shields --- arch/arm/mach-exynos/include/mach/cpu.h | 2 +- arch/arm/mach-exynos/include/mach/dmc.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/include/mach/cpu.h b/arch/arm/mach-exynos/include/mach/cpu.h index aeb3755fe6..37d3118749 100644 --- a/arch/arm/mach-exynos/include/mach/cpu.h +++ b/arch/arm/mach-exynos/include/mach/cpu.h @@ -69,6 +69,7 @@ #define EXYNOS4X12_TZPC_BASE 0x10110000 #define EXYNOS4X12_DMC_CTRL_BASE 0x10600000 #define EXYNOS4X12_GPIO_PART4_BASE 0x106E0000 +#define EXYNOS4X12_DMC_TZASC_BASE 0x10700000 #define EXYNOS4X12_ACE_SFR_BASE 0x10830000 #define EXYNOS4X12_GPIO_PART2_BASE 0x11000000 #define EXYNOS4X12_GPIO_PART2_0 0x11000000 @@ -100,7 +101,6 @@ #define EXYNOS4X12_AUDIOSS_BASE DEVICE_NOT_AVAILABLE #define EXYNOS4X12_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE #define EXYNOS4X12_USB3PHY_BASE DEVICE_NOT_AVAILABLE -#define EXYNOS4X12_DMC_TZASC_BASE DEVICE_NOT_AVAILABLE /* EXYNOS5 */ #define EXYNOS5_I2C_SPACING 0x10000 diff --git a/arch/arm/mach-exynos/include/mach/dmc.h b/arch/arm/mach-exynos/include/mach/dmc.h index 4990a1af39..49f00fc564 100644 --- a/arch/arm/mach-exynos/include/mach/dmc.h +++ b/arch/arm/mach-exynos/include/mach/dmc.h @@ -419,6 +419,25 @@ struct exynos5420_phy_control { unsigned int phy_con42; }; +struct exynos4412_tzasc { + unsigned char res1[0x100]; + unsigned int region_setup_low_0; + unsigned int region_setup_high_0; + unsigned int region_attributes_0; + unsigned int res2; + unsigned int region_setup_low_1; + unsigned int region_setup_high_1; + unsigned int region_setup_attributes_1; + unsigned int res3; + unsigned int region_setup_low_2; + unsigned int region_setup_high_2; + unsigned int region_setup_attributes_2; + unsigned int res4; + unsigned int region_setup_low_3; + unsigned int region_setup_high_3; + unsigned int region_attributes_3; +}; + struct exynos5420_tzasc { unsigned char res1[0xf00]; unsigned int membaseconfig0; -- 2.18.0