From: Dirk Behme <dirk.behme@googlemail.com>
To: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] ARM: OMAP3: Make I2C bus 2 configurable for BeagleBoard
Date: Fri, 04 Jul 2008 09:10:51 +0200 [thread overview]
Message-ID: <486DCCFB.9060909@googlemail.com> (raw)
In-Reply-To: <20080704095502.a018a17a.jarkko.nikula@nokia.com>
Jarkko Nikula wrote:
> On Fri, 04 Jul 2008 08:26:55 +0200
> "ext Dirk Behme" <dirk.behme@googlemail.com> wrote:
>
>
>>- Add configuration option for this
>>- Use configuration option in board-omap3beagle
>>- Ensure correct pin mux if I2C2 is enabled, independent of settings
>>done by bootloader
>>
>
> Why this CONFIG_I2C2_OMAP_BEAGLE in mux.c?
Because bootloader, e.g. uboot, might have set other mux for these
pins, e.g. GPIO168 and GPIO183.
Then, if CONFIG_MUX is enabled but I2C2 isn't, don't touch the pin mux
done by bootloader. But if I2C2 is enabled, make sure that the correct
mux settings are done independent of bootloader.
Do you think this is wrong?
Thanks
Dirk
> --- linux-beagle.orig/arch/arm/mach-omap2/mux.c
> +++ linux-beagle/arch/arm/mach-omap2/mux.c
> @@ -231,10 +231,12 @@ MUX_CFG_34XX("K21_34XX_I2C1_SCL", 0x1ba,
> OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP)
> MUX_CFG_34XX("J21_34XX_I2C1_SDA", 0x1bc,
> OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP)
> +#ifdef CONFIG_I2C2_OMAP_BEAGLE
> MUX_CFG_34XX("AF15_34XX_I2C2_SCL", 0x1be,
> OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP)
> MUX_CFG_34XX("AE15_34XX_I2C2_SDA", 0x1c0,
> OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP)
> +#endif
> MUX_CFG_34XX("AF14_34XX_I2C3_SCL", 0x1c2,
> OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP)
> MUX_CFG_34XX("AG14_34XX_I2C3_SDA", 0x1c4,
>
>
prev parent reply other threads:[~2008-07-04 7:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-04 6:26 [PATCH] ARM: OMAP3: Make I2C bus 2 configurable for BeagleBoard Dirk Behme
2008-07-04 6:55 ` Jarkko Nikula
2008-07-04 7:10 ` Dirk Behme [this message]
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=486DCCFB.9060909@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=jarkko.nikula@nokia.com \
--cc=linux-omap@vger.kernel.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