diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-10-28 18:06:29 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-10-30 18:53:24 +0100 |
commit | 0cca93162f0176a47a95a71edf84801848af9699 (patch) | |
tree | b5f605a67ce19de9da73a887d568c911423a7c5c /src/superio/nsc | |
parent | 3e6ba4daccd9fdc451c6c4704e7d02ca6e6e85fc (diff) |
Drop SuperIO nsc/pc8374
All boards using this SuperIO have been removed from the tree.
Change-Id: I1d13ec7c5f27e82523612af7f07fca3176953600
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/12239
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/superio/nsc')
-rw-r--r-- | src/superio/nsc/Kconfig | 2 | ||||
-rw-r--r-- | src/superio/nsc/Makefile.inc | 1 | ||||
-rw-r--r-- | src/superio/nsc/pc8374/Makefile.inc | 22 | ||||
-rw-r--r-- | src/superio/nsc/pc8374/early_init.c | 56 | ||||
-rw-r--r-- | src/superio/nsc/pc8374/pc8374.h | 35 | ||||
-rw-r--r-- | src/superio/nsc/pc8374/superio.c | 71 |
6 files changed, 0 insertions, 187 deletions
diff --git a/src/superio/nsc/Kconfig b/src/superio/nsc/Kconfig index 2243ee4861..be5c3b5ae6 100644 --- a/src/superio/nsc/Kconfig +++ b/src/superio/nsc/Kconfig @@ -18,8 +18,6 @@ ## -config SUPERIO_NSC_PC8374 - bool config SUPERIO_NSC_PC87309 bool config SUPERIO_NSC_PC87360 diff --git a/src/superio/nsc/Makefile.inc b/src/superio/nsc/Makefile.inc index fb50bce9a5..b990f2e166 100644 --- a/src/superio/nsc/Makefile.inc +++ b/src/superio/nsc/Makefile.inc @@ -17,7 +17,6 @@ ## Foundation, Inc. ## -subdirs-y += pc8374 subdirs-y += pc87309 subdirs-y += pc87360 subdirs-y += pc87366 diff --git a/src/superio/nsc/pc8374/Makefile.inc b/src/superio/nsc/pc8374/Makefile.inc deleted file mode 100644 index b31172bb5f..0000000000 --- a/src/superio/nsc/pc8374/Makefile.inc +++ /dev/null @@ -1,22 +0,0 @@ -## -## This file is part of the coreboot project. -## -## Copyright (C) 2000 AG Electronics Ltd. -## Copyright (C) 2003-2004 Linux Networx -## -## 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. -## -## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc. -## - -ramstage-$(CONFIG_SUPERIO_NSC_PC8374) += superio.c diff --git a/src/superio/nsc/pc8374/early_init.c b/src/superio/nsc/pc8374/early_init.c deleted file mode 100644 index e068413f73..0000000000 --- a/src/superio/nsc/pc8374/early_init.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2000 AG Electronics Ltd. - * Copyright (C) 2003-2004 Linux Networx - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc. - */ - -#include <arch/io.h> -#include "pc8374.h" - -static void pc8374_enable(u16 iobase, u8 *init) -{ - u8 val, count; - - outb(0x29, iobase); - val = inb(iobase + 1); - val |= 0x91; - outb(val, iobase + 1); - - for (count = 0; count < 255; count++) - if (inb(iobase + 1) == 0x91) - break; - - for (; *init; init++) { - outb(*init, iobase); - val = inb(iobase + 1); - init++; - val &= *init; - init++; - val |= *init; - outb(val, iobase + 1); - } -} - -static void pc8374_enable_dev(pnp_devfn_t dev, u16 iobase) -{ - pnp_set_logical_device(dev); - pnp_set_enable(dev, 0); - if (iobase) - pnp_set_iobase(dev, PNP_IDX_IO0, iobase); - pnp_set_enable(dev, 1); -} diff --git a/src/superio/nsc/pc8374/pc8374.h b/src/superio/nsc/pc8374/pc8374.h deleted file mode 100644 index 8e2874aa30..0000000000 --- a/src/superio/nsc/pc8374/pc8374.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2000 AG Electronics Ltd. - * Copyright (C) 2003-2004 Linux Networx - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc. - */ - -#ifndef SUPERIO_NSC_PC8374_PC8374_H -#define SUPERIO_NSC_PC8374_PC8374_H - -#define PC8374_FDC 0x00 /* Floppy */ -#define PC8374_PP 0x01 /* Parallel port */ -#define PC8374_SP2 0x02 /* Com2 */ -#define PC8374_SP1 0x03 /* Com1 */ -#define PC8374_SWC 0x04 -#define PC8374_KBCM 0x05 /* Mouse */ -#define PC8374_KBCK 0x06 /* Keyboard */ -#define PC8374_GPIO 0x07 -#define PC8374_HM 0x08 - -#endif diff --git a/src/superio/nsc/pc8374/superio.c b/src/superio/nsc/pc8374/superio.c deleted file mode 100644 index 110cfcb190..0000000000 --- a/src/superio/nsc/pc8374/superio.c +++ /dev/null @@ -1,71 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2000 AG Electronics Ltd. - * Copyright (C) 2003-2004 Linux Networx - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc. - */ - -#include <arch/io.h> -#include <device/device.h> -#include <device/pnp.h> -#include <console/console.h> -#include <string.h> -#include <pc80/keyboard.h> -#include <stdlib.h> -#include "pc8374.h" - -static void init(struct device *dev) -{ - - if (!dev->enabled) - return; - - switch(dev->path.pnp.device) { - case PC8374_KBCK: - pc_keyboard_init(); - break; - } -} - -static struct device_operations ops = { - .read_resources = pnp_read_resources, - .set_resources = pnp_set_resources, - .enable_resources = pnp_enable_resources, - .enable = pnp_enable, - .init = init, -}; - -static struct pnp_info pnp_dev_info[] = { - { &ops, PC8374_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x07fa, 0}, }, - { &ops, PC8374_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x04f8, 0}, }, - { &ops, PC8374_SP2, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, {0x07f8, 0}, }, - { &ops, PC8374_SP1, PNP_IO0 | PNP_IRQ0, {0x07f8, 0}, }, - { &ops, PC8374_SWC, PNP_IO0 | PNP_IRQ0, {0xfff0, 0}, }, - { &ops, PC8374_KBCM, PNP_IRQ0, }, - { &ops, PC8374_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x07f8, 0}, {0x07f8, 4}, }, - { &ops, PC8374_GPIO, PNP_IO0 | PNP_IRQ0, {0xfff8, 0}, }, -}; - -static void enable_dev(struct device *dev) -{ - pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); -} - -struct chip_operations superio_nsc_pc8374_ops = { - CHIP_NAME("NSC PC8374 Super I/O") - .enable_dev = enable_dev, -}; |