summaryrefslogtreecommitdiffstats
path: root/src/superio/nsc
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2019-02-10 23:14:00 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-02-14 07:54:16 +0000
commit122457058ebc307ad83bbec54e06850f25c993a5 (patch)
tree5f33e33480a2729294976441edd725aea2d82c66 /src/superio/nsc
parente7705f2df1247112572f96f606b111b94d04fa2c (diff)
downloadcoreboot-122457058ebc307ad83bbec54e06850f25c993a5.tar.gz
coreboot-122457058ebc307ad83bbec54e06850f25c993a5.tar.bz2
coreboot-122457058ebc307ad83bbec54e06850f25c993a5.zip
superio/nsc/pc87392: Use common early_serial
Change-Id: I9437ee3f8830dc831aacfc62b9dd1943b73b98d4 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/31333 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/nsc')
-rw-r--r--src/superio/nsc/pc87392/Kconfig1
-rw-r--r--src/superio/nsc/pc87392/early_serial.c26
2 files changed, 1 insertions, 26 deletions
diff --git a/src/superio/nsc/pc87392/Kconfig b/src/superio/nsc/pc87392/Kconfig
index f0f6fd0e863a..adff8df4ed5e 100644
--- a/src/superio/nsc/pc87392/Kconfig
+++ b/src/superio/nsc/pc87392/Kconfig
@@ -15,3 +15,4 @@
config SUPERIO_NSC_PC87392
bool
+ select SUPERIO_NSC_COMMON_PRE_RAM
diff --git a/src/superio/nsc/pc87392/early_serial.c b/src/superio/nsc/pc87392/early_serial.c
deleted file mode 100644
index f8eb25531dd2..000000000000
--- a/src/superio/nsc/pc87392/early_serial.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <arch/io.h>
-#include "pc87392.h"
-
-static void pc87392_enable_serial(pnp_devfn_t dev, u16 iobase)
-{
- pnp_set_logical_device(dev);
- pnp_set_enable(dev, 0);
- pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
- pnp_set_enable(dev, 1);
-}