See patch.
Enable the NSC PC87427 early_init to be used with CAR boards.
The regular coompiler will complain about unused variables or unused functions. Remove unused variables, and only include unused functions if __ROMCC__ is defined. Signed-off-by: Alexandru Gagniuc <mr.nuke...@gmail.com> Index: src/superio/nsc/pc87427/early_init.c =================================================================== --- src/superio/nsc/pc87427/early_init.c (revision 6429) +++ src/superio/nsc/pc87427/early_init.c (working copy) @@ -22,12 +22,13 @@ #include <arch/romcc_io.h> #include "pc87427.h" +#ifdef __ROMCC__ static void pc87427_disable_dev(device_t dev) { pnp_set_logical_device(dev); pnp_set_enable(dev, 0); } - +#endif static void pc87427_enable_dev(device_t dev, u16 iobase) { pnp_set_logical_device(dev); @@ -36,9 +37,10 @@ pnp_set_enable(dev, 1); } +#ifdef __ROMCC__ static void xbus_cfg(device_t dev) { - u8 i, data; + u8 i; u16 xbus_index; pnp_set_logical_device(dev); @@ -52,3 +54,4 @@ for (i = 0; i <= 0xf; i++) outb((i << 4), xbus_index + PC87427_HAP0); } +#endif
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot