From b501fd7b1c0f10d3967d3abbd6c9d091b3384999 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 15 Apr 2014 20:38:32 +0200 Subject: ARM: mmp: make all header files local The mach/*.h headers are now inaccessible to any external code, so we can move them all into the mach-mmp directory itself and remove the subdirectories. A few headers are not used at all, so we remove them here. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mmp/addr-map.h | 44 +++ arch/arm/mach-mmp/aspenite.c | 8 +- arch/arm/mach-mmp/avengers_lite.c | 8 +- arch/arm/mach-mmp/brownstone.c | 8 +- arch/arm/mach-mmp/clock-mmp2.c | 2 +- arch/arm/mach-mmp/clock-pxa168.c | 2 +- arch/arm/mach-mmp/clock-pxa910.c | 2 +- arch/arm/mach-mmp/clock.c | 2 +- arch/arm/mach-mmp/clock.h | 2 - arch/arm/mach-mmp/common.c | 4 +- arch/arm/mach-mmp/cputype.h | 55 ++++ arch/arm/mach-mmp/devices.c | 8 +- arch/arm/mach-mmp/devices.h | 56 ++++ arch/arm/mach-mmp/flint.c | 8 +- arch/arm/mach-mmp/gplugd.c | 6 +- arch/arm/mach-mmp/include/mach/addr-map.h | 46 ---- arch/arm/mach-mmp/include/mach/cputype.h | 55 ---- arch/arm/mach-mmp/include/mach/devices.h | 56 ---- arch/arm/mach-mmp/include/mach/hardware.h | 4 - arch/arm/mach-mmp/include/mach/irqs.h | 239 ---------------- arch/arm/mach-mmp/include/mach/mfp-mmp2.h | 395 --------------------------- arch/arm/mach-mmp/include/mach/mfp-pxa168.h | 354 ------------------------ arch/arm/mach-mmp/include/mach/mfp-pxa910.h | 169 ------------ arch/arm/mach-mmp/include/mach/mfp.h | 34 --- arch/arm/mach-mmp/include/mach/mmp2.h | 102 ------- arch/arm/mach-mmp/include/mach/pm-mmp2.h | 61 ----- arch/arm/mach-mmp/include/mach/pm-pxa910.h | 77 ------ arch/arm/mach-mmp/include/mach/pxa168.h | 137 ---------- arch/arm/mach-mmp/include/mach/pxa910.h | 87 ------ arch/arm/mach-mmp/include/mach/regs-apbc.h | 24 -- arch/arm/mach-mmp/include/mach/regs-apmu.h | 33 --- arch/arm/mach-mmp/include/mach/regs-icu.h | 71 ----- arch/arm/mach-mmp/include/mach/regs-smc.h | 37 --- arch/arm/mach-mmp/include/mach/regs-timers.h | 44 --- arch/arm/mach-mmp/include/mach/regs-usb.h | 253 ----------------- arch/arm/mach-mmp/include/mach/teton_bga.h | 27 -- arch/arm/mach-mmp/irqs.h | 239 ++++++++++++++++ arch/arm/mach-mmp/jasper.c | 8 +- arch/arm/mach-mmp/mfp-mmp2.h | 395 +++++++++++++++++++++++++++ arch/arm/mach-mmp/mfp-pxa168.h | 354 ++++++++++++++++++++++++ arch/arm/mach-mmp/mfp-pxa910.h | 169 ++++++++++++ arch/arm/mach-mmp/mfp.h | 34 +++ arch/arm/mach-mmp/mmp2.c | 16 +- arch/arm/mach-mmp/mmp2.h | 103 +++++++ arch/arm/mach-mmp/pm-mmp2.c | 12 +- arch/arm/mach-mmp/pm-mmp2.h | 61 +++++ arch/arm/mach-mmp/pm-pxa910.c | 12 +- arch/arm/mach-mmp/pm-pxa910.h | 77 ++++++ arch/arm/mach-mmp/pxa168.c | 22 +- arch/arm/mach-mmp/pxa168.h | 138 ++++++++++ arch/arm/mach-mmp/pxa910.c | 16 +- arch/arm/mach-mmp/pxa910.h | 88 ++++++ arch/arm/mach-mmp/regs-apbc.h | 22 ++ arch/arm/mach-mmp/regs-apmu.h | 31 +++ arch/arm/mach-mmp/regs-icu.h | 69 +++++ arch/arm/mach-mmp/regs-timers.h | 42 +++ arch/arm/mach-mmp/regs-usb.h | 253 +++++++++++++++++ arch/arm/mach-mmp/tavorevb.c | 8 +- arch/arm/mach-mmp/teton_bga.c | 10 +- arch/arm/mach-mmp/teton_bga.h | 25 ++ arch/arm/mach-mmp/time.c | 11 +- arch/arm/mach-mmp/ttc_dkb.c | 10 +- 62 files changed, 2346 insertions(+), 2399 deletions(-) create mode 100644 arch/arm/mach-mmp/addr-map.h create mode 100644 arch/arm/mach-mmp/cputype.h create mode 100644 arch/arm/mach-mmp/devices.h delete mode 100644 arch/arm/mach-mmp/include/mach/addr-map.h delete mode 100644 arch/arm/mach-mmp/include/mach/cputype.h delete mode 100644 arch/arm/mach-mmp/include/mach/devices.h delete mode 100644 arch/arm/mach-mmp/include/mach/hardware.h delete mode 100644 arch/arm/mach-mmp/include/mach/irqs.h delete mode 100644 arch/arm/mach-mmp/include/mach/mfp-mmp2.h delete mode 100644 arch/arm/mach-mmp/include/mach/mfp-pxa168.h delete mode 100644 arch/arm/mach-mmp/include/mach/mfp-pxa910.h delete mode 100644 arch/arm/mach-mmp/include/mach/mfp.h delete mode 100644 arch/arm/mach-mmp/include/mach/mmp2.h delete mode 100644 arch/arm/mach-mmp/include/mach/pm-mmp2.h delete mode 100644 arch/arm/mach-mmp/include/mach/pm-pxa910.h delete mode 100644 arch/arm/mach-mmp/include/mach/pxa168.h delete mode 100644 arch/arm/mach-mmp/include/mach/pxa910.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-apbc.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-apmu.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-icu.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-smc.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-timers.h delete mode 100644 arch/arm/mach-mmp/include/mach/regs-usb.h delete mode 100644 arch/arm/mach-mmp/include/mach/teton_bga.h create mode 100644 arch/arm/mach-mmp/irqs.h create mode 100644 arch/arm/mach-mmp/mfp-mmp2.h create mode 100644 arch/arm/mach-mmp/mfp-pxa168.h create mode 100644 arch/arm/mach-mmp/mfp-pxa910.h create mode 100644 arch/arm/mach-mmp/mfp.h create mode 100644 arch/arm/mach-mmp/mmp2.h create mode 100644 arch/arm/mach-mmp/pm-mmp2.h create mode 100644 arch/arm/mach-mmp/pm-pxa910.h create mode 100644 arch/arm/mach-mmp/pxa168.h create mode 100644 arch/arm/mach-mmp/pxa910.h create mode 100644 arch/arm/mach-mmp/regs-apbc.h create mode 100644 arch/arm/mach-mmp/regs-apmu.h create mode 100644 arch/arm/mach-mmp/regs-icu.h create mode 100644 arch/arm/mach-mmp/regs-timers.h create mode 100644 arch/arm/mach-mmp/regs-usb.h create mode 100644 arch/arm/mach-mmp/teton_bga.h (limited to 'arch/arm') diff --git a/arch/arm/mach-mmp/addr-map.h b/arch/arm/mach-mmp/addr-map.h new file mode 100644 index 000000000000..2739d27bc89d --- /dev/null +++ b/arch/arm/mach-mmp/addr-map.h @@ -0,0 +1,44 @@ +/* + * Common address map definitions + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __ASM_MACH_ADDR_MAP_H +#define __ASM_MACH_ADDR_MAP_H + +/* APB - Application Subsystem Peripheral Bus + * + * NOTE: the DMA controller registers are actually on the AXI fabric #1 + * slave port to AHB/APB bridge, due to its close relationship to those + * peripherals on APB, let's count it into the ABP mapping area. + */ +#define APB_PHYS_BASE 0xd4000000 +#define APB_VIRT_BASE IOMEM(0xfe000000) +#define APB_PHYS_SIZE 0x00200000 + +#define AXI_PHYS_BASE 0xd4200000 +#define AXI_VIRT_BASE IOMEM(0xfe200000) +#define AXI_PHYS_SIZE 0x00200000 + +/* Static Memory Controller - Chip Select 0 and 1 */ +#define SMC_CS0_PHYS_BASE 0x80000000 +#define SMC_CS0_PHYS_SIZE 0x10000000 +#define SMC_CS1_PHYS_BASE 0x90000000 +#define SMC_CS1_PHYS_SIZE 0x10000000 + +#define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800) +#define APMU_REG(x) (APMU_VIRT_BASE + (x)) + +#define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000) +#define APBC_REG(x) (APBC_VIRT_BASE + (x)) + +#define MPMU_VIRT_BASE (APB_VIRT_BASE + 0x50000) +#define MPMU_REG(x) (MPMU_VIRT_BASE + (x)) + +#define CIU_VIRT_BASE (AXI_VIRT_BASE + 0x82c00) +#define CIU_REG(x) (CIU_VIRT_BASE + (x)) + +#endif /* __ASM_MACH_ADDR_MAP_H */ diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 7e0248582efd..5db0edf716dd 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch/arm/mach-mmp/aspenite.c @@ -22,14 +22,14 @@ #include #include -#include -#include -#include -#include #include