diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-generic.c')
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 0cc9094e5ee..fb55fa3dad5 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -28,6 +28,7 @@ | |||
28 | * XXX: Still needed to boot until the i2c & twl driver is adapted to | 28 | * XXX: Still needed to boot until the i2c & twl driver is adapted to |
29 | * device-tree | 29 | * device-tree |
30 | */ | 30 | */ |
31 | #ifdef CONFIG_ARCH_OMAP4 | ||
31 | static struct twl4030_platform_data sdp4430_twldata = { | 32 | static struct twl4030_platform_data sdp4430_twldata = { |
32 | .irq_base = TWL6030_IRQ_BASE, | 33 | .irq_base = TWL6030_IRQ_BASE, |
33 | .irq_end = TWL6030_IRQ_END, | 34 | .irq_end = TWL6030_IRQ_END, |
@@ -37,7 +38,9 @@ static void __init omap4_i2c_init(void) | |||
37 | { | 38 | { |
38 | omap4_pmic_init("twl6030", &sdp4430_twldata); | 39 | omap4_pmic_init("twl6030", &sdp4430_twldata); |
39 | } | 40 | } |
41 | #endif | ||
40 | 42 | ||
43 | #ifdef CONFIG_ARCH_OMAP3 | ||
41 | static struct twl4030_platform_data beagle_twldata = { | 44 | static struct twl4030_platform_data beagle_twldata = { |
42 | .irq_base = TWL4030_IRQ_BASE, | 45 | .irq_base = TWL4030_IRQ_BASE, |
43 | .irq_end = TWL4030_IRQ_END, | 46 | .irq_end = TWL4030_IRQ_END, |
@@ -47,6 +50,7 @@ static void __init omap3_i2c_init(void) | |||
47 | { | 50 | { |
48 | omap3_pmic_init("twl4030", &beagle_twldata); | 51 | omap3_pmic_init("twl4030", &beagle_twldata); |
49 | } | 52 | } |
53 | #endif | ||
50 | 54 | ||
51 | static struct of_device_id omap_dt_match_table[] __initdata = { | 55 | static struct of_device_id omap_dt_match_table[] __initdata = { |
52 | { .compatible = "simple-bus", }, | 56 | { .compatible = "simple-bus", }, |
@@ -72,17 +76,21 @@ static void __init omap_generic_init(void) | |||
72 | of_platform_populate(NULL, omap_dt_match_table, NULL, NULL); | 76 | of_platform_populate(NULL, omap_dt_match_table, NULL, NULL); |
73 | } | 77 | } |
74 | 78 | ||
79 | #ifdef CONFIG_ARCH_OMAP4 | ||
75 | static void __init omap4_init(void) | 80 | static void __init omap4_init(void) |
76 | { | 81 | { |
77 | omap4_i2c_init(); | 82 | omap4_i2c_init(); |
78 | omap_generic_init(); | 83 | omap_generic_init(); |
79 | } | 84 | } |
85 | #endif | ||
80 | 86 | ||
87 | #ifdef CONFIG_ARCH_OMAP3 | ||
81 | static void __init omap3_init(void) | 88 | static void __init omap3_init(void) |
82 | { | 89 | { |
83 | omap3_i2c_init(); | 90 | omap3_i2c_init(); |
84 | omap_generic_init(); | 91 | omap_generic_init(); |
85 | } | 92 | } |
93 | #endif | ||
86 | 94 | ||
87 | #if defined(CONFIG_SOC_OMAP2420) | 95 | #if defined(CONFIG_SOC_OMAP2420) |
88 | static const char *omap242x_boards_compat[] __initdata = { | 96 | static const char *omap242x_boards_compat[] __initdata = { |