aboutsummaryrefslogtreecommitdiff
path: root/src/superio/nuvoton/nct5104d/early_init.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-04-03 03:19:41 +1100
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-06 06:08:37 +0200
commit3c04917a0023d383a06ed0d4215d7d50e7798059 (patch)
treedfc69053db436168b08ba4aff0a9f48d5ce54688 /src/superio/nuvoton/nct5104d/early_init.c
parent793a429eb57d105ca7bdf8c25cb1066678c2721d (diff)
superio/nuvoton/nct5104d: 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: I14c438968bfed917977862efd8a393ec48cb04c9 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5446 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/superio/nuvoton/nct5104d/early_init.c')
-rw-r--r--src/superio/nuvoton/nct5104d/early_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/superio/nuvoton/nct5104d/early_init.c b/src/superio/nuvoton/nct5104d/early_init.c
index 9c0cf0fad4..f3d8990fed 100644
--- a/src/superio/nuvoton/nct5104d/early_init.c
+++ b/src/superio/nuvoton/nct5104d/early_init.c
@@ -19,8 +19,7 @@
*/
#include <arch/io.h>
-#include <arch/romcc_io.h>
-#include <device/pnp_def.h>
+#include <device/pnp.h>
#include "nct5104d.h"
static void pnp_enter_extended_mode(device_t dev)
@@ -36,7 +35,7 @@ static void pnp_exit_extended_mode(device_t dev)
outb(0xaa,port);
}
-static void nct5104d_enable_serial(device_t dev, u16 iobase)
+void nct5104d_enable_serial(device_t dev, u16 iobase)
{
pnp_enter_extended_mode(dev);
pnp_set_logical_device(dev);