summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-08-25 22:14:01 +0200
committerLinus Walleij <linus.walleij@linaro.org>2021-06-17 15:31:04 +0200
commit55712627bffd666c9f25eb23c15c55ec85e5a73f (patch)
tree723e2906bbd1596ecf72edf81d85a7b36d6651bf /include
parentsoc: ixp4xx: move cpu detection to linux/soc/ixp4xx/cpu.h (diff)
downloadlinux-55712627bffd666c9f25eb23c15c55ec85e5a73f.tar.xz
linux-55712627bffd666c9f25eb23c15c55ec85e5a73f.zip
pata: ixp4xx: split platform data to its own header
Portable drivers cannot use mach/platform.h, so move the structure into its own header. With this, compile testing can be enabled. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/pata_ixp4xx_cf.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/pata_ixp4xx_cf.h b/include/linux/platform_data/pata_ixp4xx_cf.h
new file mode 100644
index 000000000000..601ba97fef57
--- /dev/null
+++ b/include/linux/platform_data/pata_ixp4xx_cf.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __PLATFORM_DATA_PATA_IXP4XX_H
+#define __PLATFORM_DATA_PATA_IXP4XX_H
+
+#include <linux/types.h>
+
+/*
+ * This structure provide a means for the board setup code
+ * to give information to th pata_ixp4xx driver. It is
+ * passed as platform_data.
+ */
+struct ixp4xx_pata_data {
+ volatile u32 *cs0_cfg;
+ volatile u32 *cs1_cfg;
+ unsigned long cs0_bits;
+ unsigned long cs1_bits;
+ void __iomem *cs0;
+ void __iomem *cs1;
+};
+
+#endif