aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/db8500-prcmu.c
diff options
context:
space:
mode:
authorFabio Baltieri <fabio.baltieri@linaro.org>2013-01-18 06:40:12 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-13 18:22:53 -0500
commit6f8cfa99845f12ab98990baef739e7e93565de87 (patch)
treec221d1cfc879fa7be03e6257e455ad2eb0b5d986 /drivers/mfd/db8500-prcmu.c
parent98c60a0d3afc8f68e6e4b85b93df14e238fec3cb (diff)
mfd: dbx500-prcmu: Export a9wdog functions
Add EXPORT_SYMBOL to db500_prcmu_*_a9wdog functions to allow usage from module. Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r--drivers/mfd/db8500-prcmu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 268f45d42394..7a63fa86bf01 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -2212,21 +2212,25 @@ int db8500_prcmu_config_a9wdog(u8 num, bool sleep_auto_off)
2212 sleep_auto_off ? A9WDOG_AUTO_OFF_EN : 2212 sleep_auto_off ? A9WDOG_AUTO_OFF_EN :
2213 A9WDOG_AUTO_OFF_DIS); 2213 A9WDOG_AUTO_OFF_DIS);
2214} 2214}
2215EXPORT_SYMBOL(db8500_prcmu_config_a9wdog);
2215 2216
2216int db8500_prcmu_enable_a9wdog(u8 id) 2217int db8500_prcmu_enable_a9wdog(u8 id)
2217{ 2218{
2218 return prcmu_a9wdog(MB4H_A9WDOG_EN, id, 0, 0, 0); 2219 return prcmu_a9wdog(MB4H_A9WDOG_EN, id, 0, 0, 0);
2219} 2220}
2221EXPORT_SYMBOL(db8500_prcmu_enable_a9wdog);
2220 2222
2221int db8500_prcmu_disable_a9wdog(u8 id) 2223int db8500_prcmu_disable_a9wdog(u8 id)
2222{ 2224{
2223 return prcmu_a9wdog(MB4H_A9WDOG_DIS, id, 0, 0, 0); 2225 return prcmu_a9wdog(MB4H_A9WDOG_DIS, id, 0, 0, 0);
2224} 2226}
2227EXPORT_SYMBOL(db8500_prcmu_disable_a9wdog);
2225 2228
2226int db8500_prcmu_kick_a9wdog(u8 id) 2229int db8500_prcmu_kick_a9wdog(u8 id)
2227{ 2230{
2228 return prcmu_a9wdog(MB4H_A9WDOG_KICK, id, 0, 0, 0); 2231 return prcmu_a9wdog(MB4H_A9WDOG_KICK, id, 0, 0, 0);
2229} 2232}
2233EXPORT_SYMBOL(db8500_prcmu_kick_a9wdog);
2230 2234
2231/* 2235/*
2232 * timeout is 28 bit, in ms. 2236 * timeout is 28 bit, in ms.
@@ -2244,6 +2248,7 @@ int db8500_prcmu_load_a9wdog(u8 id, u32 timeout)
2244 (u8)((timeout >> 12) & 0xff), 2248 (u8)((timeout >> 12) & 0xff),
2245 (u8)((timeout >> 20) & 0xff)); 2249 (u8)((timeout >> 20) & 0xff));
2246} 2250}
2251EXPORT_SYMBOL(db8500_prcmu_load_a9wdog);
2247 2252
2248/** 2253/**
2249 * prcmu_abb_read() - Read register value(s) from the ABB. 2254 * prcmu_abb_read() - Read register value(s) from the ABB.