ARM: Move Footbridge-specific header into mach-footbridge
Subsystems (7)
PATCH 1/1 ARM: Move Footbridge-specific header into mach-footbridge
arch/arm/include/asm/hardware/dec21285.h is specific to the DC21285 Footbridge chip and should not be in the global ARM include directory. Move it into mach-footbridge where it belongs. It was included twice in arch/arm/mach-footbridge/common.c; remove one of the includes. Also remove the file path from the header (it is bad style and would become outdated) and add missing include guards.
Tested by compiling footbridge_defconfig and netwinder_defconfig, modified to additionally enable CONFIG_MTD_DC21285 and CONFIG_DEBUG_FOOTBRIDGE_COM1 or CONFIG_DEBUG_DC21285_PORT, respectively (these are the only Footbridge-related options not enabled by the defconfigs).
---
This patch depends on my previous patch "ARM: clean up machine-specific PCI code and move it into mach-footbridge" because it touches the same area of arch/arm/mach-footbridge/dc21285.c.
MAINTAINERS | 1 -
arch/arm/include/debug/dc21285.S | 2 +-
arch/arm/mach-footbridge/common.c | 3 +--
arch/arm/mach-footbridge/dc21285-timer.c | 2 +-
arch/arm/mach-footbridge/dc21285.c | 2 +-
arch/arm/mach-footbridge/dma-isa.c | 2 +-
arch/arm/mach-footbridge/ebsa285.c | 2 +-
.../hardware => mach-footbridge/include/mach}/dec21285.h | 8 +++++---
arch/arm/mach-footbridge/isa-irq.c | 2 +-
arch/arm/mach-footbridge/isa.c | 2 +-
arch/arm/mach-footbridge/netwinder-hw.c | 2 +-
drivers/char/nwflash.c | 2 +-
drivers/mtd/maps/dc21285.c | 2 +-
drivers/tty/serial/21285.c | 2 +-
drivers/watchdog/wdt285.c | 2 +-
15 files changed, 18 insertions(+), 18 deletions(-)
rename arch/arm/{include/asm/hardware => mach-footbridge/include/mach}/dec21285.h (98%)MAINTAINERS +0 -1
@@ -2811,7 +2811,6 @@ M: Russell King <[email protected]> L: [email protected] (moderated for non-subscribers) S: Maintained W: http://www.armlinux.org.uk/ -F: arch/arm/include/asm/hardware/dec21285.h F: arch/arm/mach-footbridge/ ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
arch/arm/include/debug/dc21285.S +1 -1
@@ -7,7 +7,7 @@ * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <mach/hardware.h> /* For EBSA285 debugging */
arch/arm/mach-footbridge/common.c +1 -2
@@ -20,7 +20,6 @@#include <asm/mach-types.h> #include <asm/setup.h> #include <asm/system_misc.h> -#include <asm/hardware/dec21285.h> #include <asm/mach/irq.h> #include <asm/mach/map.h>
@@ -30,7 +29,7 @@#include <mach/hardware.h> #include <mach/irqs.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> static int dc21285_get_irq (void ) {
arch/arm/mach-footbridge/dc21285-timer.c +1 -1
@@ -14,7 +14,7 @@#include <asm/irq.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/mach/time.h> #include <asm/system_info.h>
arch/arm/mach-footbridge/dc21285.c +1 -1
@@ -19,7 +19,7 @@#include <asm/irq.h> #include <asm/mach/pci.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include "pci.h"
arch/arm/mach-footbridge/dma-isa.c +1 -1
@@ -19,7 +19,7 @@#include <asm/dma.h> #include <asm/mach/dma.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #define ISA_DMA_MASK 0#define ISA_DMA_MODE 1
arch/arm/mach-footbridge/ebsa285.c +1 -1
@@ -10,7 +10,7 @@#include <linux/slab.h> #include <linux/leds.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-footbridge/include/mach/dec21285.h renamed from arch/arm/include/asm/hardware/dec21285.h +5 -3
@@ -1,11 +1,13 @@/* SPDX-License-Identifier: GPL-2.0-only */ /* -* arch/arm/include/asm/hardware/dec21285.h -* * Copyright (C) 1998 Russell King * * DC21285 registers */ + +#ifndef __MACH_DEC21285_H +#define __MACH_DEC21285_H +#define DC21285_PCI_IACK 0x79000000#define DC21285_ARMCSR_BASE 0x42000000#define DC21285_PCI_TYPE_0_CONFIG 0x7b000000
@@ -135,4 +137,4 @@#define TIMER_CNTL_DIV256 (2 << 2)#define TIMER_CNTL_CNTEXT (3 << 2) - +#endif /* __MACH_DEC21285_H */
arch/arm/mach-footbridge/isa-irq.c +1 -1
@@ -21,7 +21,7 @@#include <asm/mach/irq.h> #include <mach/hardware.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/irq.h> #include <asm/mach-types.h>
arch/arm/mach-footbridge/isa.c +1 -1
@@ -8,7 +8,7 @@#include <linux/serial_8250.h> #include <asm/irq.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include "common.h"
arch/arm/mach-footbridge/netwinder-hw.c +1 -1
@@ -16,7 +16,7 @@#include <linux/slab.h> #include <linux/leds.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/mach-types.h> #include <asm/setup.h> #include <asm/system_misc.h>
drivers/char/nwflash.c +1 -1
@@ -29,7 +29,7 @@#include <linux/mutex.h> #include <linux/jiffies.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/io.h> #include <asm/mach-types.h> #include <linux/uaccess.h>
drivers/mtd/maps/dc21285.c +1 -1
@@ -17,7 +17,7 @@#include <linux/mtd/partitions.h> #include <asm/io.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <asm/mach-types.h>
drivers/tty/serial/21285.c +1 -1
@@ -18,7 +18,7 @@#include <asm/irq.h> #include <asm/mach-types.h> #include <asm/system_info.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> #include <mach/hardware.h> #define BAUD_BASE (mem_fclk_21285/64)
drivers/watchdog/wdt285.c +1 -1
@@ -30,7 +30,7 @@#include <asm/mach-types.h> #include <asm/system_info.h> -#include <asm/hardware/dec21285.h> +#include <mach/dec21285.h> /* * Define this to stop the watchdog actually rebooting the machine.
Signature · 1 line
2.43.0