Add dedicated configuration headers which guard the flexspi_* options like it is done for the HABV4 configuration block to be more user-friendly. Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx> --- include/mach/imx/flexspi-imx8mm-cfg.h | 10 ++++++++++ include/mach/imx/flexspi-imx8mp-cfg.h | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 include/mach/imx/flexspi-imx8mm-cfg.h create mode 100644 include/mach/imx/flexspi-imx8mp-cfg.h diff --git a/include/mach/imx/flexspi-imx8mm-cfg.h b/include/mach/imx/flexspi-imx8mm-cfg.h new file mode 100644 index 000000000000..f7f0310a57f4 --- /dev/null +++ b/include/mach/imx/flexspi-imx8mm-cfg.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* + * This snippet can be included from a i.MX flash header configuration + * file for generating FlexSPI compatible images. + */ +#if defined(CONFIG_SPI_NXP_FLEXSPI) +flexspi_ivtofs 0x1000 +flexspi_fcfbofs 0x0 +#endif diff --git a/include/mach/imx/flexspi-imx8mp-cfg.h b/include/mach/imx/flexspi-imx8mp-cfg.h new file mode 100644 index 000000000000..bbc061241748 --- /dev/null +++ b/include/mach/imx/flexspi-imx8mp-cfg.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* + * This snippet can be included from a i.MX flash header configuration + * file for generating FlexSPI compatible images. + */ +#if defined(CONFIG_SPI_NXP_FLEXSPI) +flexspi_ivtofs 0x0 +flexspi_fcfbofs 0x400 +#endif -- 2.39.2