diff options
author | Jochen Friedrich <jochen@scram.de> | 2008-07-02 16:06:13 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-07-14 12:55:39 (GMT) |
commit | a5d28c8e64ff0bc77d38d9c19c6d8163e4c0ffaa (patch) | |
tree | f0b85adf4a897eca1567826202f1176f7b8554de /arch/powerpc/platforms/8xx/mpc86xads_setup.c | |
parent | dc320815305c5f019672d144f4c4c2710ef7732e (diff) | |
download | linux-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/8xx/mpc86xads_setup.c')
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc86xads_setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c index c028a5b..caaec29 100644 --- a/arch/powerpc/platforms/8xx/mpc86xads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc86xads_setup.c @@ -65,6 +65,10 @@ static struct cpm_pin mpc866ads_pins[] = { {CPM_PORTD, 13, CPM_PIN_OUTPUT}, {CPM_PORTD, 14, CPM_PIN_OUTPUT}, {CPM_PORTD, 15, CPM_PIN_OUTPUT}, + + /* I2C */ + {CPM_PORTB, 26, CPM_PIN_INPUT | CPM_PIN_OPENDRAIN}, + {CPM_PORTB, 27, CPM_PIN_INPUT | CPM_PIN_OPENDRAIN}, }; static void __init init_ioports(void) |