summaryrefslogtreecommitdiff
path: root/src/superio/common/conf_mode.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-01 09:14:58 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-01 21:27:50 +0100
commitb14bf88697950c63fa786cbd70dab3070e464807 (patch)
tree9eafeeb9e620e430a2f7e3a465e349ac404198f8 /src/superio/common/conf_mode.c
parentd2040737a9c3e07fee5392079dea88988ad8c56c (diff)
downloadcoreboot-b14bf88697950c63fa786cbd70dab3070e464807.tar.xz
superio/common/conf_mode.c: Introduce 'new' enter/exit keys for SIO's
Super I/O manufactures have found new and innovative ways to enter and exit out of LDN config in PNP config space. Change-Id: Id3f5882664f1b2b18b49f32373430cf4b037ad22 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7308 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Diffstat (limited to 'src/superio/common/conf_mode.c')
-rw-r--r--src/superio/common/conf_mode.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c
index 271d4ef613..92bd7a3691 100644
--- a/src/superio/common/conf_mode.c
+++ b/src/superio/common/conf_mode.c
@@ -28,12 +28,30 @@ void pnp_enter_conf_mode_55(struct device *dev)
outb(0x55, dev->path.pnp.port);
}
+void pnp_enter_conf_mode_6767(struct device *dev)
+{
+ outb(0x67, dev->path.pnp.port);
+ outb(0x67, dev->path.pnp.port);
+}
+
+void pnp_enter_conf_mode_7777(struct device *dev)
+{
+ outb(0x77, dev->path.pnp.port);
+ outb(0x77, dev->path.pnp.port);
+}
+
void pnp_enter_conf_mode_8787(struct device *dev)
{
outb(0x87, dev->path.pnp.port);
outb(0x87, dev->path.pnp.port);
}
+void pnp_enter_conf_mode_a0a0(struct device *dev)
+{
+ outb(0xa0, dev->path.pnp.port);
+ outb(0xa0, dev->path.pnp.port);
+}
+
void pnp_exit_conf_mode_aa(struct device *dev)
{
outb(0xaa, dev->path.pnp.port);
@@ -63,11 +81,26 @@ const struct pnp_mode_ops pnp_conf_mode_55_aa = {
.exit_conf_mode = pnp_exit_conf_mode_aa,
};
+const struct pnp_mode_ops pnp_conf_mode_6767_aa = {
+ .enter_conf_mode = pnp_enter_conf_mode_6767,
+ .exit_conf_mode = pnp_exit_conf_mode_aa,
+};
+
+const struct pnp_mode_ops pnp_conf_mode_7777_aa = {
+ .enter_conf_mode = pnp_enter_conf_mode_7777,
+ .exit_conf_mode = pnp_exit_conf_mode_aa,
+};
+
const struct pnp_mode_ops pnp_conf_mode_8787_aa = {
.enter_conf_mode = pnp_enter_conf_mode_8787,
.exit_conf_mode = pnp_exit_conf_mode_aa,
};
+const struct pnp_mode_ops pnp_conf_mode_a0a0_aa = {
+ .enter_conf_mode = pnp_enter_conf_mode_a0a0,
+ .exit_conf_mode = pnp_exit_conf_mode_aa,
+};
+
const struct pnp_mode_ops pnp_conf_mode_870155_aa = {
.enter_conf_mode = pnp_enter_conf_mode_870155aa,
.exit_conf_mode = pnp_exit_conf_mode_0202,