[PATCH 11/26] ARM: i.MX8M: add flexspi-imx8m{m,p}-cfg.h header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux