From: Jon Smirl <hidden> Date: 2007-11-11 23:35:27
Which platform does pcspkr device, pnpPNP,100 belong to, amiga? I'd
like to IFDEF add_pcspkr(void) in setup-common.c for the right
platform.
--
Jon Smirl
jonsmirl@gmail.com
From: Jon Smirl <hidden> Date: 2007-11-12 00:07:23
On 11/11/07, Benjamin Herrenschmidt [off-list ref] wrote:
On Sun, 2007-11-11 at 18:35 -0500, Jon Smirl wrote:
quoted
Which platform does pcspkr device, pnpPNP,100 belong to, amiga? I'd
like to IFDEF add_pcspkr(void) in setup-common.c for the right
platform.
#ifdef is evil. What about multiplatform kernels ? Just test for the
presence of the device in the device-tree (use a platform driver maybe)
This code should be in a device driver so that it can be selected with
Kconfig. Can we #ifdef it now as a hint? I could make it a device
driver but I don't have any hardware to test it on.
I'm trying to get the mpc5200 kernel to build with platform bus turned
off (only of_platform bus). I'm almost there, just a couple more odd
places to patch up.
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2007-11-12 00:09:51
On Sun, 2007-11-11 at 19:07 -0500, Jon Smirl wrote:
This code should be in a device driver so that it can be selected with
Kconfig. Can we #ifdef it now as a hint? I could make it a device
driver but I don't have any hardware to test it on.
I'm trying to get the mpc5200 kernel to build with platform bus turned
off (only of_platform bus). I'm almost there, just a couple more odd
places to patch up.
Just don't do platform ifdef's, ever.
What you can do however is Kconfig options that get selected by
platforms that need a given service, and then use that as an ifdef for
that service.
A bit like how we select what interrupt controller drivers to built-in
for example.
Ben.
From: Jon Smirl <hidden> Date: 2007-11-12 00:18:14
On 11/11/07, Benjamin Herrenschmidt [off-list ref] wrote:
On Sun, 2007-11-11 at 19:07 -0500, Jon Smirl wrote:
quoted
This code should be in a device driver so that it can be selected with
Kconfig. Can we #ifdef it now as a hint? I could make it a device
driver but I don't have any hardware to test it on.
I'm trying to get the mpc5200 kernel to build with platform bus turned
off (only of_platform bus). I'm almost there, just a couple more odd
places to patch up.
Just don't do platform ifdef's, ever.
What you can do however is Kconfig options that get selected by
platforms that need a given service, and then use that as an ifdef for
that service.
A bit like how we select what interrupt controller drivers to built-in
for example.
Using this scheme, which platforms should select the pcspkr hardware?
--
Jon Smirl
jonsmirl@gmail.com
On Mon, 12 Nov 2007, Benjamin Herrenschmidt wrote:
On Sun, 2007-11-11 at 19:18 -0500, Jon Smirl wrote:
quoted
Using this scheme, which platforms should select the pcspkr hardware?
Run a poll :-) I suppose at least chrp/prep/pegasos
And definitely not Amiga/APUS ;-)
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
VAT BE 0413.825.160 · RPR Brussels
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Network and Software Technology Center Europe
The Corporate Village =B7 Da Vincilaan 7-D1 =B7 B-1935 Zaventem =B7 Belgi=
um
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7 =B7 B-1840 Londerzeel =B7 Belgium
VAT BE 0413.825.160 =B7 RPR Brussels
Fortis Bank Zaventem =B7 Swift GEBABEBB08A =B7 IBAN BE39001382358619
Ah yes, the AmigaOne. That's more a rebranded CHRP box...
Has nothing to do with CONFIG_AMIGA.
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
VAT BE 0413.825.160 · RPR Brussels
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
Right. And it's not even officially supported in the kernel yet
(unfortunately).
regards,
Gerhard
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser