[PATCH v9 11/14] Layerscape: Enable Job ring driver model.

Michael Walle michael at walle.cc
Tue Jan 11 13:10:41 CET 2022


Hi Gaurav,

Am 2022-01-11 12:28, schrieb Gaurav Jain:
> @@ -1329,6 +1331,7 @@ config TARGET_LS2080ARDB
>  	select FSL_DDR_BIST
>  	select FSL_DDR_INTERACTIVE if !SPL
>  	select GPIO_EXTRA_HEADER
> +	select FSL_CAAM

See below.

> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> index 2ded3e4efc..29aa9a3f10 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> @@ -1,6 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
> - * Copyright 2017-2020 NXP
> + * Copyright 2017-2021 NXP
>   * Copyright 2014-2015 Freescale Semiconductor, Inc.
>   */
> 
> @@ -49,6 +49,7 @@
>  #endif
>  #endif
>  #include <linux/mii.h>
> +#include <dm.h>
> 
>  DECLARE_GLOBAL_DATA_PTR;
> 
> @@ -1650,6 +1651,13 @@ __weak int serdes_misc_init(void)
> 
>  int arch_misc_init(void)
>  {
> +	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);

This will fail when the CAAM driver isn't enabled and will then print
this error message. Should be guarded with IS_ENABLED(FSL_CAAM).


> diff --git a/configs/ls2088ardb_tfa_defconfig 
> b/configs/ls2088ardb_tfa_defconfig
> index a28b45b129..5230d7ead8 100644
> --- a/configs/ls2088ardb_tfa_defconfig
> +++ b/configs/ls2088ardb_tfa_defconfig
> @@ -53,7 +53,6 @@ CONFIG_ENV_ADDR=0x580500000
>  CONFIG_NET_RANDOM_ETHADDR=y
>  CONFIG_DM=y
>  CONFIG_SATA_CEVA=y
> -CONFIG_FSL_CAAM=y
>  CONFIG_DDR_CLK_FREQ=133333333
>  CONFIG_DDR_ECC=y
>  CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
..

I still don't understand why you make the FSL_CAAM mandatory and remove 
the
option here. Same for all other boards.

-michael


More information about the U-Boot mailing list