From: Adrian Cox <adrian@humboldt.co.uk>
To: Michael Sokolov <msokolov@ivan.Harhan.ORG>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: VT82C686B IDE and Linux/PPC woes
Date: Mon, 26 Nov 2001 23:35:41 +0000 [thread overview]
Message-ID: <3C02D1CD.9050307@humboldt.co.uk> (raw)
In-Reply-To: 0111262205.AA22280@ivan.Harhan.ORG
Michael Sokolov wrote:
> Has anyone here other than us with the Adirondack ever designed a
> PPC board with a VT82C686B south bridge and put Linux/PPC on it? If
> anyone has done this, what magic did you do for the IDE?
Almost (VT82C686A) for a custom control system (item 1 on
http://www.varisys.co.uk/custom.html).
As your firmware works you've already done most of the difficult bits.
Could there be something wrong with your ppc_ide_md.ide_init_hwif
function? This is mine, as mangled by Mozilla:
static void __init
hppb_ide_init_hwif_ports(hw_regs_t *hw, ide_ioreg_t data_port,
ide_ioreg_t ctrl_port, int *irq)
{
ide_ioreg_t reg = data_port;
uint alt_status_base;
int i;
for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
hw->io_ports[i] = reg++;
}
if (data_port == hppb_ide_regbase[0]) {
alt_status_base = hppb_ide_ctl_regbase[0] + 2;
hw->irq = 14;
}
else if (data_port == hppb_ide_regbase[1]) {
alt_status_base = hppb_ide_ctl_regbase[1] + 2;
hw->irq = 15;
}
else {
alt_status_base = 0;
hw->irq = 0;
}
if (ctrl_port) {
hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
} else {
hw->io_ports[IDE_CONTROL_OFFSET] = alt_status_base;
}
if (irq != NULL) {
*irq = hw->irq;
}
return;
}
--
Adrian Cox http://www.humboldt.co.uk/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-11-26 23:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-26 22:05 VT82C686B IDE and Linux/PPC woes Michael Sokolov
2001-11-26 23:35 ` Adrian Cox [this message]
2001-11-27 2:50 ` Paul Mackerras
-- strict thread matches above, loose matches on Subject: below --
2001-11-27 18:27 Michael Sokolov
2001-11-27 19:01 ` Adrian Cox
2001-11-27 17:10 Michael Sokolov
2001-11-27 17:26 ` Adrian Cox
2001-11-26 21:26 Michael Sokolov
2001-11-26 22:04 ` mod+linuxppc-embedded
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=3C02D1CD.9050307@humboldt.co.uk \
--to=adrian@humboldt.co.uk \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=msokolov@ivan.Harhan.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.