[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1585558875-7530-1-git-send-email-maobibo@loongson.cn>
Date: Mon, 30 Mar 2020 05:01:15 -0400
From: bibo mao <maobibo@...ngson.cn>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Huacai Chen <chenhc@...ote.com>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 38/39] MIPS: generic: Add header file path prefix
Add header files for mips generic platform, it is located at
arch/mips/generic/include/mach/
Signed-off-by: bibo mao <maobibo@...ngson.cn>
---
arch/mips/Kconfig | 1 +
arch/mips/generic/Platform | 2 +-
arch/mips/generic/include/mach/cpu-feature-overrides.h | 2 ++
arch/mips/generic/include/mach/floppy.h | 2 ++
arch/mips/generic/include/mach/ide.h | 2 ++
arch/mips/generic/include/mach/ioremap.h | 2 ++
arch/mips/generic/include/mach/irq.h | 2 ++
arch/mips/generic/include/mach/kernel-entry-init.h | 2 ++
arch/mips/generic/include/mach/kmalloc.h | 2 ++
arch/mips/generic/include/mach/mangle-port.h | 2 ++
arch/mips/generic/include/mach/mc146818rtc.h | 2 ++
arch/mips/generic/include/mach/spaces.h | 2 ++
arch/mips/generic/include/mach/topology.h | 2 ++
arch/mips/generic/include/mach/war.h | 2 ++
14 files changed, 26 insertions(+), 1 deletion(-)
create mode 100644 arch/mips/generic/include/mach/cpu-feature-overrides.h
create mode 100644 arch/mips/generic/include/mach/floppy.h
create mode 100644 arch/mips/generic/include/mach/ide.h
create mode 100644 arch/mips/generic/include/mach/ioremap.h
create mode 100644 arch/mips/generic/include/mach/irq.h
create mode 100644 arch/mips/generic/include/mach/kernel-entry-init.h
create mode 100644 arch/mips/generic/include/mach/kmalloc.h
create mode 100644 arch/mips/generic/include/mach/mangle-port.h
create mode 100644 arch/mips/generic/include/mach/mc146818rtc.h
create mode 100644 arch/mips/generic/include/mach/spaces.h
create mode 100644 arch/mips/generic/include/mach/topology.h
create mode 100644 arch/mips/generic/include/mach/war.h
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 898e875..3c85656 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -144,6 +144,7 @@ config MIPS_GENERIC
select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
select USE_OF
+ select HAVE_MACH_HEAD_FILES
help
Select this to build a kernel which aims to support multiple boards,
generally using a flattened device tree passed from the bootloader
diff --git a/arch/mips/generic/Platform b/arch/mips/generic/Platform
index eaa19d1..98308c9 100644
--- a/arch/mips/generic/Platform
+++ b/arch/mips/generic/Platform
@@ -9,7 +9,7 @@
#
platform-$(CONFIG_MIPS_GENERIC) += generic/
-cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/include/asm/mach-generic
+cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/generic/include
load-$(CONFIG_MIPS_GENERIC) += 0xffffffff80100000
all-$(CONFIG_MIPS_GENERIC) := vmlinux.gz.itb
diff --git a/arch/mips/generic/include/mach/cpu-feature-overrides.h b/arch/mips/generic/include/mach/cpu-feature-overrides.h
new file mode 100644
index 0000000..f3e0e12
--- /dev/null
+++ b/arch/mips/generic/include/mach/cpu-feature-overrides.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/cpu-feature-overrides.h>
diff --git a/arch/mips/generic/include/mach/floppy.h b/arch/mips/generic/include/mach/floppy.h
new file mode 100644
index 0000000..8e17183
--- /dev/null
+++ b/arch/mips/generic/include/mach/floppy.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/floppy.h>
diff --git a/arch/mips/generic/include/mach/ide.h b/arch/mips/generic/include/mach/ide.h
new file mode 100644
index 0000000..1251c0c
--- /dev/null
+++ b/arch/mips/generic/include/mach/ide.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ide.h>
diff --git a/arch/mips/generic/include/mach/ioremap.h b/arch/mips/generic/include/mach/ioremap.h
new file mode 100644
index 0000000..2369393
--- /dev/null
+++ b/arch/mips/generic/include/mach/ioremap.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ioremap.h>
diff --git a/arch/mips/generic/include/mach/irq.h b/arch/mips/generic/include/mach/irq.h
new file mode 100644
index 0000000..bb5ccce
--- /dev/null
+++ b/arch/mips/generic/include/mach/irq.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/irq.h>
diff --git a/arch/mips/generic/include/mach/kernel-entry-init.h b/arch/mips/generic/include/mach/kernel-entry-init.h
new file mode 100644
index 0000000..19b872be
--- /dev/null
+++ b/arch/mips/generic/include/mach/kernel-entry-init.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kernel-entry-init.h>
diff --git a/arch/mips/generic/include/mach/kmalloc.h b/arch/mips/generic/include/mach/kmalloc.h
new file mode 100644
index 0000000..4f056db
--- /dev/null
+++ b/arch/mips/generic/include/mach/kmalloc.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kmalloc.h>
diff --git a/arch/mips/generic/include/mach/mangle-port.h b/arch/mips/generic/include/mach/mangle-port.h
new file mode 100644
index 0000000..b9736e3
--- /dev/null
+++ b/arch/mips/generic/include/mach/mangle-port.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/mangle-port.h>
diff --git a/arch/mips/generic/include/mach/mc146818rtc.h b/arch/mips/generic/include/mach/mc146818rtc.h
new file mode 100644
index 0000000..7284af8
--- /dev/null
+++ b/arch/mips/generic/include/mach/mc146818rtc.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/mc146818rtc.h>
diff --git a/arch/mips/generic/include/mach/spaces.h b/arch/mips/generic/include/mach/spaces.h
new file mode 100644
index 0000000..39a4d72
--- /dev/null
+++ b/arch/mips/generic/include/mach/spaces.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/spaces.h>
diff --git a/arch/mips/generic/include/mach/topology.h b/arch/mips/generic/include/mach/topology.h
new file mode 100644
index 0000000..86e585b
--- /dev/null
+++ b/arch/mips/generic/include/mach/topology.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/topology.h>
diff --git a/arch/mips/generic/include/mach/war.h b/arch/mips/generic/include/mach/war.h
new file mode 100644
index 0000000..5b0422a
--- /dev/null
+++ b/arch/mips/generic/include/mach/war.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/war.h>
--
1.8.3.1
Powered by blists - more mailing lists