ARM: OMAP5/DRA7: Expose do_set_iodelay
authorNishanth Menon <nm@ti.com>
Tue, 15 Mar 2016 23:09:16 +0000 (18:09 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:15 +0000 (09:12 -0400)
do_set_iodelay can now be used from board files based on needs of the
platforms variation they have.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7/omap5/dra7xx_iodelay.c
arch/arm/include/asm/arch-omap5/dra7xx_iodelay.h

index 744950f01bd96eb9827594dd7ef355cfc820b7d7..87987308aced133b88504e3bf27266c90b903753 100644 (file)
@@ -138,8 +138,8 @@ static u32 get_cfg_reg(u16 a_delay, u16 g_delay, u32 cpde, u32 fpde)
        return reg;
 }
 
-static int do_set_iodelay(u32 base, struct iodelay_cfg_entry const *array,
-                          int niodelays)
+int do_set_iodelay(u32 base, struct iodelay_cfg_entry const *array,
+                  int niodelays)
 {
        struct iodelay_cfg_entry *iodelay = (struct iodelay_cfg_entry *)array;
        u32 reg, cpde, fpde, i;
index 0de8a800c1a2f623adfe1933abd6920734f8f191..c99700403914f1edaff63051c5fee653fbd790dc 100644 (file)
@@ -86,4 +86,6 @@ void __recalibrate_iodelay(struct pad_conf_entry const *pad, int npads,
 int __recalibrate_iodelay_start(void);
 void __recalibrate_iodelay_end(int ret);
 
+int do_set_iodelay(u32 base, struct iodelay_cfg_entry const *array,
+                  int niodelays);
 #endif