summaryrefslogtreecommitdiffstats
path: root/arch/ppc
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2015-07-31 11:03:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-03 08:52:43 +0200
commit90c52fe07a1073826d009d2b5f1d4e5d8350580f (patch)
tree388a49398c913e3b98382617829d9e42b329e825 /arch/ppc
parentd2e8305b34af8ad9f4a9f698625d6cb3cf176501 (diff)
downloadbarebox-90c52fe07a1073826d009d2b5f1d4e5d8350580f.tar.gz
barebox-90c52fe07a1073826d009d2b5f1d4e5d8350580f.tar.xz
PPC/MPC5200: re-use the IMX I2C master driver for MPC5200
This IP core is shared between many FSL SoCs. The MPC5200 provides this core as well. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r--arch/ppc/mach-mpc5xxx/include/mach/clock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ppc/mach-mpc5xxx/include/mach/clock.h b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
index 4e1a903e79..b19686f18c 100644
--- a/arch/ppc/mach-mpc5xxx/include/mach/clock.h
+++ b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
@@ -6,5 +6,9 @@ unsigned long get_cpu_clock(void);
unsigned long get_ipb_clock(void);
unsigned long get_pci_clock(void);
unsigned long get_timebase_clock(void);
+static inline unsigned long fsl_get_i2c_freq(void)
+{
+ return get_ipb_clock();
+}
#endif /* __ASM_ARCH_CLOCKS_H */