superio/winbond/w83627ehg: Avoid .c includes
Following the same reasoning as commit
d304331
superio/fintek/f81865f: Avoid .c includes
Clean up the early_serial #include directives in mainboard/romstage
code.
Change-Id: Ib3a12fb8160729008bdaa8026365675a11325da0
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5448
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
59674d25be
commit
793a429eb5
|
@ -38,7 +38,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdk8/reset_test.c"
|
||||
#include "northbridge/amd/amdk8/early_ht.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "southbridge/via/vt8237r/early_smbus.c"
|
||||
#include "northbridge/amd/amdk8/debug.c" /* After vt8237r/early_smbus.c! */
|
||||
#include "cpu/x86/bist.h"
|
||||
|
|
|
@ -38,7 +38,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdk8/reset_test.c"
|
||||
#include "northbridge/amd/amdk8/early_ht.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "southbridge/via/vt8237r/early_smbus.c"
|
||||
#include "northbridge/amd/amdk8/debug.c" /* After vt8237r/early_smbus.c! */
|
||||
#include "cpu/x86/bist.h"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <pc80/mc146818rtc.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "northbridge/intel/i945/i945.h"
|
||||
#include "northbridge/intel/i945/raminit.h"
|
||||
#include "southbridge/intel/i82801gx/i82801gx.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <southbridge/amd/cs5536/early_smbus.c>
|
||||
#include <southbridge/amd/cs5536/early_setup.c>
|
||||
#include <superio/winbond/w83627ehg/early_serial.c>
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include <northbridge/amd/lx/raminit.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
#include <spd.h>
|
||||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdk8/reset_test.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include "superio/winbond/w83627ehg/early_init.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "cpu/x86/bist.h"
|
||||
#include "northbridge/amd/amdk8/debug.c"
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdk8/reset_test.c"
|
||||
#include "northbridge/amd/amdk8/debug.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "cpu/x86/bist.h"
|
||||
#include <spd.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "lib/delay.c"
|
||||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdfam10/reset_test.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "cpu/x86/bist.h"
|
||||
#include "northbridge/amd/amdfam10/debug.c"
|
||||
#include "northbridge/amd/amdfam10/setup_resource_map.c"
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
#include "lib/delay.c"
|
||||
#include "cpu/x86/lapic.h"
|
||||
#include "northbridge/amd/amdk8/reset_test.c"
|
||||
#include "superio/winbond/w83627ehg/early_serial.c"
|
||||
#include "superio/winbond/w83627ehg/early_init.c"
|
||||
#include <superio/winbond/w83627ehg/w83627ehg.h>
|
||||
#include "cpu/x86/bist.h"
|
||||
#include "northbridge/amd/amdk8/debug.c"
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
romstage-$(CONFIG_SUPERIO_WINBOND_W83627EHG) += early_init.c
|
||||
romstage-$(CONFIG_SUPERIO_WINBOND_W83627EHG) += early_serial.c
|
||||
ramstage-$(CONFIG_SUPERIO_WINBOND_W83627EHG) += superio.c
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arch/io.h>
|
||||
#include <device/pnp.h>
|
||||
#include "w83627ehg.h"
|
||||
|
||||
void w83627ehg_disable_dev(device_t dev)
|
||||
|
|
|
@ -20,16 +20,17 @@
|
|||
*/
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <device/pnp.h>
|
||||
#include "w83627ehg.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
void pnp_enter_ext_func_mode(device_t dev)
|
||||
{
|
||||
u16 port = dev >> 8;
|
||||
outb(0x87, port);
|
||||
outb(0x87, port);
|
||||
}
|
||||
|
||||
static void pnp_exit_ext_func_mode(device_t dev)
|
||||
void pnp_exit_ext_func_mode(device_t dev)
|
||||
{
|
||||
u16 port = dev >> 8;
|
||||
outb(0xaa, port);
|
||||
|
|
|
@ -60,4 +60,7 @@ void w83627ehg_disable_dev(device_t dev);
|
|||
void w83627ehg_enable_serial(device_t dev, u16 iobase);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
void pnp_enter_ext_func_mode(device_t dev);
|
||||
void pnp_exit_ext_func_mode(device_t dev);
|
||||
|
||||
#endif /* SUPERIO_WINBOND_W83627EHG_W83627EHG_H */
|
||||
|
|
Loading…
Reference in New Issue