From: Florian Boelstler <euphoria@arcor.de>
To: linuxppc-embedded@ozlabs.org
Subject: Re: understanding an IO question
Date: Wed, 21 Feb 2007 15:54:08 +0100 [thread overview]
Message-ID: <erhmen$p6t$1@sea.gmane.org> (raw)
In-Reply-To: <9F3F0A752CAEBE4FA7E906CC2FBFF57C06A165@MERCURY.inside.istor.com>
Charles Krinke schrieb:
> I apologize for not making myself clearer. This is a kernel driver
> issue, not a user space issue. The issue is addressing the registers in
> a PCI device in its driver.
>
> We have a functioning code base that works with Linux 2.6.17.11 on our
> 8241 platform. We have built a new board using the 8541. Although the
> registers are addressable from uboot and can be read/written, once Linux
> boots, the registers cannot be addressed.
>
> I suspect this to be in either TLB1 setup or Outbound Address
> Translation windows.
>
> So,... my questions really are
> 2. "Are Outbound Address Translation windows reset by the arch/ppc/...
> Linux initialization and if so, where. If they are reset, where is the
> best place to put them back to the state I had set them up in uboot.
Well may be Kumar is the one to answer that at best.
However I am working on a solution, which uses MPC8540/MPC8541 and I
know for sure that POWBARs and friends aren't reset during Linux boot
*when PCI is completely disabled* in kernel config.
You may check if the appropriate set of POTAR, POWBAR and POWAR
registers are still configured after boot.
POTAR reflects your external device address, POWBAR your local one (e.g.
0x84000000, but only the 20 most-significant bits).
POWAR must be set to something like 0x80044013 (for a 1MB window).
Also a set of LAWBAR/LAWAR must appropriately match these settings.
See "Reference Manual" for details.
Good luck,
Florian
next prev parent reply other threads:[~2007-02-21 14:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 14:14 understanding an IO question Charles Krinke
2007-02-21 14:54 ` Florian Boelstler [this message]
2007-02-21 15:04 ` Kumar Gala
-- strict thread matches above, loose matches on Subject: below --
2007-02-23 14:16 Charles Krinke
2007-02-23 16:11 ` Kumar Gala
2007-02-21 18:29 Charles Krinke
2007-02-21 15:21 Charles Krinke
2007-02-21 18:03 ` Kumar Gala
2007-02-21 1:13 Charles Krinke
2007-02-21 8:50 ` Ami Levi Waves
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='erhmen$p6t$1@sea.gmane.org' \
--to=euphoria@arcor.de \
--cc=linuxppc-embedded@ozlabs.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.