Skip to contentSkip to conversation

apalis/colibri imx8: enable additional features

PATCH Applied [email protected] 3 participants 7 messages Aug 7, 2024 – Aug 23, 2024 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

cover apalis/colibri imx8: enable additional features

From: Max Krummenacher <[email protected]>

Enable and use additional features which have been added to U-Boot on the Apalis iMX8QM / Colibri iMX8X boards.

Andrejs Cainikovs (4):
board: apalis-imx8: add reset code
apalis-imx8: enable i.MX specific BOOTAUX
colibri-imx8x: enable i.MX specific BOOTAUX
colibri-imx8x: enable i.MX specific SNVS configuration

 board/toradex/apalis-imx8/apalis-imx8.c | 8 ++++++++
 configs/apalis-imx8_defconfig           | 1 +
 configs/colibri-imx8x_defconfig         | 2 ++
 3 files changed, 11 insertions(+)
Signature · 1 line
2.42.0
#1 lore raw

PATCH 1/4 board: apalis-imx8: add reset code

From: Andrejs Cainikovs <[email protected]>

With commit 922d4504bcab ("imx: scu_api: update to version 1.16 and add more APIs") added the reboot API.

Add the board code to use that.

---

 board/toradex/apalis-imx8/apalis-imx8.c | 8 ++++++++
 1 file changed, 8 insertions(+)
board/toradex/apalis-imx8/apalis-imx8.c +8 -0
index 72d67d90d418..570bf2a27d4b 100644
@@ -290,6 +290,14 @@ int board_init(void)
 	return 0;
 }
 
+void reset_cpu(void)
+{
+	sc_pm_reboot(-1, SC_PM_RESET_TYPE_COLD);
+
+	do {
+	} while (1);
+}
+
 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
Signature · 1 line
2.42.0
#2 lore raw

PATCH 2/4 apalis-imx8: enable i.MX specific BOOTAUX

In reply to [email protected]

From: Andrejs Cainikovs <[email protected]>

commit e8cd1f60d964 ("imx: imx8: bootaux: Add i.MX8 M4 boot support") implemented IMX_BOOTAUX. Enable it.

---

 configs/apalis-imx8_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/apalis-imx8_defconfig +1 -0
index e9fb4c75988a..466147f3bf2a 100644
@@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-apalis"
 CONFIG_BOOTAUX_RESERVED_MEM_BASE=0x88000000
 CONFIG_BOOTAUX_RESERVED_MEM_SIZE=0x08000000
 CONFIG_TARGET_APALIS_IMX8=y
+CONFIG_IMX_BOOTAUX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_SYS_LOAD_ADDR=0x95400000
 CONFIG_SYS_MEMTEST_START=0x88000000
Signature · 1 line
2.42.0
#3 lore raw

PATCH 3/4 colibri-imx8x: enable i.MX specific BOOTAUX

In reply to [email protected]

From: Andrejs Cainikovs <[email protected]>

commit e8cd1f60d964 ("imx: imx8: bootaux: Add i.MX8 M4 boot support") implemented IMX_BOOTAUX. Enable it.

---

 configs/colibri-imx8x_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/colibri-imx8x_defconfig +1 -0
index e76373e499ad..71a05b74dbb0 100644
@@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-colibri"
 CONFIG_BOOTAUX_RESERVED_MEM_BASE=0x88000000
 CONFIG_BOOTAUX_RESERVED_MEM_SIZE=0x08000000
 CONFIG_TARGET_COLIBRI_IMX8X=y
+CONFIG_IMX_BOOTAUX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_SYS_LOAD_ADDR=0x95c00000
 CONFIG_SYS_MEMTEST_START=0x88000000
Signature · 1 line
2.42.0
#4 lore raw

PATCH 4/4 colibri-imx8x: enable i.MX specific SNVS configuration

In reply to [email protected]

From: Andrejs Cainikovs <[email protected]>

commit 242d1cd69b9f ("imx8: Configure SNVS")
implemented IMX_SNVS_SEC_SC. Enable it.

---

 configs/colibri-imx8x_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/colibri-imx8x_defconfig +1 -0
index 71a05b74dbb0..d7b1b76c21df 100644
@@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-colibri"
 CONFIG_BOOTAUX_RESERVED_MEM_BASE=0x88000000
 CONFIG_BOOTAUX_RESERVED_MEM_SIZE=0x08000000
 CONFIG_TARGET_COLIBRI_IMX8X=y
+CONFIG_IMX_SNVS_SEC_SC=y
 CONFIG_IMX_BOOTAUX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_SYS_LOAD_ADDR=0x95c00000
Signature · 1 line
2.42.0
reviewer Applied
#6 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, Aug 7, 2024 at 11:17 AM <[email protected]> wrote:

From: Max Krummenacher <[email protected]>

Enable and use additional features which have been added to U-Boot on the Apalis iMX8QM / Colibri iMX8X boards.

Quoted 5 lines

Andrejs Cainikovs (4):
board: apalis-imx8: add reset code
apalis-imx8: enable i.MX specific BOOTAUX
colibri-imx8x: enable i.MX specific BOOTAUX
colibri-imx8x: enable i.MX specific SNVS configuration

Applied all, thanks.