summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/pxa/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/pxa/cpu.c')
-rw-r--r--arch/arm/cpu/pxa/cpu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/cpu/pxa/cpu.c b/arch/arm/cpu/pxa/cpu.c
index 7d49cbb..9970a4b 100644
--- a/arch/arm/cpu/pxa/cpu.c
+++ b/arch/arm/cpu/pxa/cpu.c
@@ -318,3 +318,13 @@ int arch_cpu_init(void)
pxa_clock_setup();
return 0;
}
+
+void i2c_clk_enable(void)
+{
+ /* set the global I2C clock on */
+#ifdef CONFIG_CPU_MONAHANS
+ writel(readl(CKENB) | (CKENB_4_I2C), CKENB);
+#else
+ writel(readl(CKEN) | CKEN14_I2C, CKEN);
+#endif
+}