Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Merge changes from topic "imx8m-sdei" into integration
Browse files Browse the repository at this point in the history
* changes:
  feat(plat/imx8m): add sdei support for i.MX8MP
  feat(plat/imx8m): add sdei support for i.MX8MN
  • Loading branch information
madhukar-Arm authored and TrustedFirmware Code Review committed Jun 18, 2021
2 parents 0fbc4aa + 6b63125 commit 2f0004b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions plat/imx/imx8m/imx8mn/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
#define PLAT_WAIT_RET_STATE U(1)
#define PLAT_STOP_OFF_STATE U(3)

#define PLAT_PRI_BITS U(3)
#define PLAT_SDEI_CRITICAL_PRI 0x10
#define PLAT_SDEI_NORMAL_PRI 0x20
#define PLAT_SDEI_SGI_PRIVATE U(9)

#define BL31_BASE U(0x960000)
#define BL31_LIMIT U(0x980000)

Expand Down
5 changes: 5 additions & 0 deletions plat/imx/imx8m/imx8mn/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \
plat/imx/common/imx_sip_handler.c \
plat/imx/common/imx_sip_svc.c \
plat/imx/common/imx_uart_console.S \
plat/imx/common/imx_ehf.c \
plat/imx/common/imx_sdei.c \
lib/cpus/aarch64/cortex_a53.S \
drivers/arm/tzc/tzc380.c \
drivers/delay_timer/delay_timer.c \
Expand All @@ -54,3 +56,6 @@ $(eval $(call add_define,BL32_SIZE))

IMX_BOOT_UART_BASE ?= 0x30890000
$(eval $(call add_define,IMX_BOOT_UART_BASE))

EL3_EXCEPTION_HANDLING := 1
SDEI_SUPPORT := 1
9 changes: 7 additions & 2 deletions plat/imx/imx8m/imx8mp/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@
#define PLAT_WAIT_RET_STATE U(1)
#define PLAT_STOP_OFF_STATE U(3)

#define BL31_BASE U(0x970000)
#define BL31_LIMIT U(0x990000)
#define BL31_BASE U(0x960000)
#define BL31_LIMIT U(0x980000)

#define PLAT_PRI_BITS U(3)
#define PLAT_SDEI_CRITICAL_PRI 0x10
#define PLAT_SDEI_NORMAL_PRI 0x20
#define PLAT_SDEI_SGI_PRIVATE U(9)

/* non-secure uboot base */
#define PLAT_NS_IMAGE_OFFSET U(0x40200000)
Expand Down
5 changes: 5 additions & 0 deletions plat/imx/imx8m/imx8mp/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \
plat/imx/imx8m/imx8mp/imx8mp_psci.c \
plat/imx/imx8m/imx8mp/gpc.c \
plat/imx/common/imx8_topology.c \
plat/imx/common/imx_ehf.c \
plat/imx/common/imx_sdei.c \
plat/imx/common/imx_sip_handler.c \
plat/imx/common/imx_sip_svc.c \
plat/imx/common/imx_uart_console.S \
Expand All @@ -54,3 +56,6 @@ $(eval $(call add_define,BL32_SIZE))

IMX_BOOT_UART_BASE ?= 0x30890000
$(eval $(call add_define,IMX_BOOT_UART_BASE))

EL3_EXCEPTION_HANDLING := 1
SDEI_SUPPORT := 1

0 comments on commit 2f0004b

Please sign in to comment.