]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-imx8mm: prepare for optional job ring driver model
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Mon, 22 Aug 2022 13:06:01 +0000 (15:06 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 18 Sep 2022 20:56:10 +0000 (22:56 +0200)
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>
board/toradex/verdin-imx8mm/spl.c

index 243c97e0ba0cc11c9ef5dc2c984bbb00d6ad8af2..685ac94f4ca1a99e23adf3bfbdf9e5c474f5b5cf 100644 (file)
@@ -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");