aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:11 +0000
commit6b041d0b1df171a3bb9266b34d7687c951f55e24 (patch)
treed5374bcae1691e9fcc85b2cbcb5591ff38c1e366 /target/linux/atheros
parent892ef42a7701a50dd05168575f6b13650a1bc9a1 (diff)
downloadupstream-6b041d0b1df171a3bb9266b34d7687c951f55e24.tar.gz
upstream-6b041d0b1df171a3bb9266b34d7687c951f55e24.tar.bz2
upstream-6b041d0b1df171a3bb9266b34d7687c951f55e24.zip
atheros: v3.18: make registers headers local
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
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/patches-3.18/100-board.patch36
-rw-r--r--target/linux/atheros/patches-3.18/101-early-printk-support.patch4
-rw-r--r--target/linux/atheros/patches-3.18/210-reset_button.patch3
3 files changed, 15 insertions, 28 deletions
diff --git a/target/linux/atheros/patches-3.18/100-board.patch b/target/linux/atheros/patches-3.18/100-board.patch
index afb8217018..c0e935e5d8 100644
--- a/target/linux/atheros/patches-3.18/100-board.patch
+++ b/target/linux/atheros/patches-3.18/100-board.patch
@@ -628,7 +628,7 @@
+
+#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+
@@ -1111,7 +1111,7 @@
+
+#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
@@ -1377,10 +1377,10 @@
+#include <linux/io.h>
+
+#include <ath25_platform.h>
-+#include <ar5312_regs.h>
-+#include <ar231x.h>
++
+#include "devices.h"
+#include "ar5312.h"
++#include "ar5312_regs.h"
+
+static void __iomem *ar5312_rst_base;
+
@@ -1863,10 +1863,10 @@
+#include <linux/io.h>
+
+#include <ath25_platform.h>
-+#include <ar2315_regs.h>
-+#include <ar231x.h>
++
+#include "devices.h"
+#include "ar2315.h"
++#include "ar2315_regs.h"
+
+static void __iomem *ar2315_rst_base;
+
@@ -2336,26 +2336,15 @@
+
+#endif
--- /dev/null
-+++ 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
+
-+/* 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 */
@@ -2395,7 +2384,7 @@
+#endif
--- /dev/null
+++ b/arch/mips/ath25/devices.c
-@@ -0,0 +1,192 @@
+@@ -0,0 +1,191 @@
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/serial.h>
@@ -2405,7 +2394,6 @@
+#include <asm/bootinfo.h>
+
+#include <ath25_platform.h>
-+#include <ar231x.h>
+#include "devices.h"
+#include "ar5312.h"
+#include "ar2315.h"
diff --git a/target/linux/atheros/patches-3.18/101-early-printk-support.patch b/target/linux/atheros/patches-3.18/101-early-printk-support.patch
index 367069d3e9..5fb510d3ce 100644
--- a/target/linux/atheros/patches-3.18/101-early-printk-support.patch
+++ b/target/linux/atheros/patches-3.18/101-early-printk-support.patch
@@ -14,9 +14,9 @@
+#include <linux/serial_reg.h>
+#include <asm/addrspace.h>
+
-+#include <asm/mach-ath25/ar2315_regs.h>
-+#include <asm/mach-ath25/ar5312_regs.h>
+#include "devices.h"
++#include "ar2315_regs.h"
++#include "ar5312_regs.h"
+
+static inline void prom_uart_wr(void __iomem *base, unsigned reg,
+ unsigned char ch)
diff --git a/target/linux/atheros/patches-3.18/210-reset_button.patch b/target/linux/atheros/patches-3.18/210-reset_button.patch
index 0f7315befb..34ef46bc52 100644
--- a/target/linux/atheros/patches-3.18/210-reset_button.patch
+++ b/target/linux/atheros/patches-3.18/210-reset_button.patch
@@ -11,14 +11,13 @@
--- /dev/null
+++ b/arch/mips/ath25/reset.c
-@@ -0,0 +1,58 @@
+@@ -0,0 +1,57 @@
+#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 <ar231x.h>
+#include "devices.h"
+
+static int __init