trival. All the changes is about comment and spaces.
In superio folder. 1. Delete trailing white spaces. 2. Change the // comment to /* */. 3. Add some copyright header. 4. reindent. 5. delete multi blank lines. I tried my best to find them. If anything left, please fix it or tell me. Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Zheng Bao <zheng.bao@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4993 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_FINTEK_F71805F) += superio.o
|
obj-$(CONFIG_SUPERIO_FINTEK_F71805F) += superio.o
|
||||||
|
|
||||||
|
@@ -110,4 +110,3 @@ struct chip_operations superio_fintek_f71805f_ops = {
|
|||||||
CHIP_NAME("Fintek F71805F Super I/O")
|
CHIP_NAME("Fintek F71805F Super I/O")
|
||||||
.enable_dev = enable_dev
|
.enable_dev = enable_dev
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_INTEL_I3100) += superio.o
|
obj-$(CONFIG_SUPERIO_INTEL_I3100) += superio.o
|
||||||
|
|
||||||
|
@@ -105,4 +105,3 @@ struct chip_operations superio_intel_i3100_ops = {
|
|||||||
CHIP_NAME("Intel 3100 Super I/O")
|
CHIP_NAME("Intel 3100 Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8661F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8661F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8661f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8661F */
|
#endif /* _SUPERIO_ITE_IT8661F */
|
||||||
|
|
||||||
|
@@ -29,4 +29,3 @@
|
|||||||
#define IT8661F_PP 0x03 /* Parallel port */
|
#define IT8661F_PP 0x03 /* Parallel port */
|
||||||
#define IT8661F_IR 0x04 /* IR */
|
#define IT8661F_IR 0x04 /* IR */
|
||||||
#define IT8661F_GPIO 0x05 /* GPIO & Alternate Function Configuration */
|
#define IT8661F_GPIO 0x05 /* GPIO & Alternate Function Configuration */
|
||||||
|
|
||||||
|
@@ -91,4 +91,3 @@ static void it8661f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
/* (3) Exit the configuration state (MB PnP mode). */
|
/* (3) Exit the configuration state (MB PnP mode). */
|
||||||
it8661f_sio_write(0x00, IT8661F_CONFIG_REG_CC, 0x02);
|
it8661f_sio_write(0x00, IT8661F_CONFIG_REG_CC, 0x02);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -80,4 +80,3 @@ struct chip_operations superio_ite_it8661f_ops = {
|
|||||||
CHIP_NAME("ITE IT8661F Super I/O")
|
CHIP_NAME("ITE IT8661F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8671F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8671F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8671f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8671F */
|
#endif /* _SUPERIO_ITE_IT8671F */
|
||||||
|
|
||||||
|
@@ -27,4 +27,3 @@
|
|||||||
#define IT8671F_PP 0x03 /* Parallel port */
|
#define IT8671F_PP 0x03 /* Parallel port */
|
||||||
#define IT8671F_KBCK 0x05 /* Keyboard */
|
#define IT8671F_KBCK 0x05 /* Keyboard */
|
||||||
#define IT8671F_KBCM 0x06 /* Mouse */
|
#define IT8671F_KBCM 0x06 /* Mouse */
|
||||||
|
|
||||||
|
@@ -91,4 +91,3 @@ static void it8671f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
/* (3) Exit the configuration state (MB PnP mode). */
|
/* (3) Exit the configuration state (MB PnP mode). */
|
||||||
it8671f_sio_write(0x00, IT8671F_CONFIG_REG_CC, 0x02);
|
it8671f_sio_write(0x00, IT8671F_CONFIG_REG_CC, 0x02);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -85,4 +85,3 @@ struct chip_operations superio_ite_it8671f_ops = {
|
|||||||
CHIP_NAME("ITE IT8671F Super I/O")
|
CHIP_NAME("ITE IT8671F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8673F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8673F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8673f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8673F */
|
#endif /* _SUPERIO_ITE_IT8673F */
|
||||||
|
|
||||||
|
@@ -28,4 +28,3 @@
|
|||||||
#define IT8673F_FAN 0x04 /* Fan controller */
|
#define IT8673F_FAN 0x04 /* Fan controller */
|
||||||
#define IT8673F_KBCK 0x05 /* Keyboard */
|
#define IT8673F_KBCK 0x05 /* Keyboard */
|
||||||
#define IT8673F_KBCM 0x06 /* Mouse */
|
#define IT8673F_KBCM 0x06 /* Mouse */
|
||||||
|
|
||||||
|
@@ -89,4 +89,3 @@ static void it8673f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
/* (3) Exit the configuration state (MB PnP mode). */
|
/* (3) Exit the configuration state (MB PnP mode). */
|
||||||
it8673f_sio_write(0x00, IT8673F_CONFIG_REG_CC, 0x02);
|
it8673f_sio_write(0x00, IT8673F_CONFIG_REG_CC, 0x02);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -87,4 +87,3 @@ struct chip_operations superio_ite_it8673f_ops = {
|
|||||||
CHIP_NAME("ITE IT8673F Super I/O")
|
CHIP_NAME("ITE IT8673F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8705F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8705F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8705f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8705F */
|
#endif /* _SUPERIO_ITE_IT8705F */
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@
|
|||||||
#define IT8705F_GAME 0x06 /* GAME port */
|
#define IT8705F_GAME 0x06 /* GAME port */
|
||||||
#define IT8705F_IR 0x07 /* Consumer IR */
|
#define IT8705F_IR 0x07 /* Consumer IR */
|
||||||
#define IT8705F_MIDI 0x08 /* MIDI port */
|
#define IT8705F_MIDI 0x08 /* MIDI port */
|
||||||
|
|
||||||
|
@@ -80,4 +80,3 @@ static void it8705f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
/* (3) Exit the configuration state (MB PnP mode). */
|
/* (3) Exit the configuration state (MB PnP mode). */
|
||||||
it8705f_sio_write(0x00, IT8705F_CONFIG_REG_CC, 0x02);
|
it8705f_sio_write(0x00, IT8705F_CONFIG_REG_CC, 0x02);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -88,4 +88,3 @@ struct chip_operations superio_ite_it8705f_ops = {
|
|||||||
CHIP_NAME("ITE IT8705F Super I/O")
|
CHIP_NAME("ITE IT8705F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8712F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8712F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8712f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8712F */
|
#endif /* _SUPERIO_ITE_IT8712F */
|
||||||
|
|
||||||
|
@@ -32,4 +32,3 @@
|
|||||||
#define IT8712F_MIDI 0x08 /* MIDI port */
|
#define IT8712F_MIDI 0x08 /* MIDI port */
|
||||||
#define IT8712F_GAME 0x09 /* GAME port */
|
#define IT8712F_GAME 0x09 /* GAME port */
|
||||||
#define IT8712F_IR 0x0a /* Consumer IR */
|
#define IT8712F_IR 0x0a /* Consumer IR */
|
||||||
|
|
||||||
|
@@ -47,7 +47,6 @@ static void it8712f_sio_write(uint8_t ldn, uint8_t index, uint8_t value)
|
|||||||
outb(value, SIO_DATA);
|
outb(value, SIO_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void it8712f_enter_conf(void)
|
static void it8712f_enter_conf(void)
|
||||||
{
|
{
|
||||||
/* Enter the configuration state (MB PnP mode). */
|
/* Enter the configuration state (MB PnP mode). */
|
||||||
@@ -67,7 +66,6 @@ static void it8712f_exit_conf(void)
|
|||||||
it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CC, 0x02);
|
it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CC, 0x02);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void it8712f_24mhz_clkin(void)
|
static void it8712f_24mhz_clkin(void)
|
||||||
{
|
{
|
||||||
it8712f_enter_conf();
|
it8712f_enter_conf();
|
||||||
@@ -76,10 +74,10 @@ static void it8712f_24mhz_clkin(void)
|
|||||||
it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CLOCKSEL, 0x1);
|
it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CLOCKSEL, 0x1);
|
||||||
|
|
||||||
it8712f_exit_conf();
|
it8712f_exit_conf();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void it8712f_enable_3vsbsw(void) {
|
static void it8712f_enable_3vsbsw(void)
|
||||||
|
{
|
||||||
|
|
||||||
/* We need to set enable 3VSBSW#, this was documented only in IT8712F_V0.9.2!
|
/* We need to set enable 3VSBSW#, this was documented only in IT8712F_V0.9.2!
|
||||||
LDN 7, reg 0x2a - needed for S3, or memory power will be cut off.
|
LDN 7, reg 0x2a - needed for S3, or memory power will be cut off.
|
||||||
@@ -93,7 +91,6 @@ static void it8712f_enable_3vsbsw(void) {
|
|||||||
it8712f_exit_conf();
|
it8712f_exit_conf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void it8712f_kill_watchdog(void)
|
static void it8712f_kill_watchdog(void)
|
||||||
{
|
{
|
||||||
it8712f_enter_conf();
|
it8712f_enter_conf();
|
||||||
|
@@ -145,4 +145,3 @@ struct chip_operations superio_ite_it8712f_ops = {
|
|||||||
CHIP_NAME("ITE IT8712F Super I/O")
|
CHIP_NAME("ITE IT8712F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8716F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8716F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8716f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8716F */
|
#endif /* _SUPERIO_ITE_IT8716F */
|
||||||
|
|
||||||
|
@@ -32,4 +32,3 @@
|
|||||||
#define IT8716F_MIDI 0x08 /* MIDI port */
|
#define IT8716F_MIDI 0x08 /* MIDI port */
|
||||||
#define IT8716F_GAME 0x09 /* GAME port */
|
#define IT8716F_GAME 0x09 /* GAME port */
|
||||||
#define IT8716F_IR 0x0a /* Consumer IR */
|
#define IT8716F_IR 0x0a /* Consumer IR */
|
||||||
|
|
||||||
|
@@ -35,4 +35,3 @@ static void it8716f_enable_dev(device_t dev, unsigned iobase)
|
|||||||
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
||||||
pnp_set_enable(dev, 1);
|
pnp_set_enable(dev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -68,4 +68,3 @@ static void it8716f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
pnp_set_enable(dev, 1);
|
pnp_set_enable(dev, 1);
|
||||||
pnp_exit_ext_func_mode(dev);
|
pnp_exit_ext_func_mode(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_ITE_IT8718F) += superio.o
|
obj-$(CONFIG_SUPERIO_ITE_IT8718F) += superio.o
|
||||||
|
|
||||||
|
@@ -33,4 +33,3 @@ struct superio_ite_it8718f_config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_ITE_IT8718F */
|
#endif /* _SUPERIO_ITE_IT8718F */
|
||||||
|
|
||||||
|
@@ -97,4 +97,3 @@ static void it8718f_enable_serial(device_t dev, unsigned iobase)
|
|||||||
/* (3) Exit the configuration state (MB PnP mode). */
|
/* (3) Exit the configuration state (MB PnP mode). */
|
||||||
it8718f_exit_conf();
|
it8718f_exit_conf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -89,4 +89,3 @@ struct chip_operations superio_ite_it8718f_ops = {
|
|||||||
CHIP_NAME("ITE IT8718F Super I/O")
|
CHIP_NAME("ITE IT8718F Super I/O")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC8374) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC8374) += superio.o
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
struct chip_operations;
|
struct chip_operations;
|
||||||
extern struct chip_operations superio_nsc_pc8374_ops;
|
extern struct chip_operations superio_nsc_pc8374_ops;
|
||||||
|
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC8374_FDC 0x00 /* Floppy */
|
#define PC8374_FDC 0x00 /* Floppy */
|
||||||
#define PC8374_PP 0x01 /* Parallel port */
|
#define PC8374_PP 0x01 /* Parallel port */
|
||||||
#define PC8374_SP2 0x02 /* Com2 */
|
#define PC8374_SP2 0x02 /* Com2 */
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc8374.h"
|
#include "pc8374.h"
|
||||||
|
|
||||||
@@ -22,8 +43,6 @@ static void pc8374_enable(unsigned iobase, u8 *init)
|
|||||||
val |= *init;
|
val |= *init;
|
||||||
outb(val, iobase+1);
|
outb(val, iobase+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pc8374_enable_dev(device_t dev, unsigned iobase)
|
static void pc8374_enable_dev(device_t dev, unsigned iobase)
|
||||||
@@ -34,4 +53,3 @@ static void pc8374_enable_dev(device_t dev, unsigned iobase)
|
|||||||
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
||||||
pnp_set_enable(dev, 1);
|
pnp_set_enable(dev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,23 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -61,7 +78,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC8374_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
|
{ &ops, PC8374_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &ops,
|
pnp_enable_devices(dev, &ops,
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87309) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87309) += superio.o
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{&ops, PC87309_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x04f8, 0},},
|
{&ops, PC87309_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x04f8, 0},},
|
||||||
{&ops, PC87309_SP2, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, {0x7f8, 0},},
|
{&ops, PC87309_SP2, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, {0x7f8, 0},},
|
||||||
{&ops, PC87309_SP1, PNP_IO0 | PNP_IRQ0, {0x7f8, 0},},
|
{&ops, PC87309_SP1, PNP_IO0 | PNP_IRQ0, {0x7f8, 0},},
|
||||||
// TODO: PM.
|
/* TODO: PM. */
|
||||||
{&ops, PC87309_KBCM, PNP_IRQ0},
|
{&ops, PC87309_KBCM, PNP_IRQ0},
|
||||||
{&ops, PC87309_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x7f8, 0}, {0x7f8, 0x4},},
|
{&ops, PC87309_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x7f8, 0}, {0x7f8, 0x4},},
|
||||||
};
|
};
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87351) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87351) += superio.o
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
struct chip_operations;
|
struct chip_operations;
|
||||||
extern struct chip_operations superio_nsc_pc87351_ops;
|
extern struct chip_operations superio_nsc_pc87351_ops;
|
||||||
|
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC87351_FDC 0x00 /* Floppy */
|
#define PC87351_FDC 0x00 /* Floppy */
|
||||||
#define PC87351_PP 0x01 /* Parallel port */
|
#define PC87351_PP 0x01 /* Parallel port */
|
||||||
#define PC87351_SP2 0x02 /* Com2 */
|
#define PC87351_SP2 0x02 /* Com2 */
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87351.h"
|
#include "pc87351.h"
|
||||||
|
|
||||||
|
@@ -1,12 +1,29 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Richard A Smith
|
* Richard A Smith
|
||||||
* I derived this code from the pc87360 device and removed the stuff the 87351
|
* I derived this code from the pc87360 device and removed the stuff the 87351
|
||||||
* dosen't do.
|
* dosen't do.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -68,7 +85,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC87351_FSD, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
|
{ &ops, PC87351_FSD, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &pnp_ops,
|
pnp_enable_devices(dev, &pnp_ops,
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87360) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87360) += superio.o
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
struct chip_operations;
|
struct chip_operations;
|
||||||
extern struct chip_operations superio_nsc_pc87360_ops;
|
extern struct chip_operations superio_nsc_pc87360_ops;
|
||||||
|
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC87360_FDC 0x00 /* Floppy */
|
#define PC87360_FDC 0x00 /* Floppy */
|
||||||
#define PC87360_PP 0x01 /* Parallel port */
|
#define PC87360_PP 0x01 /* Parallel port */
|
||||||
#define PC87360_SP2 0x02 /* Com2 */
|
#define PC87360_SP2 0x02 /* Com2 */
|
||||||
|
@@ -1,7 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87360.h"
|
#include "pc87360.h"
|
||||||
|
|
||||||
|
|
||||||
static void pc87360_enable_serial(device_t dev, unsigned iobase)
|
static void pc87360_enable_serial(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
|
@@ -1,6 +1,23 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -64,7 +81,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC87360_WDT, PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
|
{ &ops, PC87360_WDT, PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &ops,
|
pnp_enable_devices(dev, &ops,
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87366) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87366) += superio.o
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
extern struct chip_operations superio_nsc_pc87366_ops;
|
extern struct chip_operations superio_nsc_pc87366_ops;
|
||||||
|
|
||||||
#include <pc80/keyboard.h>
|
#include <pc80/keyboard.h>
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC87366_FDC 0x00 /* Floppy */
|
#define PC87366_FDC 0x00 /* Floppy */
|
||||||
#define PC87366_PP 0x01 /* Parallel port */
|
#define PC87366_PP 0x01 /* Parallel port */
|
||||||
#define PC87366_SP2 0x02 /* Com2 */
|
#define PC87366_SP2 0x02 /* Com2 */
|
||||||
@@ -13,4 +34,3 @@
|
|||||||
#define PC87366_MIDI 0x0C
|
#define PC87366_MIDI 0x0C
|
||||||
#define PC87366_VLM 0x0D
|
#define PC87366_VLM 0x0D
|
||||||
#define PC87366_TMS 0x0E
|
#define PC87366_TMS 0x0E
|
||||||
|
|
||||||
|
@@ -1,7 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87366.h"
|
#include "pc87366.h"
|
||||||
|
|
||||||
|
|
||||||
static void pc87366_enable_serial(device_t dev, unsigned iobase)
|
static void pc87366_enable_serial(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
|
@@ -1,6 +1,23 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -64,7 +81,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC87366_WDT, PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
|
{ &ops, PC87366_WDT, PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &pnp_ops,
|
pnp_enable_devices(dev, &pnp_ops,
|
||||||
|
@@ -1,2 +1,24 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
## Copyright (C) 2003-2004 Linux Networx
|
||||||
|
## Copyright (C) 2004 Tyan by yhlu
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,24 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
## Copyright (C) 2003-2004 Linux Networx
|
||||||
|
## Copyright (C) 2004 Tyan by yhlu
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87417) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87417) += superio.o
|
||||||
|
@@ -1,3 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
* Copyright (C) 2003-2004 Linux Networx
|
||||||
|
* Copyright (C) 2004 Tyan by yhlu
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
extern struct chip_operations superio_nsc_pc87417_ops;
|
extern struct chip_operations superio_nsc_pc87417_ops;
|
||||||
|
|
||||||
#include <pc80/keyboard.h>
|
#include <pc80/keyboard.h>
|
||||||
|
@@ -1,3 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
* Copyright (C) 2003-2004 Linux Networx
|
||||||
|
* Copyright (C) 2004 Tyan by yhlu
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC87417_FDC 0x00 /* Floppy */
|
#define PC87417_FDC 0x00 /* Floppy */
|
||||||
#define PC87417_PP 0x01 /* Parallel Port */
|
#define PC87417_PP 0x01 /* Parallel Port */
|
||||||
#define PC87417_SP2 0x02 /* Com2 */
|
#define PC87417_SP2 0x02 /* Com2 */
|
||||||
@@ -11,7 +33,7 @@
|
|||||||
|
|
||||||
#define PC87417_GPIO_DEV PNP_DEV(0x2e, PC87417_GPIO)
|
#define PC87417_GPIO_DEV PNP_DEV(0x2e, PC87417_GPIO)
|
||||||
/* This is to get around a romcc bug */
|
/* This is to get around a romcc bug */
|
||||||
//#define PC87417_XBUS_DEV PNP_DEV(0x2e, PC87417_XBUS)
|
/* #define PC87417_XBUS_DEV PNP_DEV(0x2e, PC87417_XBUS) */
|
||||||
#define PC87417_XBUS_DEV PNP_DEV(0x2e, 0x0f)
|
#define PC87417_XBUS_DEV PNP_DEV(0x2e, 0x0f)
|
||||||
|
|
||||||
#define PC87417_GPSEL 0xf0
|
#define PC87417_GPSEL 0xf0
|
||||||
@@ -88,5 +110,3 @@
|
|||||||
#define PC87417_HAP1 0x14
|
#define PC87417_HAP1 0x14
|
||||||
#define PC87417_XSCNF 0x15
|
#define PC87417_XSCNF 0x15
|
||||||
#define PC87417_XWBCNF 0x16
|
#define PC87417_XWBCNF 0x16
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,3 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
* Copyright (C) 2003-2004 Linux Networx
|
||||||
|
* Copyright (C) 2004 Tyan by yhlu
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87417.h"
|
#include "pc87417.h"
|
||||||
|
|
||||||
@@ -6,6 +28,7 @@ static void pc87417_disable_dev(device_t dev)
|
|||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
pnp_set_enable(dev, 0);
|
pnp_set_enable(dev, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pc87417_enable_dev(device_t dev, unsigned iobase)
|
static void pc87417_enable_dev(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
@@ -13,6 +36,7 @@ static void pc87417_enable_dev(device_t dev, unsigned iobase)
|
|||||||
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
||||||
pnp_set_enable(dev, 1);
|
pnp_set_enable(dev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xbus_cfg(device_t dev)
|
static void xbus_cfg(device_t dev)
|
||||||
{
|
{
|
||||||
uint8_t i, data;
|
uint8_t i, data;
|
||||||
|
@@ -1,7 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
* Copyright (C) 2003-2004 Linux Networx
|
||||||
|
* Copyright (C) 2004 Tyan by yhlu
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87417.h"
|
#include "pc87417.h"
|
||||||
|
|
||||||
|
|
||||||
static void pc87417_enable_serial(device_t dev, unsigned iobase)
|
static void pc87417_enable_serial(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
@@ -9,6 +30,7 @@ static void pc87417_enable_serial(device_t dev, unsigned iobase)
|
|||||||
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
||||||
pnp_set_enable(dev, 1);
|
pnp_set_enable(dev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pc87417_enable_dev(device_t dev)
|
static void pc87417_enable_dev(device_t dev)
|
||||||
{
|
{
|
||||||
pnp_set_logical_device(dev);
|
pnp_set_logical_device(dev);
|
||||||
|
@@ -1,8 +1,24 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* Copyright 2005 Tyan */
|
*
|
||||||
/* By yhlu */
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
* Copyright (C) 2003-2004 Linux Networx
|
||||||
|
* Copyright (C) 2004 Tyan by yhlu
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -65,7 +81,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC87417_RTC, PNP_IO0 | PNP_IO1, { 0xfffe, 0 }, {0xfffe, 0x4} },
|
{ &ops, PC87417_RTC, PNP_IO0 | PNP_IO1, { 0xfffe, 0 }, {0xfffe, 0x4} },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &pnp_ops,
|
pnp_enable_devices(dev, &pnp_ops,
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
@@ -1,2 +1,23 @@
|
|||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC87427) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC87427) += superio.o
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
extern struct chip_operations superio_nsc_pc87427_ops;
|
extern struct chip_operations superio_nsc_pc87427_ops;
|
||||||
|
|
||||||
#include <pc80/keyboard.h>
|
#include <pc80/keyboard.h>
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#define PC87427_GPIO_DEV PNP_DEV(0x2e, PC87427_GPIO)
|
#define PC87427_GPIO_DEV PNP_DEV(0x2e, PC87427_GPIO)
|
||||||
/* This is to get around a romcc bug */
|
/* This is to get around a romcc bug */
|
||||||
//#define PC87427_XBUS_DEV PNP_DEV(0x2e, PC87427_XBUS)
|
/* #define PC87427_XBUS_DEV PNP_DEV(0x2e, PC87427_XBUS) */
|
||||||
#define PC87427_XBUS_DEV PNP_DEV(0x2e, 0x0f)
|
#define PC87427_XBUS_DEV PNP_DEV(0x2e, 0x0f)
|
||||||
|
|
||||||
#define PC87427_GPSEL 0xf0
|
#define PC87427_GPSEL 0xf0
|
||||||
|
@@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc87427.h"
|
#include "pc87427.h"
|
||||||
|
|
||||||
|
@@ -1,6 +1,23 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* Copyright 2003-2004 Linux Networx */
|
* This file is part of the coreboot project.
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -12,7 +29,6 @@
|
|||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "pc87427.h"
|
#include "pc87427.h"
|
||||||
|
|
||||||
|
|
||||||
static void init(device_t dev)
|
static void init(device_t dev)
|
||||||
{
|
{
|
||||||
struct superio_nsc_pc87427_config *conf;
|
struct superio_nsc_pc87427_config *conf;
|
||||||
@@ -65,7 +81,6 @@ static struct pnp_info pnp_dev_info[] = {
|
|||||||
{ &ops, PC87427_MHC, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffe0, 0 }, { 0xffe0, 0 } },
|
{ &ops, PC87427_MHC, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffe0, 0 }, { 0xffe0, 0 } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
pnp_enable_devices(dev, &ops,
|
pnp_enable_devices(dev, &ops,
|
||||||
|
@@ -1,2 +1,22 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.c
|
object superio.c
|
||||||
|
@@ -1,2 +1,22 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC97307) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC97307) += superio.o
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _SUPERIO_NSC_PC97307
|
#ifndef _SUPERIO_NSC_PC97307
|
||||||
#define _SUPERIO_NSC_PC97307
|
#define _SUPERIO_NSC_PC97307
|
||||||
|
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC97307_KBCK 0x00 /* Keyboard */
|
#define PC97307_KBCK 0x00 /* Keyboard */
|
||||||
#define PC97307_KBCM 0x01 /* Mouse */
|
#define PC97307_KBCM 0x01 /* Mouse */
|
||||||
#define PC97307_RTC 0x02 /* Real-Time Clock */
|
#define PC97307_RTC 0x02 /* Real-Time Clock */
|
||||||
|
@@ -1,5 +1,22 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
@@ -1,2 +1,22 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.c
|
object superio.c
|
||||||
|
@@ -1,2 +1,22 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the coreboot project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
##
|
||||||
|
## 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
##
|
||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_NSC_PC97317) += superio.o
|
obj-$(CONFIG_SUPERIO_NSC_PC97317) += superio.o
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _SUPERIO_NSC_PC97317
|
#ifndef _SUPERIO_NSC_PC97317
|
||||||
#define _SUPERIO_NSC_PC97317
|
#define _SUPERIO_NSC_PC97317
|
||||||
|
|
||||||
@@ -17,4 +37,5 @@ struct superio_nsc_pc97317_config {
|
|||||||
struct uart8250 com1, com2;
|
struct uart8250 com1, com2;
|
||||||
struct pc_keyboard keyboard;
|
struct pc_keyboard keyboard;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _SUPERIO_NSC_PC97317 */
|
#endif /* _SUPERIO_NSC_PC97317 */
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#define PC97317_KBCK 0x00 /* Keyboard */
|
#define PC97317_KBCK 0x00 /* Keyboard */
|
||||||
#define PC97317_KBCM 0x01 /* Mouse */
|
#define PC97317_KBCM 0x01 /* Mouse */
|
||||||
#define PC97317_RTC 0x02 /* Real-Time Clock */
|
#define PC97317_RTC 0x02 /* Real-Time Clock */
|
||||||
@@ -7,4 +27,3 @@
|
|||||||
#define PC97317_SP1 0x06 /* Com1 */
|
#define PC97317_SP1 0x06 /* Com1 */
|
||||||
#define PC97317_GPIO 0x07
|
#define PC97317_GPIO 0x07
|
||||||
#define PC97317_PM 0x08 /* Power Management */
|
#define PC97317_PM 0x08 /* Power Management */
|
||||||
|
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/romcc_io.h>
|
#include <arch/romcc_io.h>
|
||||||
#include "pc97317.h"
|
#include "pc97317.h"
|
||||||
|
|
||||||
|
@@ -1,5 +1,22 @@
|
|||||||
/* Copyright 2000 AG Electronics Ltd. */
|
/*
|
||||||
/* This code is distributed without warranty under the GPL v2 (see COPYING) */
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 AG Electronics Ltd.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
config chip.h
|
config chip.h
|
||||||
object superio.o
|
object superio.o
|
||||||
|
|
||||||
|
@@ -20,4 +20,3 @@
|
|||||||
|
|
||||||
#config chip.h
|
#config chip.h
|
||||||
obj-$(CONFIG_SUPERIO_SMSC_FDC37M60X) += superio.o
|
obj-$(CONFIG_SUPERIO_SMSC_FDC37M60X) += superio.o
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user