[coreboot-gerrit] Change in coreboot[master]: superio/common/conf_mode.c: Add enter function using twice 0xA5
Anonymous Coward (Code Review)
gerrit at coreboot.org
Fri Jan 5 13:44:57 CET 2018
fhendriks at eltan.com has uploaded this change for review. ( https://review.coreboot.org/23135
Change subject: superio/common/conf_mode.c: Add enter function using twice 0xA5
......................................................................
superio/common/conf_mode.c: Add enter function using twice 0xA5
Super I/O requires writing twice 0xA5 to enter config mode.
Change-Id: I58fce31f0a2483e61e9d31f38ab5a059b8cf4f83
Signed-off-by: Frans Hendriks <fhendriks at eltan.com>
---
M src/include/superio/conf_mode.h
M src/superio/common/conf_mode.c
2 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/23135/1
diff --git a/src/include/superio/conf_mode.h b/src/include/superio/conf_mode.h
index ecc365d..468ef80 100644
--- a/src/include/superio/conf_mode.h
+++ b/src/include/superio/conf_mode.h
@@ -2,6 +2,7 @@
* This file is part of the coreboot project.
*
* Copyright (C) 2013 Nico Huber <nico.h at gmx.de>
+ * Copyright (C) 2018 Eltan B.V.
*
* 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
@@ -25,6 +26,7 @@
void pnp_enter_conf_mode_7777(struct device *dev);
void pnp_enter_conf_mode_8787(struct device *dev);
void pnp_enter_conf_mode_a0a0(struct device *dev);
+void pnp_enter_conf_mode_a5a5(struct device *dev);
void pnp_exit_conf_mode_aa(struct device *dev);
void pnp_enter_conf_mode_870155aa(struct device *dev);
void pnp_exit_conf_mode_0202(struct device *dev);
@@ -34,6 +36,7 @@
extern const struct pnp_mode_ops pnp_conf_mode_7777_aa;
extern const struct pnp_mode_ops pnp_conf_mode_8787_aa;
extern const struct pnp_mode_ops pnp_conf_mode_a0a0_aa;
+extern const struct pnp_mode_ops pnp_conf_mode_a5a5_aa;
extern const struct pnp_mode_ops pnp_conf_mode_870155_aa;
#endif /* DEVICE_PNP_CONF_MODE_H */
diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c
index cbe1a9e..6b4f277 100644
--- a/src/superio/common/conf_mode.c
+++ b/src/superio/common/conf_mode.c
@@ -2,6 +2,7 @@
* This file is part of the coreboot project.
*
* Copyright (C) 2013 Nico Huber <nico.h at gmx.de>
+ * Copyright (C) 2018 Eltan B.V.
*
* 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
@@ -48,6 +49,12 @@
outb(0xa0, dev->path.pnp.port);
}
+void pnp_enter_conf_mode_a5a5(struct device *dev)
+{
+ outb(0xa5, dev->path.pnp.port);
+ outb(0xa5, dev->path.pnp.port);
+}
+
void pnp_exit_conf_mode_aa(struct device *dev)
{
outb(0xaa, dev->path.pnp.port);
@@ -97,6 +104,11 @@
.exit_conf_mode = pnp_exit_conf_mode_aa,
};
+const struct pnp_mode_ops pnp_conf_mode_a5a5_aa = {
+ .enter_conf_mode = pnp_enter_conf_mode_a5a5,
+ .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,
--
To view, visit https://review.coreboot.org/23135
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I58fce31f0a2483e61e9d31f38ab5a059b8cf4f83
Gerrit-Change-Number: 23135
Gerrit-PatchSet: 1
Gerrit-Owner: fhendriks at eltan.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180105/3e603e10/attachment.html>
More information about the coreboot-gerrit
mailing list