diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-07-24 16:54:31 -0400 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2013-08-06 14:18:02 -0400 |
commit | ebea60bee85fc043b02fd3438c381c28085eed69 (patch) | |
tree | e3ce4d7e2bd77b1e0d3edd146b36e3eda3cafe98 /arch | |
parent | c602520ff8da605becd62c25e271210b336d8eca (diff) |
ARM: msm: Move mach/board.h contents to common.h
The contents of mach/board.h are only used by files within
mach-msm so there is no need to export this file outside of the
mach-msm directory. Move the contents of the file to common.h to
allow us to compile MSM in the multi-platform kernel.
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-msm/board-dt-8660.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-halibut.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-mahimahi.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-msm7x30.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-qsd8x50.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-sapphire.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-trout.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-trout.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-msm/common.h | 15 | ||||
-rw-r--r-- | arch/arm/mach-msm/devices-msm7x30.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-msm/devices-qsd8x50.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-msm/include/mach/board.h | 38 | ||||
-rw-r--r-- | arch/arm/mach-msm/io.c | 3 |
13 files changed, 21 insertions, 50 deletions
diff --git a/arch/arm/mach-msm/board-dt-8660.c b/arch/arm/mach-msm/board-dt-8660.c index 95f9cae43ce8..c2946892f5e3 100644 --- a/arch/arm/mach-msm/board-dt-8660.c +++ b/arch/arm/mach-msm/board-dt-8660.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
18 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
19 | 19 | ||
20 | #include <mach/board.h> | ||
21 | #include "common.h" | 20 | #include "common.h" |
22 | 21 | ||
23 | static void __init msm8x60_init_late(void) | 22 | static void __init msm8x60_init_late(void) |
diff --git a/arch/arm/mach-msm/board-halibut.c b/arch/arm/mach-msm/board-halibut.c index 803651ad4f62..a77529887cbc 100644 --- a/arch/arm/mach-msm/board-halibut.c +++ b/arch/arm/mach-msm/board-halibut.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
30 | 30 | ||
31 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
32 | #include <mach/board.h> | ||
33 | #include <mach/msm_iomap.h> | 32 | #include <mach/msm_iomap.h> |
34 | 33 | ||
35 | #include <linux/mtd/nand.h> | 34 | #include <linux/mtd/nand.h> |
diff --git a/arch/arm/mach-msm/board-mahimahi.c b/arch/arm/mach-msm/board-mahimahi.c index 30c3496db593..7d9981cb400e 100644 --- a/arch/arm/mach-msm/board-mahimahi.c +++ b/arch/arm/mach-msm/board-mahimahi.c | |||
@@ -28,12 +28,12 @@ | |||
28 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
29 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
30 | 30 | ||
31 | #include <mach/board.h> | ||
32 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
33 | 32 | ||
34 | #include "board-mahimahi.h" | 33 | #include "board-mahimahi.h" |
35 | #include "devices.h" | 34 | #include "devices.h" |
36 | #include "proc_comm.h" | 35 | #include "proc_comm.h" |
36 | #include "common.h" | ||
37 | 37 | ||
38 | static uint debug_uart; | 38 | static uint debug_uart; |
39 | 39 | ||
diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c index db3d8c0bc8a4..f9af5a46e8b6 100644 --- a/arch/arm/mach-msm/board-msm7x30.c +++ b/arch/arm/mach-msm/board-msm7x30.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <asm/memory.h> | 30 | #include <asm/memory.h> |
31 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
32 | 32 | ||
33 | #include <mach/board.h> | ||
34 | #include <mach/msm_iomap.h> | 33 | #include <mach/msm_iomap.h> |
35 | #include <mach/dma.h> | 34 | #include <mach/dma.h> |
36 | 35 | ||
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c index f14a73d86bc0..5f933bc50783 100644 --- a/arch/arm/mach-msm/board-qsd8x50.c +++ b/arch/arm/mach-msm/board-qsd8x50.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <asm/io.h> | 28 | #include <asm/io.h> |
29 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
30 | 30 | ||
31 | #include <mach/board.h> | ||
32 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
33 | #include <mach/sirc.h> | 32 | #include <mach/sirc.h> |
34 | #include <mach/vreg.h> | 33 | #include <mach/vreg.h> |
diff --git a/arch/arm/mach-msm/board-sapphire.c b/arch/arm/mach-msm/board-sapphire.c index 70730111b37c..327605174d63 100644 --- a/arch/arm/mach-msm/board-sapphire.c +++ b/arch/arm/mach-msm/board-sapphire.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
29 | #include <asm/mach/flash.h> | 29 | #include <asm/mach/flash.h> |
30 | #include <mach/vreg.h> | 30 | #include <mach/vreg.h> |
31 | #include <mach/board.h> | ||
32 | 31 | ||
33 | #include <asm/io.h> | 32 | #include <asm/io.h> |
34 | #include <asm/delay.h> | 33 | #include <asm/delay.h> |
@@ -41,6 +40,7 @@ | |||
41 | #include "board-sapphire.h" | 40 | #include "board-sapphire.h" |
42 | #include "proc_comm.h" | 41 | #include "proc_comm.h" |
43 | #include "devices.h" | 42 | #include "devices.h" |
43 | #include "common.h" | ||
44 | 44 | ||
45 | void msm_init_irq(void); | 45 | void msm_init_irq(void); |
46 | void msm_init_gpio(void); | 46 | void msm_init_gpio(void); |
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c index 64a46eb4fc49..ccf6621bc664 100644 --- a/arch/arm/mach-msm/board-trout.c +++ b/arch/arm/mach-msm/board-trout.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | #include <asm/setup.h> | 26 | #include <asm/setup.h> |
27 | 27 | ||
28 | #include <mach/board.h> | ||
29 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
30 | #include <mach/msm_iomap.h> | 29 | #include <mach/msm_iomap.h> |
31 | 30 | ||
diff --git a/arch/arm/mach-msm/board-trout.h b/arch/arm/mach-msm/board-trout.h index 651851c3e1dd..b2379ede43bc 100644 --- a/arch/arm/mach-msm/board-trout.h +++ b/arch/arm/mach-msm/board-trout.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #ifndef __ARCH_ARM_MACH_MSM_BOARD_TROUT_H | 4 | #ifndef __ARCH_ARM_MACH_MSM_BOARD_TROUT_H |
5 | #define __ARCH_ARM_MACH_MSM_BOARD_TROUT_H | 5 | #define __ARCH_ARM_MACH_MSM_BOARD_TROUT_H |
6 | 6 | ||
7 | #include <mach/board.h> | 7 | #include "common.h" |
8 | 8 | ||
9 | #define MSM_SMI_BASE 0x00000000 | 9 | #define MSM_SMI_BASE 0x00000000 |
10 | #define MSM_SMI_SIZE 0x00800000 | 10 | #define MSM_SMI_SIZE 0x00800000 |
diff --git a/arch/arm/mach-msm/common.h b/arch/arm/mach-msm/common.h index 20ebf8727930..33c7725adae2 100644 --- a/arch/arm/mach-msm/common.h +++ b/arch/arm/mach-msm/common.h | |||
@@ -26,4 +26,19 @@ extern void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size, | |||
26 | extern struct smp_operations msm_smp_ops; | 26 | extern struct smp_operations msm_smp_ops; |
27 | extern void msm_cpu_die(unsigned int cpu); | 27 | extern void msm_cpu_die(unsigned int cpu); |
28 | 28 | ||
29 | struct msm_mmc_platform_data; | ||
30 | |||
31 | extern void msm_add_devices(void); | ||
32 | extern void msm_init_irq(void); | ||
33 | extern void msm_init_gpio(void); | ||
34 | extern int msm_add_sdcc(unsigned int controller, | ||
35 | struct msm_mmc_platform_data *plat, | ||
36 | unsigned int stat_irq, unsigned long stat_irq_flags); | ||
37 | |||
38 | #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS) | ||
39 | extern int smd_debugfs_init(void); | ||
40 | #else | ||
41 | static inline int smd_debugfs_init(void) { return 0; } | ||
42 | #endif | ||
43 | |||
29 | #endif | 44 | #endif |
diff --git a/arch/arm/mach-msm/devices-msm7x30.c b/arch/arm/mach-msm/devices-msm7x30.c index d4db75acff56..6b0e9845e753 100644 --- a/arch/arm/mach-msm/devices-msm7x30.c +++ b/arch/arm/mach-msm/devices-msm7x30.c | |||
@@ -21,10 +21,10 @@ | |||
21 | #include <mach/irqs.h> | 21 | #include <mach/irqs.h> |
22 | #include <mach/msm_iomap.h> | 22 | #include <mach/msm_iomap.h> |
23 | #include <mach/dma.h> | 23 | #include <mach/dma.h> |
24 | #include <mach/board.h> | ||
25 | 24 | ||
26 | #include "devices.h" | 25 | #include "devices.h" |
27 | #include "smd_private.h" | 26 | #include "smd_private.h" |
27 | #include "common.h" | ||
28 | 28 | ||
29 | #include <asm/mach/flash.h> | 29 | #include <asm/mach/flash.h> |
30 | 30 | ||
diff --git a/arch/arm/mach-msm/devices-qsd8x50.c b/arch/arm/mach-msm/devices-qsd8x50.c index f5518112284b..c1c45ad2bacb 100644 --- a/arch/arm/mach-msm/devices-qsd8x50.c +++ b/arch/arm/mach-msm/devices-qsd8x50.c | |||
@@ -21,9 +21,9 @@ | |||
21 | #include <mach/irqs.h> | 21 | #include <mach/irqs.h> |
22 | #include <mach/msm_iomap.h> | 22 | #include <mach/msm_iomap.h> |
23 | #include <mach/dma.h> | 23 | #include <mach/dma.h> |
24 | #include <mach/board.h> | ||
25 | 24 | ||
26 | #include "devices.h" | 25 | #include "devices.h" |
26 | #include "common.h" | ||
27 | 27 | ||
28 | #include <asm/mach/flash.h> | 28 | #include <asm/mach/flash.h> |
29 | 29 | ||
diff --git a/arch/arm/mach-msm/include/mach/board.h b/arch/arm/mach-msm/include/mach/board.h deleted file mode 100644 index c34e246a3e07..000000000000 --- a/arch/arm/mach-msm/include/mach/board.h +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* arch/arm/mach-msm/include/mach/board.h | ||
2 | * | ||
3 | * Copyright (C) 2007 Google, Inc. | ||
4 | * Author: Brian Swetland <swetland@google.com> | ||
5 | * | ||
6 | * This software is licensed under the terms of the GNU General Public | ||
7 | * License version 2, as published by the Free Software Foundation, and | ||
8 | * may be copied, distributed, and modified under those terms. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | */ | ||
16 | |||
17 | #ifndef __ASM_ARCH_MSM_BOARD_H | ||
18 | #define __ASM_ARCH_MSM_BOARD_H | ||
19 | |||
20 | #include <linux/types.h> | ||
21 | #include <linux/platform_data/mmc-msm_sdcc.h> | ||
22 | |||
23 | /* common init routines for use by arch/arm/mach-msm/board-*.c */ | ||
24 | |||
25 | void __init msm_add_devices(void); | ||
26 | void __init msm_init_irq(void); | ||
27 | void __init msm_init_gpio(void); | ||
28 | int __init msm_add_sdcc(unsigned int controller, | ||
29 | struct msm_mmc_platform_data *plat, | ||
30 | unsigned int stat_irq, unsigned long stat_irq_flags); | ||
31 | |||
32 | #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS) | ||
33 | int smd_debugfs_init(void); | ||
34 | #else | ||
35 | static inline int smd_debugfs_init(void) { return 0; } | ||
36 | #endif | ||
37 | |||
38 | #endif | ||
diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index af550af43f89..adc8971c7266 100644 --- a/arch/arm/mach-msm/io.c +++ b/arch/arm/mach-msm/io.c | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/bug.h> | ||
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
23 | #include <linux/export.h> | 24 | #include <linux/export.h> |
@@ -27,8 +28,6 @@ | |||
27 | #include <mach/msm_iomap.h> | 28 | #include <mach/msm_iomap.h> |
28 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
29 | 30 | ||
30 | #include <mach/board.h> | ||
31 | |||
32 | #include "common.h" | 31 | #include "common.h" |
33 | 32 | ||
34 | #define MSM_CHIP_DEVICE_TYPE(name, chip, mem_type) { \ | 33 | #define MSM_CHIP_DEVICE_TYPE(name, chip, mem_type) { \ |