There are no external users (last one was PCI driver) for these headers,
so move them to arch directory. Few macroses from ar231x.h header moved
to devices.h and file was removed.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44724
+
+#endif /* __ASM_MACH_ATH25_WAR_H */
--- /dev/null
+
+#endif /* __ASM_MACH_ATH25_WAR_H */
--- /dev/null
-+++ b/arch/mips/include/asm/mach-ath25/ar2315_regs.h
++++ b/arch/mips/ath25/ar2315_regs.h
@@ -0,0 +1,480 @@
+/*
+ * Register definitions for AR2315+
@@ -0,0 +1,480 @@
+/*
+ * Register definitions for AR2315+
+
+#endif /* __ASM_MACH_ATH25_AR2315_REGS_H */
--- /dev/null
+
+#endif /* __ASM_MACH_ATH25_AR2315_REGS_H */
--- /dev/null
-+++ b/arch/mips/include/asm/mach-ath25/ar5312_regs.h
++++ b/arch/mips/ath25/ar5312_regs.h
@@ -0,0 +1,227 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
@@ -0,0 +1,227 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+#include <linux/io.h>
+
+#include <ath25_platform.h>
+#include <linux/io.h>
+
+#include <ath25_platform.h>
-+#include <ar5312_regs.h>
-+#include <ar231x.h>
+#include "devices.h"
+#include "ar5312.h"
+#include "devices.h"
+#include "ar5312.h"
++#include "ar5312_regs.h"
+
+static void __iomem *ar5312_rst_base;
+
+
+static void __iomem *ar5312_rst_base;
+
+#include <linux/io.h>
+
+#include <ath25_platform.h>
+#include <linux/io.h>
+
+#include <ath25_platform.h>
-+#include <ar2315_regs.h>
-+#include <ar231x.h>
+#include "devices.h"
+#include "ar2315.h"
+#include "devices.h"
+#include "ar2315.h"
++#include "ar2315_regs.h"
+
+static void __iomem *ar2315_rst_base;
+
+
+static void __iomem *ar2315_rst_base;
+
-+++ b/arch/mips/include/asm/mach-ath25/ar231x.h
-@@ -0,0 +1,13 @@
-+#ifndef __ASM_MACH_ATH25_AR231X_H
-+#define __ASM_MACH_ATH25_AR231X_H
-+
-+#include <linux/types.h>
-+#include <linux/io.h>
++++ b/arch/mips/ath25/devices.h
+@@ -0,0 +1,44 @@
++#ifndef __ATH25_DEVICES_H
++#define __ATH25_DEVICES_H
+
+#define AR231X_MISC_IRQ_BASE 0x20
+#define AR231X_GPIO_IRQ_BASE 0x30
+
+
+#define AR231X_MISC_IRQ_BASE 0x20
+#define AR231X_GPIO_IRQ_BASE 0x30
+
-+/* Software's idea of interrupts handled by "CPU Interrupt Controller" */
-+#define AR231X_IRQ_CPU_CLOCK (MIPS_CPU_IRQ_BASE+7) /* C0_CAUSE: 0x8000 */
-+
-+#endif /* __ASM_MACH_ATH25_AR231X_H */
---- /dev/null
-+++ b/arch/mips/ath25/devices.h
-@@ -0,0 +1,39 @@
-+#ifndef __ATH25_DEVICES_H
-+#define __ATH25_DEVICES_H
++#define AR231X_IRQ_CPU_CLOCK (MIPS_CPU_IRQ_BASE + 7) /* C0_CAUSE: 0x8000 */
+
+enum ath25_soc_type {
+ /* handled by ar5312.c */
+
+enum ath25_soc_type {
+ /* handled by ar5312.c */
+#endif
--- /dev/null
+++ b/arch/mips/ath25/devices.c
+#endif
--- /dev/null
+++ b/arch/mips/ath25/devices.c
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/serial.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/serial.h>
+#include <asm/bootinfo.h>
+
+#include <ath25_platform.h>
+#include <asm/bootinfo.h>
+
+#include <ath25_platform.h>
+#include "devices.h"
+#include "ar5312.h"
+#include "ar2315.h"
+#include "devices.h"
+#include "ar5312.h"
+#include "ar2315.h"
+#include <linux/serial_reg.h>
+#include <asm/addrspace.h>
+
+#include <linux/serial_reg.h>
+#include <asm/addrspace.h>
+
-+#include <asm/mach-ath25/ar2315_regs.h>
-+#include <asm/mach-ath25/ar5312_regs.h>
++#include "ar2315_regs.h"
++#include "ar5312_regs.h"
+
+static inline void prom_uart_wr(void __iomem *base, unsigned reg,
+ unsigned char ch)
+
+static inline void prom_uart_wr(void __iomem *base, unsigned reg,
+ unsigned char ch)
--- /dev/null
+++ b/arch/mips/ath25/reset.c
--- /dev/null
+++ b/arch/mips/ath25/reset.c
+#include <linux/init.h>
+#include <linux/slab.h>
+#include <linux/platform_device.h>
+#include <linux/gpio_keys.h>
+#include <linux/input.h>
+#include <ath25_platform.h>
+#include <linux/init.h>
+#include <linux/slab.h>
+#include <linux/platform_device.h>
+#include <linux/gpio_keys.h>
+#include <linux/input.h>
+#include <ath25_platform.h>
+#include "devices.h"
+
+static int __init
+#include "devices.h"
+
+static int __init