include/asm-ppc/platforms/
Tom Rini
trini at kernel.crashing.org
Fri Nov 30 02:26:25 EST 2001
On Thu, Nov 29, 2001 at 10:48:46PM +1100, Paul Mackerras wrote:
> The only reason for having include/asm-ppc/platforms under
> include/asm-ppc is so that serial.h can include the right
> blah_serial.h file. We can get around that by using
> early_serial_setup except that that doesn't work if the serial driver
> is built as a module. The boot stuff also needs to get at the first
> serial port but we can manage that by requiring the platform.h file to
> define e.g. BOOT_SERIAL_ADDRESS, BOOT_SERIAL_REG_SHIFT, etc., if it
> wants to use a serial port in the boot wrapper. The boot wrapper code
> then just does #include <platform.h>.
What would <asm/serial.h> contain here? Keep in mind that some ports
'just work' with the default <asm/serial.h>.
> Alternatively we can add a -Iarch/$(ARCH) flag for cc and put
> platform.h in arch/ppc and the platform headers in
> arch/ppc/platforms. This is Keith's preferred solution and it feels
> right to me too.
This would probably be better.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list