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>
This commit is contained in:
parent
3e6ba4dacc
commit
0cca93162f
|
@ -18,8 +18,6 @@
|
|||
##
|
||||
|
||||
|
||||
config SUPERIO_NSC_PC8374
|
||||
bool
|
||||
config SUPERIO_NSC_PC87309
|
||||
bool
|
||||
config SUPERIO_NSC_PC87360
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
## Foundation, Inc.
|
||||
##
|
||||
|
||||
subdirs-y += pc8374
|
||||
subdirs-y += pc87309
|
||||
subdirs-y += pc87360
|
||||
subdirs-y += pc87366
|
||||
|
|
|
@ -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
|
|
@ -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);
|
||||
}
|
|
@ -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
|
|
@ -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,
|
||||
};
|
Loading…
Reference in New Issue