Skip to content

Commit

Permalink
plat-mediatek: add support for MT7988 SoC
Browse files Browse the repository at this point in the history
Add OP-TEE support for the MT7988 SoC.

Signed-off-by: guan-gm.lin <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
  • Loading branch information
guan-gm.lin authored and jforissier committed Feb 28, 2024
1 parent 4318c69 commit 58dbe3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/arch/arm/plat-mediatek/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,15 @@ CFG_TZDRAM_SIZE ?= 0x00a00000
CFG_SHMEM_START ?= ($(CFG_TZDRAM_START) + $(CFG_TZDRAM_SIZE))
CFG_SHMEM_SIZE ?= 0x00200000
endif

ifeq ($(PLATFORM_FLAVOR),mt7988)
$(call force,CFG_TEE_CORE_NB_CORE,4)
$(call force,CFG_CORE_CLUSTER_SHIFT,1)
$(call force,CFG_ARM_GICV3,y)
$(call force,CFG_GIC,y)
$(call force,CFG_WITH_SOFTWARE_PRNG,Y)
CFG_TZDRAM_START ?= 0x43041000
CFG_TZDRAM_SIZE ?= 0x04ff000
CFG_SHMEM_START ?= ($(CFG_TZDRAM_START) + $(CFG_TZDRAM_SIZE))
CFG_SHMEM_SIZE ?= 0x00200000
endif
14 changes: 14 additions & 0 deletions core/arch/arm/plat-mediatek/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@
#define CONSOLE_BAUDRATE 115200
#define CONSOLE_UART_CLK_IN_HZ 26000000

#elif defined(PLATFORM_FLAVOR_mt7988)

#define GIC_BASE 0x0C000000
#define GICC_OFFSET 0x400000
#define GICD_OFFSET 0x000000

#define UART0_BASE 0x11000000
#define UART1_BASE 0x11000100
#define UART2_BASE 0x11000200

#define CONSOLE_UART_BASE UART0_BASE
#define CONSOLE_BAUDRATE 115200
#define CONSOLE_UART_CLK_IN_HZ 40000000

#else
#error "Unknown platform flavor"
#endif
Expand Down

0 comments on commit 58dbe3d

Please sign in to comment.