diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index b39efd46abf9..6cd3f3772ecf 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -87,7 +87,7 @@ void __init omap_barriers_init(void) | |||
87 | dram_io_desc[0].virtual = OMAP4_DRAM_BARRIER_VA; | 87 | dram_io_desc[0].virtual = OMAP4_DRAM_BARRIER_VA; |
88 | dram_io_desc[0].pfn = __phys_to_pfn(paddr); | 88 | dram_io_desc[0].pfn = __phys_to_pfn(paddr); |
89 | dram_io_desc[0].length = size; | 89 | dram_io_desc[0].length = size; |
90 | dram_io_desc[0].type = MT_MEMORY_SO; | 90 | dram_io_desc[0].type = MT_MEMORY_RW_SO; |
91 | iotable_init(dram_io_desc, ARRAY_SIZE(dram_io_desc)); | 91 | iotable_init(dram_io_desc, ARRAY_SIZE(dram_io_desc)); |
92 | dram_sync = (void __iomem *) dram_io_desc[0].virtual; | 92 | dram_sync = (void __iomem *) dram_io_desc[0].virtual; |
93 | sram_sync = (void __iomem *) OMAP4_SRAM_VA; | 93 | sram_sync = (void __iomem *) OMAP4_SRAM_VA; |
@@ -127,6 +127,12 @@ void gic_dist_disable(void) | |||
127 | __raw_writel(0x0, gic_dist_base_addr + GIC_DIST_CTRL); | 127 | __raw_writel(0x0, gic_dist_base_addr + GIC_DIST_CTRL); |
128 | } | 128 | } |
129 | 129 | ||
130 | void gic_dist_enable(void) | ||
131 | { | ||
132 | if (gic_dist_base_addr) | ||
133 | __raw_writel(0x1, gic_dist_base_addr + GIC_DIST_CTRL); | ||
134 | } | ||
135 | |||
130 | bool gic_dist_disabled(void) | 136 | bool gic_dist_disabled(void) |
131 | { | 137 | { |
132 | return !(__raw_readl(gic_dist_base_addr + GIC_DIST_CTRL) & 0x1); | 138 | return !(__raw_readl(gic_dist_base_addr + GIC_DIST_CTRL) & 0x1); |
@@ -162,6 +168,7 @@ void __iomem *omap4_get_l2cache_base(void) | |||
162 | 168 | ||
163 | static void omap4_l2x0_disable(void) | 169 | static void omap4_l2x0_disable(void) |
164 | { | 170 | { |
171 | outer_flush_all(); | ||
165 | /* Disable PL310 L2 Cache controller */ | 172 | /* Disable PL310 L2 Cache controller */ |
166 | omap_smc1(0x102, 0x0); | 173 | omap_smc1(0x102, 0x0); |
167 | } | 174 | } |