[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1338804972.7150.77.camel@pasglop>
Date: Mon, 04 Jun 2012 20:16:12 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Alessandro Rubini <rubini@...dd.com>, linux-kernel@...r.kernel.org,
giancarlo.asnaghi@...com, alan@...ux.intel.com, tglx@...utronix.de,
mingo@...hat.com, sameo@...ux.intel.com, x86@...nel.org,
Len Brown <lenb@...nel.org>
Subject: Re: [PATCH] x86/platform: sta2x11: add platform code
On Tue, 2012-05-29 at 00:39 -0700, H. Peter Anvin wrote:
> > So, it seems I must go device-tree for the chipset-like mounting.
> And
> > what about plug in boards? I may arrange a firmware-loader mechanism
> > as an alternative, so the vendor of each board can provide the the
> > platform data for all the sub devices. Actually, if firmware loader
> is
> > acceptable, I'd try it first, to avoid changing the boot procedure;
> > maybe I can save myself from the device tree.
> >
>
> If you're going to use a binary blob for the loader, use either ACPI 5
> SSDT or device tree format. This is *not* something where
> (re)invention is encouraged.
Right, a device-tree blob could easily be passed an x86 has the
infrastructure to use it already afaik.
It then becomes a matter of the bootloader to carry it over to the
kernel a way or another. If the "vendor" boards don't do the right
thing, you can always do like powerpc for those cases and "package" the
device-tree blob in the zImage wrapper.
That way, distribution install tools etc.... can stick the right
device-tree before doing whatever "flashing" of the image is needed for
booting etc... and the main kernel image remains agnostic.
That or the ACPI way but I know nothing about it and thus naturally
assume it's harder :-)
Cheers,
Ben.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists