[PATCH] imx8: Run SPL with caches enabled

Igor Opaniuk
2020-04-29T15:36:55Z

Hi Fabio,

On Tue, Apr 21, 2020 at 6:02 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> It is safe to run SPL with caches enabled on i.MX8, so
> remove such restriction.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> configs/deneb_defconfig | 2 --
> configs/giedi_defconfig | 2 --
> configs/imx8mm_evk_defconfig | 2 --
> configs/imx8mn_ddr4_evk_defconfig | 2 --
> configs/imx8mp_evk_defconfig | 2 --
> configs/imx8mq_evk_defconfig | 2 --
> configs/imx8qm_mek_defconfig | 2 --
> configs/imx8qm_rom7720_a1_4G_defconfig | 2 --
> configs/verdin-imx8mm_defconfig | 2 --
> 9 files changed, 18 deletions(-)
>
> diff --git a/configs/deneb_defconfig b/configs/deneb_defconfig
> index 388330afc4..628b3516a8 100644
> --- a/configs/deneb_defconfig
> +++ b/configs/deneb_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8=y
> CONFIG_SYS_TEXT_BASE=0x80020000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/giedi_defconfig b/configs/giedi_defconfig
> index 957875f782..3cae981a61 100644
> --- a/configs/giedi_defconfig
> +++ b/configs/giedi_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8=y
> CONFIG_SYS_TEXT_BASE=0x80020000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig
> index 1403067130..78f3d60018 100644
> --- a/configs/imx8mm_evk_defconfig
> +++ b/configs/imx8mm_evk_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8M=y
> CONFIG_SYS_TEXT_BASE=0x40200000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/imx8mn_ddr4_evk_defconfig b/configs/imx8mn_ddr4_evk_defconfig
> index e3f99896a6..8cf43eb078 100644
> --- a/configs/imx8mn_ddr4_evk_defconfig
> +++ b/configs/imx8mn_ddr4_evk_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8M=y
> CONFIG_SYS_TEXT_BASE=0x40200000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/imx8mp_evk_defconfig b/configs/imx8mp_evk_defconfig
> index b181543df5..2b7f7a941a 100644
> --- a/configs/imx8mp_evk_defconfig
> +++ b/configs/imx8mp_evk_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8M=y
> CONFIG_SYS_TEXT_BASE=0x40200000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig
> index a936f5b79d..76f4d9206d 100644
> --- a/configs/imx8mq_evk_defconfig
> +++ b/configs/imx8mq_evk_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8M=y
> CONFIG_SYS_TEXT_BASE=0x40200000
> CONFIG_ENV_SIZE=0x1000
> diff --git a/configs/imx8qm_mek_defconfig b/configs/imx8qm_mek_defconfig
> index f7debfbe7b..428c7c47cd 100644
> --- a/configs/imx8qm_mek_defconfig
> +++ b/configs/imx8qm_mek_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8=y
> CONFIG_SYS_TEXT_BASE=0x80020000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/imx8qm_rom7720_a1_4G_defconfig b/configs/imx8qm_rom7720_a1_4G_defconfig
> index 301747a56c..35191447ae 100644
> --- a/configs/imx8qm_rom7720_a1_4G_defconfig
> +++ b/configs/imx8qm_rom7720_a1_4G_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8=y
> CONFIG_SYS_TEXT_BASE=0x80020000
> CONFIG_SPL_GPIO_SUPPORT=y
> diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig
> index a964e3ccfd..1dcd6180b9 100644
> --- a/configs/verdin-imx8mm_defconfig
> +++ b/configs/verdin-imx8mm_defconfig
> @@ -1,6 +1,4 @@
> CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
> CONFIG_ARCH_IMX8M=y
> CONFIG_SYS_TEXT_BASE=0x40200000
> CONFIG_SPL_GPIO_SUPPORT=y
> --
> 2.17.1
>

For Verdin board:
Tested-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Acked-by: Igor Opaniuk <igor.opaniuk@toradex.com>

--
Best regards - Freundliche Gr?sse - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk at gmail.com
skype: igor.opanyuk
+380 (93) 836 40 67