summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/82xx/mpc8272_ads.c
diff options
context:
space:
mode:
authorJochen Friedrich <jochen@scram.de>2008-07-02 16:06:13 (GMT)
committerKumar Gala <galak@kernel.crashing.org>2008-07-14 12:55:39 (GMT)
commita5d28c8e64ff0bc77d38d9c19c6d8163e4c0ffaa (patch)
treef0b85adf4a897eca1567826202f1176f7b8554de /arch/powerpc/platforms/82xx/mpc8272_ads.c
parentdc320815305c5f019672d144f4c4c2710ef7732e (diff)
downloadlinux-fsl-qoriq-a5d28c8e64ff0bc77d38d9c19c6d8163e4c0ffaa.tar.xz
powerpc/CPM: Add i2c pins to dts and board setup
Initialize I2C pins on boards with CPM1/CPM2 controllers and document the i2c bus in booting-without-of. The boards don't have any I2C chips connected to the I2C bus, so unless some external chips are connected to the boards, this code is just an example of setting everything else up. Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/82xx/mpc8272_ads.c')
-rw-r--r--arch/powerpc/platforms/82xx/mpc8272_ads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c
index 7d30187..8054c68 100644
--- a/arch/powerpc/platforms/82xx/mpc8272_ads.c
+++ b/arch/powerpc/platforms/82xx/mpc8272_ads.c
@@ -96,6 +96,10 @@ static struct cpm_pin mpc8272_ads_pins[] = {
{1, 31, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
{2, 16, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
{2, 17, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
+
+ /* I2C */
+ {3, 14, CPM_PIN_INPUT | CPM_PIN_SECONDARY | CPM_PIN_OPENDRAIN},
+ {3, 15, CPM_PIN_INPUT | CPM_PIN_SECONDARY | CPM_PIN_OPENDRAIN},
};
static void __init init_ioports(void)