* [U-Boot] [PATCH] beagleboard: Remove side effects of i2c2 pullup resisters initialization code
@ 2014-09-29 17:46 Alexander Kochetkov
2014-10-10 14:41 ` [U-Boot] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kochetkov @ 2014-09-29 17:46 UTC (permalink / raw)
To: u-boot
Fix typo of commit d4e53f063dd25e071444b87303573e7440deeb89.
i2c2 pullup resisters are controlled by bit 0 of CONTROL_PROG_IO1.
It's value after reset is 0x00100001.
In order to clear bit 0, original code write 0xfffffffe to
CONTROL_PROG_IO1 and toggle almost all default values.
Original code affect following:
* disable i2c1 pullup resisters
* increase far end load setting for many modules
* setup invalid SC/LB combination
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
CC: Tom Rini <trini@ti.com>
CC: Steve Kipisz <s-kipisz2@ti.com>
---
board/ti/beagle/beagle.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 0674afd..94b99bf 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -317,9 +317,12 @@ int misc_init_r(void)
struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
struct control_prog_io *prog_io_base = (struct control_prog_io *)OMAP34XX_CTRL_BASE;
bool generate_fake_mac = false;
+ u32 value;
/* Enable i2c2 pullup resisters */
- writel(~(PRG_I2C2_PULLUPRESX), &prog_io_base->io1);
+ value = readl(&prog_io_base->io1);
+ value &= ~(PRG_I2C2_PULLUPRESX);
+ writel(value, &prog_io_base->io1);
switch (get_board_revision()) {
case REVISION_AXBX:
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] beagleboard: Remove side effects of i2c2 pullup resisters initialization code
2014-09-29 17:46 [U-Boot] [PATCH] beagleboard: Remove side effects of i2c2 pullup resisters initialization code Alexander Kochetkov
@ 2014-10-10 14:41 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-10-10 14:41 UTC (permalink / raw)
To: u-boot
On Mon, Sep 29, 2014 at 09:46:48PM +0400, Alexander Kochetkov wrote:
> Fix typo of commit d4e53f063dd25e071444b87303573e7440deeb89.
>
> i2c2 pullup resisters are controlled by bit 0 of CONTROL_PROG_IO1.
> It's value after reset is 0x00100001.
>
> In order to clear bit 0, original code write 0xfffffffe to
> CONTROL_PROG_IO1 and toggle almost all default values.
>
> Original code affect following:
> * disable i2c1 pullup resisters
> * increase far end load setting for many modules
> * setup invalid SC/LB combination
>
> Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
> CC: Tom Rini <trini@ti.com>
> CC: Steve Kipisz <s-kipisz2@ti.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141010/bb420211/attachment.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-10 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29 17:46 [U-Boot] [PATCH] beagleboard: Remove side effects of i2c2 pullup resisters initialization code Alexander Kochetkov
2014-10-10 14:41 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.