9
0
Fork 0

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>
This commit is contained in:
Juergen Borleis 2015-07-31 11:03:51 +02:00 committed by Sascha Hauer
parent d2e8305b34
commit 90c52fe07a
2 changed files with 11 additions and 2 deletions

View File

@ -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 */

View File

@ -17,8 +17,13 @@ config I2C_AT91
depends on ARCH_AT91
config I2C_IMX
bool "MPC85xx/i.MX I2C Master driver"
depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX
bool "MPC85xx/MPC5200/i.MX I2C Master driver"
depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX || ARCH_MPC5200
help
If you say yes to this option, support will be included for many
built-in I2C master controllers found in Freescale SoCs. This is true
for many i.MX ARM based SoCs, for MPC85xx and MPC5200 PowerPC based
SoCs.
config I2C_MV64XXX
bool "Marvell mv64xxx I2C Controller"