#include <linux/of.h>
#include <linux/err.h>
+/*Enable or disable clock out due to clk_disable_unused hang*/
+//#define PCF8563_ENABLE_CLKO
+
#define PCF8563_REG_ST1 0x00 /* status */
#define PCF8563_REG_ST2 0x01
#define PCF8563_BIT_AIE (1 << 1)
int voltage_low; /* incicates if a low_voltage was detected */
struct i2c_client *client;
-#ifdef CONFIG_COMMON_CLK
+#if defined(CONFIG_COMMON_CLK) && defined(PCF8563_ENABLE_CLKO)
struct clk_hw clkout_hw;
#endif
};
return pcf8563_set_alarm_mode(to_i2c_client(dev), !!enabled);
}
-#ifdef CONFIG_COMMON_CLK
+#if defined(CONFIG_COMMON_CLK) && defined(PCF8563_ENABLE_CLKO)
/*
* Handling of the clkout
*/
}
-#ifdef CONFIG_COMMON_CLK
+#if defined(CONFIG_COMMON_CLK) && defined(PCF8563_ENABLE_CLKO)
/* register clk in common clk framework */
pcf8563_clkout_register_clk(pcf8563);
#endif