ARM: ep93xx: make mach/ep93xx-regs.h local
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Sep 2019 08:18:31 +0000 (10:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 4 Apr 2022 08:22:37 +0000 (10:22 +0200)
Nothing relies on it outside of arch/arm/mach-ep93xx/, so just move
it there.

Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-ep93xx/ep93xx-regs.h [new file with mode: 0644]
arch/arm/mach-ep93xx/gpio-ep93xx.h
arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h [deleted file]
arch/arm/mach-ep93xx/include/mach/uncompress.h
arch/arm/mach-ep93xx/soc.h

diff --git a/arch/arm/mach-ep93xx/ep93xx-regs.h b/arch/arm/mach-ep93xx/ep93xx-regs.h
new file mode 100644 (file)
index 0000000..8fa3646
--- /dev/null
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_ARCH_EP93XX_REGS_H
+#define __ASM_ARCH_EP93XX_REGS_H
+
+/*
+ * EP93xx linux memory map:
+ *
+ * virt                phys            size
+ * fe800000                    5M              per-platform mappings
+ * fed00000    80800000        2M              APB
+ * fef00000    80000000        1M              AHB
+ */
+
+#define EP93XX_AHB_PHYS_BASE           0x80000000
+#define EP93XX_AHB_VIRT_BASE           0xfef00000
+#define EP93XX_AHB_SIZE                        0x00100000
+
+#define EP93XX_AHB_PHYS(x)             (EP93XX_AHB_PHYS_BASE + (x))
+#define EP93XX_AHB_IOMEM(x)            IOMEM(EP93XX_AHB_VIRT_BASE + (x))
+
+#define EP93XX_APB_PHYS_BASE           0x80800000
+#define EP93XX_APB_VIRT_BASE           0xfed00000
+#define EP93XX_APB_SIZE                        0x00200000
+
+#define EP93XX_APB_PHYS(x)             (EP93XX_APB_PHYS_BASE + (x))
+#define EP93XX_APB_IOMEM(x)            IOMEM(EP93XX_APB_VIRT_BASE + (x))
+
+/* APB UARTs */
+#define EP93XX_UART1_PHYS_BASE         EP93XX_APB_PHYS(0x000c0000)
+#define EP93XX_UART1_BASE              EP93XX_APB_IOMEM(0x000c0000)
+
+#define EP93XX_UART2_PHYS_BASE         EP93XX_APB_PHYS(0x000d0000)
+#define EP93XX_UART2_BASE              EP93XX_APB_IOMEM(0x000d0000)
+
+#define EP93XX_UART3_PHYS_BASE         EP93XX_APB_PHYS(0x000e0000)
+#define EP93XX_UART3_BASE              EP93XX_APB_IOMEM(0x000e0000)
+
+#endif
index 242af4a401ea34ba074e1c0b018f7eb530ae92b8..7b46eb7e5507273ceed64c18fa7afc2f714e6e0d 100644 (file)
@@ -4,7 +4,7 @@
 #ifndef __GPIO_EP93XX_H
 #define __GPIO_EP93XX_H
 
-#include <mach/ep93xx-regs.h>
+#include "ep93xx-regs.h"
 
 #define EP93XX_GPIO_PHYS_BASE          EP93XX_APB_PHYS(0x00040000)
 #define EP93XX_GPIO_BASE               EP93XX_APB_IOMEM(0x00040000)
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
deleted file mode 100644 (file)
index 6839ea0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
- */
-
-#ifndef __ASM_ARCH_EP93XX_REGS_H
-#define __ASM_ARCH_EP93XX_REGS_H
-
-/*
- * EP93xx linux memory map:
- *
- * virt                phys            size
- * fe800000                    5M              per-platform mappings
- * fed00000    80800000        2M              APB
- * fef00000    80000000        1M              AHB
- */
-
-#define EP93XX_AHB_PHYS_BASE           0x80000000
-#define EP93XX_AHB_VIRT_BASE           0xfef00000
-#define EP93XX_AHB_SIZE                        0x00100000
-
-#define EP93XX_AHB_PHYS(x)             (EP93XX_AHB_PHYS_BASE + (x))
-#define EP93XX_AHB_IOMEM(x)            IOMEM(EP93XX_AHB_VIRT_BASE + (x))
-
-#define EP93XX_APB_PHYS_BASE           0x80800000
-#define EP93XX_APB_VIRT_BASE           0xfed00000
-#define EP93XX_APB_SIZE                        0x00200000
-
-#define EP93XX_APB_PHYS(x)             (EP93XX_APB_PHYS_BASE + (x))
-#define EP93XX_APB_IOMEM(x)            IOMEM(EP93XX_APB_VIRT_BASE + (x))
-
-/* APB UARTs */
-#define EP93XX_UART1_PHYS_BASE         EP93XX_APB_PHYS(0x000c0000)
-#define EP93XX_UART1_BASE              EP93XX_APB_IOMEM(0x000c0000)
-
-#define EP93XX_UART2_PHYS_BASE         EP93XX_APB_PHYS(0x000d0000)
-#define EP93XX_UART2_BASE              EP93XX_APB_IOMEM(0x000d0000)
-
-#define EP93XX_UART3_PHYS_BASE         EP93XX_APB_PHYS(0x000e0000)
-#define EP93XX_UART3_BASE              EP93XX_APB_IOMEM(0x000e0000)
-
-#endif
index b3ec1db988db1a784abf6eb33b808c34a5974663..e20bcab702b252df17087a70e87a4f30c4ce84f0 100644 (file)
@@ -5,7 +5,6 @@
  * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org>
  */
 
-#include <mach/ep93xx-regs.h>
 #include <asm/mach-types.h>
 
 static unsigned char __raw_readb(unsigned int ptr)
index f0986e288d19bc1274282c4a967865f23524e854..3245ebbd506984249a5fc1c6763b884b6a128607 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef _EP93XX_SOC_H
 #define _EP93XX_SOC_H
 
-#include <mach/ep93xx-regs.h>
+#include "ep93xx-regs.h"
 #include "irqs.h"
 
 /*