From 2d8f01814b91cc438a3ea4d834050b2efcf6a8ed Mon Sep 17 00:00:00 2001 From: Kirill Kapranov Date: Sun, 27 Aug 2023 18:17:41 +0000 Subject: [PATCH] optee: remove excessive patches Signed-off-by: Kirill Kapranov --- ...1-optee-Set-the-machine-correct-UART.patch | 26 --------- ...w-CFG_TZDRAM_START-calcutation-logic.patch | 55 ------------------- 2 files changed, 81 deletions(-) delete mode 100644 recipes-security/optee-imx/compulab/imx8mm/0001-optee-Set-the-machine-correct-UART.patch delete mode 100644 recipes-security/optee-imx/compulab/imx8mm/0002-optee-Apply-a-new-CFG_TZDRAM_START-calcutation-logic.patch diff --git a/recipes-security/optee-imx/compulab/imx8mm/0001-optee-Set-the-machine-correct-UART.patch b/recipes-security/optee-imx/compulab/imx8mm/0001-optee-Set-the-machine-correct-UART.patch deleted file mode 100644 index 183e2ea0..00000000 --- a/recipes-security/optee-imx/compulab/imx8mm/0001-optee-Set-the-machine-correct-UART.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 74ae1af7f68300216b53ac832340761bf08f1719 Mon Sep 17 00:00:00 2001 -From: Valentin Raevsky -Date: Mon, 13 Jul 2020 05:16:52 +0000 -Subject: [PATCH 1/2] optee: Set the machine correct UART - -Signed-off-by: Valentin Raevsky ---- - core/arch/arm/plat-imx/conf.mk | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/core/arch/arm/plat-imx/conf.mk b/core/arch/arm/plat-imx/conf.mk -index 337f6890..5acb46c7 100644 ---- a/core/arch/arm/plat-imx/conf.mk -+++ b/core/arch/arm/plat-imx/conf.mk -@@ -330,7 +330,7 @@ endif - - ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mmevk)) - CFG_DDR_SIZE ?= 0x80000000 --CFG_UART_BASE ?= UART2_BASE -+CFG_UART_BASE = UART3_BASE - endif - - ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mnevk)) --- -2.17.1 - diff --git a/recipes-security/optee-imx/compulab/imx8mm/0002-optee-Apply-a-new-CFG_TZDRAM_START-calcutation-logic.patch b/recipes-security/optee-imx/compulab/imx8mm/0002-optee-Apply-a-new-CFG_TZDRAM_START-calcutation-logic.patch deleted file mode 100644 index 753d8bcd..00000000 --- a/recipes-security/optee-imx/compulab/imx8mm/0002-optee-Apply-a-new-CFG_TZDRAM_START-calcutation-logic.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 928e166d8356dd43cdd68fdc080064450801a495 Mon Sep 17 00:00:00 2001 -From: Kirill Kapranov -Date: Mon, 19 Apr 2021 17:30:22 +0300 -Subject: [PATCH 2/2] optee: Apply a new CFG_TZDRAM_START calcutation logics - -1) Allocate at the uppere edge of the 1G -2) Set the maximum available DRAM_SIZE=4G - -Signed-off-by: Valentin Raevsky -Signed-off-by: Kirill Kapranov ---- - core/arch/arm/plat-imx/conf.mk | 8 +++++++- - core/arch/arm/plat-imx/platform_config.h | 6 +++--- - 2 files changed, 10 insertions(+), 4 deletions(-) - -diff --git a/core/arch/arm/plat-imx/conf.mk b/core/arch/arm/plat-imx/conf.mk -index aa801f11..75aa862c 100644 ---- a/core/arch/arm/plat-imx/conf.mk -+++ b/core/arch/arm/plat-imx/conf.mk -@@ -338,8 +338,14 @@ CFG_UART_BASE ?= UART1_BASE - endif - - ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mmevk)) --CFG_DDR_SIZE ?= 0x80000000 - CFG_UART_BASE = UART3_BASE -+CFG_DDR_SIZE = 0x100000000 -+CFG_DDR_0SEC_SIZE = 0x40000000 -+CFG_TZDRAM_START = ($(CFG_DRAM_BASE) - 0x02000000 + $(CFG_DDR_0SEC_SIZE)) -+ -+CFG_DRAM0_NSEC_SIZE = ($(CFG_DDR_0SEC_SIZE) - 0x02000000 ) -+CFG_DRAM1_NSEC_BASE = 0x80000000 -+CFG_DRAM1_NSEC_SIZE = ($(CFG_DDR_SIZE) - $(CFG_DDR_0SEC_SIZE)) - endif - - ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mnevk)) -diff --git a/core/arch/arm/plat-imx/platform_config.h b/core/arch/arm/plat-imx/platform_config.h -index 72bebcb2..8db15fa6 100644 ---- a/core/arch/arm/plat-imx/platform_config.h -+++ b/core/arch/arm/plat-imx/platform_config.h -@@ -75,9 +75,9 @@ - #if defined(CFG_MX8MQ) || defined(CFG_MX8MM) || defined(CFG_MX8MN) || \ - defined(CFG_MX8MP) - #define DRAM0_NSEC_BASE CFG_DRAM_BASE --#define DRAM0_NSEC_SIZE (CFG_TZDRAM_START - CFG_DRAM_BASE) --#define DRAM1_NSEC_BASE (CFG_TZDRAM_START + 0x2000000) --#define DRAM1_NSEC_SIZE (CFG_DDR_SIZE - DRAM1_NSEC_BASE + CFG_DRAM_BASE) -+#define DRAM0_NSEC_SIZE CFG_DRAM0_NSEC_SIZE -+#define DRAM1_NSEC_BASE CFG_DRAM1_NSEC_BASE -+#define DRAM1_NSEC_SIZE CFG_DRAM1_NSEC_SIZE - #endif - - #if defined(CFG_IMX_DEK_HAB) && !defined(DRAM0_NSEC_SIZE) --- -2.17.1 -