From: Matt Sealey <matt@genesi-usa.com>
To: Jon Loeliger <jdl@freescale.com>
Cc: Olof Johansson <olof@lixom.net>,
"linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] 86xx: Enable the AC97 interface on 8641D board.
Date: Sun, 06 May 2007 23:42:15 +0100 [thread overview]
Message-ID: <463E59C7.9030309@genesi-usa.com> (raw)
In-Reply-To: <1178209046.17201.55.camel@ld0161-tx32>
Jon Loeliger wrote:
> On Thu, 2007-05-03 at 11:10, Olof Johansson wrote:
>
>> This sounds like something that firmware should take care of, not
>> hardcoded in the board code. Seems like the device is just a PCI device
>> that doesn't have a device tree entry.
>
> Well, it's not a PCI device at all.
A PCI Express southbridge - not much difference really is there?
>> Why not do this in u-boot instead?
>
> Why do it there? We'd have to do it _again_ in Linux
> if we didn't come in from U-Boot anyway.
Because the firmware should configure the board specifics if possible,
Linux should only be tweaking Northbridge/Southbridge settings if it
is truly configurable at runtime or boot. If the difference is between
whether an AC97 or Azalia codec is installed and soldered to the board,
and it is not possible to have both, really the firmware should be
setting up the chip so that only one is obviously usable.
Ostensibly Linux and any drivers should be able to check which is
enabled on the board - one revision may have AC97 and one may have
Azalia HD audio. If this can be swapped by simply having each driver
check the enabled codec mode on init, and dropping out if not correct,
then it's starting to get to be Plug And Play.
The alternative is that every revision of the board has it Hardcoded
Into A Board Support Package, with different device trees and strange
quirks which may or may not be easily determined, cluttering Kconfigs
and so on.
In theory; the firmware should do it, and if not, it should be done
as early in Linux boot (platform init, device tree fixup) as possible.
That's how we agreed to do it on the Efika after much, much discussion
and argument :D
--
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations
next prev parent reply other threads:[~2007-05-06 22:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 21:53 [PATCH] 86xx: Enable the AC97 interface on 8641D board Jon Loeliger
2007-05-03 14:44 ` Kumar Gala
2007-05-03 15:55 ` Jon Loeliger
2007-05-03 16:01 ` Kumar Gala
2007-05-03 16:03 ` Jon Loeliger
2007-05-03 16:10 ` Olof Johansson
2007-05-03 16:17 ` Jon Loeliger
2007-05-03 16:19 ` Kumar Gala
2007-05-03 17:28 ` Olof Johansson
2007-05-09 16:14 ` Jon Loeliger
2007-05-09 16:19 ` Kumar Gala
2007-05-03 17:26 ` Olof Johansson
2007-05-03 17:38 ` Scott Wood
2007-05-06 22:42 ` Matt Sealey [this message]
2007-05-10 5:16 ` Kumar Gala
2007-05-10 15:45 ` Jon Loeliger
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=463E59C7.9030309@genesi-usa.com \
--to=matt@genesi-usa.com \
--cc=jdl@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=olof@lixom.net \
/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.