From: "Steven A. Falco" <sfalco@harris.com>
To: Lixin Yao <Lixin.Yao@HSTX.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel
Date: Mon, 02 Feb 2009 09:59:50 -0500 [thread overview]
Message-ID: <49870A66.8030302@harris.com> (raw)
In-Reply-To: <03D77CA4AC7F4D48A6AB5DA3F1001B3F10A4B2@exchtxus2.HSTX.global.vpn>
Lixin Yao wrote:
>
>
> I use a San Disk compact flash (CF) card on a board with MPC8248
> processor. The CF is connected to data and address bus of the processor
> and operates in TRUE IDE mode. The registers are memory mapped. I can
> read the file system on the CF in u-boot (1.3.4). U-boot can identify
> the CF and mount file system correctly.
>
> The hardware is known good hardware.
>
> I use 2.6.28 kernel and configured support for PATA for the CF.
The second register set does not start at register 0. It starts
at register 6. We are using 1 chip select from the processor,
and generate two chip selects to the CF that are 0x80 apart (on
a sequoia board).
So here is what I am using on the modified sequoia board. Note
the 0x00000098 - you might think it should be 0x00000080 as per
the discussion above, but because the second register set starts
at 6, you have to build that into the address.
pata@1,0 {
compatible = "harris,hydra_temp-pata", "ata-generic";
bank-width = <2>;
reg = <0x00000001 0x00000000 0x00000020 0x00000001 0x00000098 0x00000004>;
reg-shift = <2>;
pio-mode = <6>;
interrupt-parent = <&UIC0>;
interrupts = <0x1b 0x4>;
};
Steve
next prev parent reply other threads:[~2009-02-02 14:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 22:23 Can not get PATA to work for Compact Flash with 2.6.28 kernel Lixin Yao
2009-02-02 14:59 ` Steven A. Falco [this message]
2009-02-02 15:52 ` Lixin Yao
2009-02-02 16:37 ` Steven A. Falco
2009-02-02 20:39 ` Lixin Yao
2009-02-02 21:51 ` Steven A. Falco
2009-02-02 22:00 ` Lixin Yao
2009-02-04 14:26 ` Steven A. Falco
-- strict thread matches above, loose matches on Subject: below --
2009-02-02 20:14 Aaron Pace
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=49870A66.8030302@harris.com \
--to=sfalco@harris.com \
--cc=Lixin.Yao@HSTX.com \
--cc=linuxppc-dev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).