From: Juergen Borleis <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 5/6] PPC/MPC5200: re-use the IMX I2C master driver for MPC5200
Date: Fri, 31 Jul 2015 11:03:51 +0200 [thread overview]
Message-ID: <1438333432-10118-6-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1438333432-10118-1-git-send-email-jbe@pengutronix.de>
This IP core is shared between many FSL SoCs. The MPC5200 provides this
core as well.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
arch/ppc/mach-mpc5xxx/include/mach/clock.h | 4 ++++
drivers/i2c/busses/Kconfig | 9 +++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/ppc/mach-mpc5xxx/include/mach/clock.h b/arch/ppc/mach-mpc5xxx/include/mach/clock.h
index 4e1a903..b19686f 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 */
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 3962286..181321b 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -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"
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-07-31 9:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 9:03 [PATCH] PowerPC/MPC5200 Juergen Borleis
2015-07-31 9:03 ` [PATCH 1/6] PPC/PCM030: remove nowhere used definitions Juergen Borleis
2015-07-31 9:03 ` [PATCH 2/6] PPC/PCM030: fix reference clock Juergen Borleis
2015-07-31 9:03 ` [PATCH 3/6] PPC/PCM030: enable USB/OHCI pin support Juergen Borleis
2015-07-31 9:03 ` [PATCH 4/6] PPC/MPC52xx: unify header file name for clock API Juergen Borleis
2015-07-31 9:03 ` Juergen Borleis [this message]
2015-07-31 9:03 ` [PATCH 6/6] PPC/PCM030: provide EEPROM support to read factory settings Juergen Borleis
2015-07-31 11:17 ` fixup! " Juergen Borleis
2015-08-03 6:56 ` [PATCH] PowerPC/MPC5200 Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438333432-10118-6-git-send-email-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox