diff options
-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 (renamed from arch/arm/plat-omap/fpga.h) | 22 | ||||
-rw-r--r-- | arch/arm/plat-omap/debug-leds.c | 23 |
6 files changed, 23 insertions, 30 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/plat-omap/fpga.h b/arch/arm/mach-omap1/fpga.h index 54faaa93e6f4..4b4307a80e48 100644 --- a/arch/arm/plat-omap/fpga.h +++ b/arch/arm/mach-omap1/fpga.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-omap/include/mach/fpga.h | ||
3 | * | ||
4 | * Interrupt handler for OMAP-1510 FPGA | 2 | * Interrupt handler for OMAP-1510 FPGA |
5 | * | 3 | * |
6 | * Copyright (C) 2001 RidgeRun, Inc. | 4 | * Copyright (C) 2001 RidgeRun, Inc. |
@@ -38,26 +36,6 @@ | |||
38 | #define H2P2_DBG_FPGA_LAN_STATUS IOMEM(H2P2_DBG_FPGA_BASE + 0x1A) /* LAN Status line */ | 36 | #define H2P2_DBG_FPGA_LAN_STATUS IOMEM(H2P2_DBG_FPGA_BASE + 0x1A) /* LAN Status line */ |
39 | #define H2P2_DBG_FPGA_LAN_RESET IOMEM(H2P2_DBG_FPGA_BASE + 0x1C) /* LAN Reset line */ | 37 | #define H2P2_DBG_FPGA_LAN_RESET IOMEM(H2P2_DBG_FPGA_BASE + 0x1C) /* LAN Reset line */ |
40 | 38 | ||
41 | /* NOTE: most boards don't have a static mapping for the FPGA ... */ | ||
42 | struct h2p2_dbg_fpga { | ||
43 | /* offset 0x00 */ | ||
44 | u16 smc91x[8]; | ||
45 | /* offset 0x10 */ | ||
46 | u16 fpga_rev; | ||
47 | u16 board_rev; | ||
48 | u16 gpio_outputs; | ||
49 | u16 leds; | ||
50 | /* offset 0x18 */ | ||
51 | u16 misc_inputs; | ||
52 | u16 lan_status; | ||
53 | u16 lan_reset; | ||
54 | u16 reserved0; | ||
55 | /* offset 0x20 */ | ||
56 | u16 ps2_data; | ||
57 | u16 ps2_ctrl; | ||
58 | /* plus also 4 rs232 ports ... */ | ||
59 | }; | ||
60 | |||
61 | /* LEDs definition on debug board (16 LEDs, all physically green) */ | 39 | /* LEDs definition on debug board (16 LEDs, all physically green) */ |
62 | #define H2P2_DBG_FPGA_LED_GREEN (1 << 15) | 40 | #define H2P2_DBG_FPGA_LED_GREEN (1 << 15) |
63 | #define H2P2_DBG_FPGA_LED_AMBER (1 << 14) | 41 | #define H2P2_DBG_FPGA_LED_AMBER (1 << 14) |
diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c index feca128bc8ed..c43ea21f33b4 100644 --- a/arch/arm/plat-omap/debug-leds.c +++ b/arch/arm/plat-omap/debug-leds.c | |||
@@ -17,16 +17,33 @@ | |||
17 | #include <linux/platform_data/gpio-omap.h> | 17 | #include <linux/platform_data/gpio-omap.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | 19 | ||
20 | #include <mach/hardware.h> | ||
21 | #include <asm/mach-types.h> | 20 | #include <asm/mach-types.h> |
22 | 21 | ||
23 | #include "fpga.h" | ||
24 | |||
25 | /* Many OMAP development platforms reuse the same "debug board"; these | 22 | /* Many OMAP development platforms reuse the same "debug board"; these |
26 | * platforms include H2, H3, H4, and Perseus2. There are 16 LEDs on the | 23 | * platforms include H2, H3, H4, and Perseus2. There are 16 LEDs on the |
27 | * debug board (all green), accessed through FPGA registers. | 24 | * debug board (all green), accessed through FPGA registers. |
28 | */ | 25 | */ |
29 | 26 | ||
27 | /* NOTE: most boards don't have a static mapping for the FPGA ... */ | ||
28 | struct h2p2_dbg_fpga { | ||
29 | /* offset 0x00 */ | ||
30 | u16 smc91x[8]; | ||
31 | /* offset 0x10 */ | ||
32 | u16 fpga_rev; | ||
33 | u16 board_rev; | ||
34 | u16 gpio_outputs; | ||
35 | u16 leds; | ||
36 | /* offset 0x18 */ | ||
37 | u16 misc_inputs; | ||
38 | u16 lan_status; | ||
39 | u16 lan_reset; | ||
40 | u16 reserved0; | ||
41 | /* offset 0x20 */ | ||
42 | u16 ps2_data; | ||
43 | u16 ps2_ctrl; | ||
44 | /* plus also 4 rs232 ports ... */ | ||
45 | }; | ||
46 | |||
30 | static struct h2p2_dbg_fpga __iomem *fpga; | 47 | static struct h2p2_dbg_fpga __iomem *fpga; |
31 | 48 | ||
32 | static u16 fpga_led_state; | 49 | static u16 fpga_led_state; |