diff mbox series

[v2,2/5] verdin-imx8mm: prepare for optional job ring driver model

Message ID 20220822130604.843081-3-marcel@ziswiler.com
State Accepted
Commit 1e2135356cbdc6609c0b1cffeace898832175efc
Delegated to: Stefano Babic
Headers show
Series verdin-imx8mm: verdin-imx8mp: various additions and improvements | expand

Commit Message

Marcel Ziswiler Aug. 22, 2022, 1:06 p.m. UTC
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>

Prepare for optional job ring driver model. Sec may be initialized based
on the job ring information processed from the device tree.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---

(no changes since v1)

 board/toradex/verdin-imx8mm/spl.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Stefano Babic Sept. 18, 2022, 8:41 p.m. UTC | #1
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> Prepare for optional job ring driver model. Sec may be initialized based
> on the job ring information processed from the device tree.
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 243c97e0ba0..685ac94f4ca 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -56,6 +56,15 @@  void spl_dram_init(void)
 
 void spl_board_init(void)
 {
+	if (IS_ENABLED(CONFIG_FSL_CAAM)) {
+		struct udevice *dev;
+		int ret;
+
+		ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(caam_jr), &dev);
+		if (ret)
+			printf("Failed to initialize %s: %d\n", dev->name, ret);
+	}
+
 	/* Serial download mode */
 	if (is_usb_boot()) {
 		puts("Back to ROM, SDP\n");