From: Peter Desnoyers <pdesnoyers@chinook.com>
To: "Kári Davíðsson" <kd@flaga.is>
Cc: "Linux Embedded ppc (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: microcodepatch
Date: Wed, 24 Oct 2001 15:06:31 -0400 [thread overview]
Message-ID: <3BD71137.57160101@chinook.com> (raw)
In-Reply-To: EADB10BAC266A14A85ECBF8686A73E3145934F@kolkrabbi.flaga.is
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
The I2C driver doesn't work properly with the microcode patch - it
initializes tbptr and rbptr to 0, not r_tbase and r_rbase, and it uses
the INIT_TRX command (which the patched code doesn't support) instead of
separate INIT_RX and INIT_TX.
You might want to try the attached minor patch, which works for us.
--
.....................................................................
Peter Desnoyers (781) 457-1165 pdesnoyers@chinook.com
Chinook Communications (617) 661-1979 pjd@fred.cambridge.ma.us
100 Hayden Ave, Lexington MA 02421
[-- Attachment #2: i2c-ucode.diff --]
[-- Type: text/plain, Size: 1071 bytes --]
Index: i2c-algo-8xx.c
===================================================================
RCS file: /src/cvs/hardhat/devkit/lsp/motorola-mbx860/linux-2.4.2_hhl20/drivers/i2c/i2c-algo-8xx.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- i2c-algo-8xx.c 2001/07/24 17:23:38 1.1.1.1
+++ i2c-algo-8xx.c 2001/10/01 19:08:20 1.2
@@ -99,8 +99,12 @@
volatile cpm8xx_t *cp = cpm_adap->cp;
cp->cp_cpcr =
- mk_cr_cmd(CPM_CR_CH_I2C, CPM_CR_INIT_TRX) | CPM_CR_FLG;
+ mk_cr_cmd(CPM_CR_CH_I2C, CPM_CR_INIT_RX) | CPM_CR_FLG;
while (cp->cp_cpcr & CPM_CR_FLG);
+
+ cp->cp_cpcr =
+ mk_cr_cmd(CPM_CR_CH_I2C, CPM_CR_INIT_TX) | CPM_CR_FLG;
+ while (cp->cp_cpcr & CPM_CR_FLG);
}
/* Select an arbitrary address. Just make sure it is unique.
@@ -151,12 +155,12 @@
iip->iic_rstate = 0;
iip->iic_rdp = 0;
- iip->iic_rbptr = 0;
+ iip->iic_rbptr = r_rbase;
iip->iic_rbc = 0;
iip->iic_rxtmp = 0;
iip->iic_tstate = 0;
iip->iic_tdp = 0;
- iip->iic_tbptr = 0;
+ iip->iic_tbptr = r_tbase;
iip->iic_tbc = 0;
iip->iic_txtmp = 0;
}
next prev parent reply other threads:[~2001-10-24 19:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-24 18:50 microcodepatch Kári Davíðsson
2001-10-24 19:02 ` microcodepatch Der Herr Hofrat
2001-10-24 19:06 ` Peter Desnoyers [this message]
2001-10-24 19:38 ` microcodepatch Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2001-10-25 8:45 microcodepatch Kári Davíðsson
2001-10-25 8:47 microcodepatch Kári Davíðsson
2001-10-25 9:27 microcodepatch Kári Davíðsson
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=3BD71137.57160101@chinook.com \
--to=pdesnoyers@chinook.com \
--cc=kd@flaga.is \
--cc=linuxppc-embedded@lists.linuxppc.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 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.