diff options
author | Suman Anna <s-anna@ti.com> | 2018-02-12 20:32:42 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-02-14 13:28:13 -0500 |
commit | 9138f89e7bb4b83ea0722f9912b96e236ece54cb (patch) | |
tree | b9176a698f620f8e75fdeaf8c6488de3adce9860 | |
parent | 0693036ca800ab471e8f28caeb3a9ac4d77af810 (diff) |
ARM: OMAP: Move plat/i2c.h into mach-omap1 folder
The current contents of plat/i2c.h are only relevant for OMAP1
platforms, as all the equivalent functions for OMAP2 has been
dropped in commit 65fa3e719f36 ("ARM: OMAP2+: Remove legacy i2c.c
platform init code"), and which has also moved the left-over code
from plat-omap into mach-omap1. The hwmod is a concept only
applicable for OMAP2 platforms, and the omap_i2c_reset() is
already declared in mach-omap2/i2c.h. So, move the current
plat/i2c.h header file into the mach-omap1 folder, and adjust
the header usage accordingly.
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap1/common.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/i2c.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/i2c.h (renamed from arch/arm/plat-omap/include/plat/i2c.h) | 9 | ||||
-rw-r--r-- | arch/arm/mach-omap2/i2c.h | 4 |
4 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm/mach-omap1/common.h b/arch/arm/mach-omap1/common.h index 65bb6e8085de..d83ff257eaa8 100644 --- a/arch/arm/mach-omap1/common.h +++ b/arch/arm/mach-omap1/common.h | |||
@@ -32,11 +32,10 @@ | |||
32 | 32 | ||
33 | #include <asm/exception.h> | 33 | #include <asm/exception.h> |
34 | 34 | ||
35 | #include <plat/i2c.h> | ||
36 | |||
37 | #include <mach/irqs.h> | 35 | #include <mach/irqs.h> |
38 | 36 | ||
39 | #include "soc.h" | 37 | #include "soc.h" |
38 | #include "i2c.h" | ||
40 | 39 | ||
41 | #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) | 40 | #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) |
42 | void omap7xx_map_io(void); | 41 | void omap7xx_map_io(void); |
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c index 32f6c53367bf..5bdf3c4190f9 100644 --- a/arch/arm/mach-omap1/i2c.c +++ b/arch/arm/mach-omap1/i2c.c | |||
@@ -24,8 +24,6 @@ | |||
24 | #include <mach/mux.h> | 24 | #include <mach/mux.h> |
25 | #include "soc.h" | 25 | #include "soc.h" |
26 | 26 | ||
27 | #include <plat/i2c.h> | ||
28 | |||
29 | #define OMAP_I2C_SIZE 0x3f | 27 | #define OMAP_I2C_SIZE 0x3f |
30 | #define OMAP1_I2C_BASE 0xfffb3800 | 28 | #define OMAP1_I2C_BASE 0xfffb3800 |
31 | 29 | ||
diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/mach-omap1/i2c.h index 810629d79668..54a2bce7879e 100644 --- a/arch/arm/plat-omap/include/plat/i2c.h +++ b/arch/arm/mach-omap1/i2c.h | |||
@@ -19,8 +19,8 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef __PLAT_OMAP_I2C_H | 22 | #ifndef __ARCH_ARM_MACH_OMAP1_I2C_H |
23 | #define __PLAT_OMAP_I2C_H | 23 | #define __ARCH_ARM_MACH_OMAP1_I2C_H |
24 | 24 | ||
25 | struct i2c_board_info; | 25 | struct i2c_board_info; |
26 | struct omap_i2c_bus_platform_data; | 26 | struct omap_i2c_bus_platform_data; |
@@ -47,7 +47,4 @@ static inline int omap_register_i2c_bus_cmdline(void) | |||
47 | } | 47 | } |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | struct omap_hwmod; | 50 | #endif /* __ARCH_ARM_MACH_OMAP1_I2C_H */ |
51 | int omap_i2c_reset(struct omap_hwmod *oh); | ||
52 | |||
53 | #endif /* __PLAT_OMAP_I2C_H */ | ||
diff --git a/arch/arm/mach-omap2/i2c.h b/arch/arm/mach-omap2/i2c.h index f76ff790b435..4d085c7ad425 100644 --- a/arch/arm/mach-omap2/i2c.h +++ b/arch/arm/mach-omap2/i2c.h | |||
@@ -19,11 +19,11 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <plat/i2c.h> | ||
23 | |||
24 | #ifndef __MACH_OMAP2_I2C_H | 22 | #ifndef __MACH_OMAP2_I2C_H |
25 | #define __MACH_OMAP2_I2C_H | 23 | #define __MACH_OMAP2_I2C_H |
26 | 24 | ||
25 | struct omap_hwmod; | ||
26 | |||
27 | int omap_i2c_reset(struct omap_hwmod *oh); | 27 | int omap_i2c_reset(struct omap_hwmod *oh); |
28 | 28 | ||
29 | #endif /* __MACH_OMAP2_I2C_H */ | 29 | #endif /* __MACH_OMAP2_I2C_H */ |