mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
i.MX6: Enable Job ring driver model.
i.MX6,i.MX6SX,i.MX6UL - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
This commit is contained in:
parent
720bcfb1e0
commit
644bfa8e1d
@ -354,6 +354,8 @@ config TARGET_MX6SABREAUTO
|
|||||||
select DM_THERMAL
|
select DM_THERMAL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
imply CMD_DM
|
imply CMD_DM
|
||||||
|
select FSL_CAAM
|
||||||
|
select ARCH_MISC_INIT
|
||||||
|
|
||||||
config TARGET_MX6SABRESD
|
config TARGET_MX6SABRESD
|
||||||
bool "mx6sabresd"
|
bool "mx6sabresd"
|
||||||
@ -364,6 +366,8 @@ config TARGET_MX6SABRESD
|
|||||||
select DM_THERMAL
|
select DM_THERMAL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
imply CMD_DM
|
imply CMD_DM
|
||||||
|
select FSL_CAAM
|
||||||
|
select ARCH_MISC_INIT
|
||||||
|
|
||||||
config TARGET_MX6SLEVK
|
config TARGET_MX6SLEVK
|
||||||
bool "mx6slevk"
|
bool "mx6slevk"
|
||||||
@ -386,6 +390,8 @@ config TARGET_MX6SXSABRESD
|
|||||||
select DM
|
select DM
|
||||||
select DM_THERMAL
|
select DM_THERMAL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
|
select FSL_CAAM
|
||||||
|
select ARCH_MISC_INIT
|
||||||
|
|
||||||
config TARGET_MX6SXSABREAUTO
|
config TARGET_MX6SXSABREAUTO
|
||||||
bool "mx6sxsabreauto"
|
bool "mx6sxsabreauto"
|
||||||
@ -404,6 +410,8 @@ config TARGET_MX6UL_9X9_EVK
|
|||||||
select DM_THERMAL
|
select DM_THERMAL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
imply CMD_DM
|
imply CMD_DM
|
||||||
|
select FSL_CAAM
|
||||||
|
select ARCH_MISC_INIT
|
||||||
|
|
||||||
config TARGET_MX6UL_14X14_EVK
|
config TARGET_MX6UL_14X14_EVK
|
||||||
bool "mx6ul_14x14_evk"
|
bool "mx6ul_14x14_evk"
|
||||||
@ -413,6 +421,8 @@ config TARGET_MX6UL_14X14_EVK
|
|||||||
select DM_THERMAL
|
select DM_THERMAL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
imply CMD_DM
|
imply CMD_DM
|
||||||
|
select FSL_CAAM
|
||||||
|
select ARCH_MISC_INIT
|
||||||
|
|
||||||
config TARGET_MX6UL_ENGICAM
|
config TARGET_MX6UL_ENGICAM
|
||||||
bool "Support Engicam GEAM6UL/Is.IoT"
|
bool "Support Engicam GEAM6UL/Is.IoT"
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* Sascha Hauer, Pengutronix
|
* Sascha Hauer, Pengutronix
|
||||||
*
|
*
|
||||||
* (C) Copyright 2009 Freescale Semiconductor, Inc.
|
* (C) Copyright 2009 Freescale Semiconductor, Inc.
|
||||||
|
* Copyright 2021 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
@ -23,7 +24,6 @@
|
|||||||
#include <asm/arch/mxc_hdmi.h>
|
#include <asm/arch/mxc_hdmi.h>
|
||||||
#include <asm/arch/crm_regs.h>
|
#include <asm/arch/crm_regs.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <fsl_sec.h>
|
|
||||||
#include <imx_thermal.h>
|
#include <imx_thermal.h>
|
||||||
#include <mmc.h>
|
#include <mmc.h>
|
||||||
|
|
||||||
@ -738,9 +738,14 @@ static void setup_serial_number(void)
|
|||||||
|
|
||||||
int arch_misc_init(void)
|
int arch_misc_init(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_FSL_CAAM
|
if (IS_ENABLED(CONFIG_FSL_CAAM)) {
|
||||||
sec_init();
|
struct udevice *dev;
|
||||||
#endif
|
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);
|
||||||
|
}
|
||||||
setup_serial_number();
|
setup_serial_number();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user