ARM: OMAP3+: PRM: add generic API for reconfiguring I/O chain
authorTero Kristo <t-kristo@ti.com>
Thu, 3 Apr 2014 13:23:16 +0000 (16:23 +0300)
committerTero Kristo <t-kristo@ti.com>
Mon, 22 Sep 2014 12:52:29 +0000 (15:52 +0300)
This adds a generic API for reconfiguring the I/O chain. The implementation
will call the SoC specific function registered during init time. The SoC
specific reconfigure functions are also made static, as they don't need
to be accessed outside the PRM driver itself.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Nishanth Menon <nm@ti.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/prm.h
arch/arm/mach-omap2/prm3xxx.c
arch/arm/mach-omap2/prm3xxx.h
arch/arm/mach-omap2/prm44xx.c
arch/arm/mach-omap2/prm44xx_54xx.h
arch/arm/mach-omap2/prm_common.c

index d8d9f4d..dd97afa 100644 (file)
@@ -1984,10 +1984,7 @@ static void _reconfigure_io_chain(void)
 
        spin_lock_irqsave(&io_chain_lock, flags);
 
-       if (cpu_is_omap34xx() && omap3_has_io_chain_ctrl())
-               omap3xxx_prm_reconfigure_io_chain();
-       else if (cpu_is_omap44xx())
-               omap44xx_prm_reconfigure_io_chain();
+       omap_prm_reconfigure_io_chain();
 
        spin_unlock_irqrestore(&io_chain_lock, flags);
 }
index d72dd71..dd802ee 100644 (file)
@@ -157,6 +157,8 @@ extern u32 prm_read_reset_sources(void);
 extern bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx);
 extern void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx);
 
+void omap_prm_reconfigure_io_chain(void);
+
 #endif
 
 
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge