diff options
author | Stefan Hengelein <stefan.hengelein@fau.de> | 2015-02-25 13:44:27 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-03-16 19:23:28 -0400 |
commit | 606da4826b89b044b51e3a84958b802204cfe4c7 (patch) | |
tree | 6c543eab0a07ba9842f8b8672416ed9805f7956f /arch/arm/mach-omap2/omap4-common.c | |
parent | 026da812a075e1c3cc99f8bec757206b7068b779 (diff) |
ARM: OMAP4: remove dead kconfig option OMAP4_ERRATA_I688
The Kconfig-Option OMAP4_ERRATA_I688 is never visible due to a
contradiction in it's dependencies.
The option requires ARCH_MULTIPLATFORM to be 'disabled'. However, an
enclosing menu requires either ARCH_MULTI_V6 or ARCH_MULTI_V7 to be
enabled. These options inherit a dependency from an enclosing menu,
that requires ARCH_MULTIPLATFORM to be 'enabled'.
This is a contradiction and made this option also unavailable for
non-multiplatform configurations.
Since there are no selects on OMAP4_ERRATA_I688, which would ignore
dependencies, the code related to that option is dead and can be
removed.
This (logical) defect has been found with the undertaker tool.
(https://undertaker.cs.fau.de)
Signed-off-by: Stefan Hengelein <stefan.hengelein@fau.de>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index cee0fe1ee6ff..afaac9e25764 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -52,75 +52,6 @@ static void __iomem *twd_base; | |||
52 | 52 | ||
53 | #define IRQ_LOCALTIMER 29 | 53 | #define IRQ_LOCALTIMER 29 |
54 | 54 | ||
55 | #ifdef CONFIG_OMAP4_ERRATA_I688 | ||
56 | /* Used to implement memory barrier on DRAM path */ | ||
57 | #define OMAP4_DRAM_BARRIER_VA 0xfe600000 | ||
58 | |||
59 | void __iomem *dram_sync, *sram_sync; | ||
60 | |||
61 | static phys_addr_t paddr; | ||
62 | static u32 size; | ||
63 | |||
64 | void omap_bus_sync(void) | ||
65 | { | ||
66 | if (dram_sync && sram_sync) { | ||
67 | writel_relaxed(readl_relaxed(dram_sync), dram_sync); | ||
68 | writel_relaxed(readl_relaxed(sram_sync), sram_sync); | ||
69 | isb(); | ||
70 | } | ||
71 | } | ||
72 | EXPORT_SYMBOL(omap_bus_sync); | ||
73 | |||
74 | static int __init omap4_sram_init(void) | ||
75 | { | ||
76 | struct device_node *np; | ||
77 | struct gen_pool *sram_pool; | ||
78 | |||
79 | np = of_find_compatible_node(NULL, NULL, "ti,omap4-mpu"); | ||
80 | if (!np) | ||
81 | pr_warn("%s:Unable to allocate sram needed to handle errata I688\n", | ||
82 | __func__); | ||
83 | sram_pool = of_get_named_gen_pool(np, "sram", 0); | ||
84 | if (!sram_pool) | ||
85 | pr_warn("%s:Unable to get sram pool needed to handle errata I688\n", | ||
86 | __func__); | ||
87 | else | ||
88 | sram_sync = (void *)gen_pool_alloc(sram_pool, PAGE_SIZE); | ||
89 | |||
90 | return 0; | ||
91 | } | ||
92 | omap_arch_initcall(omap4_sram_init); | ||
93 | |||
94 | /* Steal one page physical memory for barrier implementation */ | ||
95 | int __init omap_barrier_reserve_memblock(void) | ||
96 | { | ||
97 | |||
98 | size = ALIGN(PAGE_SIZE, SZ_1M); | ||
99 | paddr = arm_memblock_steal(size, SZ_1M); | ||
100 | |||
101 | return 0; | ||
102 | } | ||
103 | |||
104 | void __init omap_barriers_init(void) | ||
105 | { | ||
106 | struct map_desc dram_io_desc[1]; | ||
107 | |||
108 | dram_io_desc[0].virtual = OMAP4_DRAM_BARRIER_VA; | ||
109 | dram_io_desc[0].pfn = __phys_to_pfn(paddr); | ||
110 | dram_io_desc[0].length = size; | ||
111 | dram_io_desc[0].type = MT_MEMORY_RW_SO; | ||
112 | iotable_init(dram_io_desc, ARRAY_SIZE(dram_io_desc)); | ||
113 | dram_sync = (void __iomem *) dram_io_desc[0].virtual; | ||
114 | |||
115 | pr_info("OMAP4: Map 0x%08llx to 0x%08lx for dram barrier\n", | ||
116 | (long long) paddr, dram_io_desc[0].virtual); | ||
117 | |||
118 | } | ||
119 | #else | ||
120 | void __init omap_barriers_init(void) | ||
121 | {} | ||
122 | #endif | ||
123 | |||
124 | void gic_dist_disable(void) | 55 | void gic_dist_disable(void) |
125 | { | 56 | { |
126 | if (gic_dist_base_addr) | 57 | if (gic_dist_base_addr) |