[PATCH] arm64: zynqmp: Do not enable IPI by default

Michal Simek michal.simek at amd.com
Mon Dec 5 08:49:20 CET 2022



On 11/29/22 16:09, Michal Simek wrote:
> ZynqMP mini configurations are not using IPI driver and enabling this is
> adding additional ~1200 Bytes (depends on configuration).
> This ends up in situation that there is no enough space in OCM for
> relocation that's why disable this driver for all mini configurations.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   arch/arm/Kconfig                                 | 4 ++--
>   configs/xilinx_zynqmp_mini_defconfig             | 1 +
>   configs/xilinx_zynqmp_mini_emmc0_defconfig       | 1 +
>   configs/xilinx_zynqmp_mini_emmc1_defconfig       | 1 +
>   configs/xilinx_zynqmp_mini_nand_defconfig        | 1 +
>   configs/xilinx_zynqmp_mini_nand_single_defconfig | 1 +
>   configs/xilinx_zynqmp_mini_qspi_defconfig        | 1 +
>   7 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index f95ed71b2466..3f68d0988b7f 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1302,7 +1302,7 @@ config ARCH_ZYNQMP
>   	select DM
>   	select DEBUG_UART_BOARD_INIT if SPL && DEBUG_UART
>   	select DM_ETH if NET
> -	select DM_MAILBOX
> +	imply DM_MAILBOX
>   	select DM_MMC if MMC
>   	select DM_SERIAL
>   	select DM_SPI if SPI
> @@ -1319,7 +1319,7 @@ config ARCH_ZYNQMP
>   	imply SPL_FIRMWARE if SPL
>   	select SPL_SEPARATE_BSS if SPL
>   	select SUPPORT_SPL
> -	select ZYNQMP_IPI
> +	imply ZYNQMP_IPI if DM_MAILBOX
>   	select SOC_DEVICE
>   	imply BOARD_LATE_INIT
>   	imply CMD_DM
> diff --git a/configs/xilinx_zynqmp_mini_defconfig b/configs/xilinx_zynqmp_mini_defconfig
> index 245b6a42b935..f29128bf55d9 100644
> --- a/configs/xilinx_zynqmp_mini_defconfig
> +++ b/configs/xilinx_zynqmp_mini_defconfig
> @@ -59,6 +59,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   # CONFIG_NET is not set
>   # CONFIG_DM_WARN is not set
>   # CONFIG_DM_DEVICE_REMOVE is not set
> +# CONFIG_DM_MAILBOX is not set
>   # CONFIG_MMC is not set
>   CONFIG_ARM_DCC=y
>   CONFIG_PANIC_HANG=y
> diff --git a/configs/xilinx_zynqmp_mini_emmc0_defconfig b/configs/xilinx_zynqmp_mini_emmc0_defconfig
> index adf1dae66ede..611da78239db 100644
> --- a/configs/xilinx_zynqmp_mini_emmc0_defconfig
> +++ b/configs/xilinx_zynqmp_mini_emmc0_defconfig
> @@ -71,6 +71,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   # CONFIG_DM_WARN is not set
>   # CONFIG_DM_DEVICE_REMOVE is not set
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> +# CONFIG_DM_MAILBOX is not set
>   CONFIG_SUPPORT_EMMC_BOOT=y
>   CONFIG_MMC_SDHCI=y
>   CONFIG_MMC_SDHCI_ZYNQ=y
> diff --git a/configs/xilinx_zynqmp_mini_emmc1_defconfig b/configs/xilinx_zynqmp_mini_emmc1_defconfig
> index 9d799ad0e3d5..c8084e6ae050 100644
> --- a/configs/xilinx_zynqmp_mini_emmc1_defconfig
> +++ b/configs/xilinx_zynqmp_mini_emmc1_defconfig
> @@ -71,6 +71,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   # CONFIG_DM_WARN is not set
>   # CONFIG_DM_DEVICE_REMOVE is not set
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> +# CONFIG_DM_MAILBOX is not set
>   CONFIG_SUPPORT_EMMC_BOOT=y
>   CONFIG_MMC_SDHCI=y
>   CONFIG_MMC_SDHCI_ZYNQ=y
> diff --git a/configs/xilinx_zynqmp_mini_nand_defconfig b/configs/xilinx_zynqmp_mini_nand_defconfig
> index 29040a39e970..f5a467940266 100644
> --- a/configs/xilinx_zynqmp_mini_nand_defconfig
> +++ b/configs/xilinx_zynqmp_mini_nand_defconfig
> @@ -55,6 +55,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   # CONFIG_NET is not set
>   # CONFIG_DM_WARN is not set
>   # CONFIG_DM_DEVICE_REMOVE is not set
> +# CONFIG_DM_MAILBOX is not set
>   # CONFIG_MMC is not set
>   CONFIG_MTD=y
>   CONFIG_DM_MTD=y
> diff --git a/configs/xilinx_zynqmp_mini_nand_single_defconfig b/configs/xilinx_zynqmp_mini_nand_single_defconfig
> index 7c17c061d424..61c44e2a6a44 100644
> --- a/configs/xilinx_zynqmp_mini_nand_single_defconfig
> +++ b/configs/xilinx_zynqmp_mini_nand_single_defconfig
> @@ -55,6 +55,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   # CONFIG_NET is not set
>   # CONFIG_DM_WARN is not set
>   # CONFIG_DM_DEVICE_REMOVE is not set
> +# CONFIG_DM_MAILBOX is not set
>   # CONFIG_MMC is not set
>   CONFIG_MTD=y
>   CONFIG_DM_MTD=y
> diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig b/configs/xilinx_zynqmp_mini_qspi_defconfig
> index 513b51998d25..a4b754e09ebb 100644
> --- a/configs/xilinx_zynqmp_mini_qspi_defconfig
> +++ b/configs/xilinx_zynqmp_mini_qspi_defconfig
> @@ -76,6 +76,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
>   # CONFIG_GPIO is not set
>   # CONFIG_I2C is not set
>   # CONFIG_INPUT is not set
> +# CONFIG_DM_MAILBOX is not set
>   # CONFIG_MMC is not set
>   # CONFIG_SPI_FLASH_SMART_HWCAPS is not set
>   # CONFIG_SPI_FLASH_UNLOCK_ALL is not set

Applied.
M


More information about the U-Boot mailing list