diff options
author | Tony Lindgren <tony@atomide.com> | 2012-10-31 17:02:46 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-31 18:37:14 -0400 |
commit | 21d182bd10ad16e904f3e4ba0ed51f00a19c0dda (patch) | |
tree | 8494eee38c9f8e584e8c8bd3f19e3d96beaaa207 /arch/arm/mach-omap1 | |
parent | 4e969010c55d72fbdc69333ce59392c7b530f6a3 (diff) |
ARM: OMAP: Fix relative includes for fpga.h
As discussed on linux-arm-kernel, we want to avoid
relative includes for the arch/arm/*omap* code:
http://www.spinics.net/lists/linux-omap/msg80520.html
Fix includes for fpga.h by making fpga.h local
to mach-omap1. The common code in plat-omap just
needs to know the struct h2p2_dbg_fpga, which can
be local to debug-leds.c.
This also fixes the braindead <../*.h> style includes
that got accidentally added with search and replace
during the cleanup.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/fpga.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/fpga.h | 52 |
5 files changed, 55 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 8b5800acf726..e067f221f0f9 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -30,13 +30,13 @@ | |||
30 | #include <mach/tc.h> | 30 | #include <mach/tc.h> |
31 | #include <mach/mux.h> | 31 | #include <mach/mux.h> |
32 | #include <mach/flash.h> | 32 | #include <mach/flash.h> |
33 | #include <../plat-omap/fpga.h> | ||
34 | #include <linux/platform_data/keypad-omap.h> | 33 | #include <linux/platform_data/keypad-omap.h> |
35 | 34 | ||
36 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
37 | 36 | ||
38 | #include "iomap.h" | 37 | #include "iomap.h" |
39 | #include "common.h" | 38 | #include "common.h" |
39 | #include "fpga.h" | ||
40 | 40 | ||
41 | /* fsample is pretty close to p2-sample */ | 41 | /* fsample is pretty close to p2-sample */ |
42 | 42 | ||
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index c66334f22471..f8033fab0f82 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -33,7 +33,6 @@ | |||
33 | 33 | ||
34 | #include <mach/mux.h> | 34 | #include <mach/mux.h> |
35 | #include <mach/flash.h> | 35 | #include <mach/flash.h> |
36 | #include <../plat-omap/fpga.h> | ||
37 | #include <mach/tc.h> | 36 | #include <mach/tc.h> |
38 | #include <linux/platform_data/keypad-omap.h> | 37 | #include <linux/platform_data/keypad-omap.h> |
39 | 38 | ||
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 030bd48727be..9a7e483ed6fd 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -30,13 +30,13 @@ | |||
30 | 30 | ||
31 | #include <mach/tc.h> | 31 | #include <mach/tc.h> |
32 | #include <mach/mux.h> | 32 | #include <mach/mux.h> |
33 | #include <../plat-omap/fpga.h> | ||
34 | #include <mach/flash.h> | 33 | #include <mach/flash.h> |
35 | 34 | ||
36 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
37 | 36 | ||
38 | #include "iomap.h" | 37 | #include "iomap.h" |
39 | #include "common.h" | 38 | #include "common.h" |
39 | #include "fpga.h" | ||
40 | 40 | ||
41 | static const unsigned int p2_keymap[] = { | 41 | static const unsigned int p2_keymap[] = { |
42 | KEY(0, 0, KEY_UP), | 42 | KEY(0, 0, KEY_UP), |
diff --git a/arch/arm/mach-omap1/fpga.c b/arch/arm/mach-omap1/fpga.c index d940fac9a9ed..8bd71b2d0967 100644 --- a/arch/arm/mach-omap1/fpga.c +++ b/arch/arm/mach-omap1/fpga.c | |||
@@ -27,12 +27,11 @@ | |||
27 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
28 | #include <asm/mach/irq.h> | 28 | #include <asm/mach/irq.h> |
29 | 29 | ||
30 | #include <../plat-omap/fpga.h> | ||
31 | |||
32 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
33 | 31 | ||
34 | #include "iomap.h" | 32 | #include "iomap.h" |
35 | #include "common.h" | 33 | #include "common.h" |
34 | #include "fpga.h" | ||
36 | 35 | ||
37 | static void fpga_mask_irq(struct irq_data *d) | 36 | static void fpga_mask_irq(struct irq_data *d) |
38 | { | 37 | { |
diff --git a/arch/arm/mach-omap1/fpga.h b/arch/arm/mach-omap1/fpga.h new file mode 100644 index 000000000000..4b4307a80e48 --- /dev/null +++ b/arch/arm/mach-omap1/fpga.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | * Interrupt handler for OMAP-1510 FPGA | ||
3 | * | ||
4 | * Copyright (C) 2001 RidgeRun, Inc. | ||
5 | * Author: Greg Lonnon <glonnon@ridgerun.com> | ||
6 | * | ||
7 | * Copyright (C) 2002 MontaVista Software, Inc. | ||
8 | * | ||
9 | * Separated FPGA interrupts from innovator1510.c and cleaned up for 2.6 | ||
10 | * Copyright (C) 2004 Nokia Corporation by Tony Lindrgen <tony@atomide.com> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #ifndef __ASM_ARCH_OMAP_FPGA_H | ||
18 | #define __ASM_ARCH_OMAP_FPGA_H | ||
19 | |||
20 | /* | ||
21 | * --------------------------------------------------------------------------- | ||
22 | * H2/P2 Debug board FPGA | ||
23 | * --------------------------------------------------------------------------- | ||
24 | */ | ||
25 | /* maps in the FPGA registers and the ETHR registers */ | ||
26 | #define H2P2_DBG_FPGA_BASE 0xE8000000 /* VA */ | ||
27 | #define H2P2_DBG_FPGA_SIZE SZ_4K /* SIZE */ | ||
28 | #define H2P2_DBG_FPGA_START 0x04000000 /* PA */ | ||
29 | |||
30 | #define H2P2_DBG_FPGA_ETHR_START (H2P2_DBG_FPGA_START + 0x300) | ||
31 | #define H2P2_DBG_FPGA_FPGA_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x10) /* FPGA Revision */ | ||
32 | #define H2P2_DBG_FPGA_BOARD_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x12) /* Board Revision */ | ||
33 | #define H2P2_DBG_FPGA_GPIO IOMEM(H2P2_DBG_FPGA_BASE + 0x14) /* GPIO outputs */ | ||
34 | #define H2P2_DBG_FPGA_LEDS IOMEM(H2P2_DBG_FPGA_BASE + 0x16) /* LEDs outputs */ | ||
35 | #define H2P2_DBG_FPGA_MISC_INPUTS IOMEM(H2P2_DBG_FPGA_BASE + 0x18) /* Misc inputs */ | ||
36 | #define H2P2_DBG_FPGA_LAN_STATUS IOMEM(H2P2_DBG_FPGA_BASE + 0x1A) /* LAN Status line */ | ||
37 | #define H2P2_DBG_FPGA_LAN_RESET IOMEM(H2P2_DBG_FPGA_BASE + 0x1C) /* LAN Reset line */ | ||
38 | |||
39 | /* LEDs definition on debug board (16 LEDs, all physically green) */ | ||
40 | #define H2P2_DBG_FPGA_LED_GREEN (1 << 15) | ||
41 | #define H2P2_DBG_FPGA_LED_AMBER (1 << 14) | ||
42 | #define H2P2_DBG_FPGA_LED_RED (1 << 13) | ||
43 | #define H2P2_DBG_FPGA_LED_BLUE (1 << 12) | ||
44 | /* cpu0 load-meter LEDs */ | ||
45 | #define H2P2_DBG_FPGA_LOAD_METER (1 << 0) // A bit of fun on our board ... | ||
46 | #define H2P2_DBG_FPGA_LOAD_METER_SIZE 11 | ||
47 | #define H2P2_DBG_FPGA_LOAD_METER_MASK ((1 << H2P2_DBG_FPGA_LOAD_METER_SIZE) - 1) | ||
48 | |||
49 | #define H2P2_DBG_FPGA_P2_LED_TIMER (1 << 0) | ||
50 | #define H2P2_DBG_FPGA_P2_LED_IDLE (1 << 1) | ||
51 | |||
52 | #endif | ||