* [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
@ 2022-10-04 11:06 ` Andrejs Cainikovs
0 siblings, 0 replies; 2+ messages in thread
From: Andrejs Cainikovs @ 2022-10-04 11:06 UTC (permalink / raw)
To: Marcel Ziswiler, Stefano Babic, Fabio Estevam,
NXP i . MX U-Boot Team
Cc: u-boot, Andrejs Cainikovs
This change initializes Cryptographic Accelerator and Assurance Module.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
---
board/toradex/verdin-imx8mp/spl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/board/toradex/verdin-imx8mp/spl.c b/board/toradex/verdin-imx8mp/spl.c
index 6f1931ffaca..1838b464a0d 100644
--- a/board/toradex/verdin-imx8mp/spl.c
+++ b/board/toradex/verdin-imx8mp/spl.c
@@ -17,6 +17,8 @@
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/arch/ddr.h>
+#include <dm/device.h>
+#include <dm/uclass.h>
#include <power/pmic.h>
#include <power/pca9450.h>
@@ -43,6 +45,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 caam_jr: %d\n", ret);
+ }
+
/*
* Set GIC clock to 500Mhz for OD VDD_SOC. Kernel driver does
* not allow to change it. Should set the clock after PMIC
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam
@ 2022-10-24 13:55 sbabic
0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2022-10-24 13:55 UTC (permalink / raw)
To: Andrejs Cainikovs, u-boot
> This change initializes Cryptographic Accelerator and Assurance Module.
> Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-24 14:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 13:55 [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam sbabic
-- strict thread matches above, loose matches on Subject: below --
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam Andrejs Cainikovs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox