aboutsummaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627dhg
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-03-30 16:47:28 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-03-31 16:59:40 +0000
commite8fcf1bf8df1e94f84a15815343660360cd12299 (patch)
tree4022d267a718af8489499bfb651a7f19f878f759 /src/superio/winbond/w83627dhg
parent4c0432ae65e522be43a0c03d8a61e689eea0cc1b (diff)
superio/winbond: Improve code formatting
Change-Id: Ia63e21b957d89690f36929f9ffbe8a7bf8f0e84c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39932 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/superio/winbond/w83627dhg')
-rw-r--r--src/superio/winbond/w83627dhg/acpi/superio.asl8
-rw-r--r--src/superio/winbond/w83627dhg/w83627dhg.h24
2 files changed, 16 insertions, 16 deletions
diff --git a/src/superio/winbond/w83627dhg/acpi/superio.asl b/src/superio/winbond/w83627dhg/acpi/superio.asl
index f86f16946e..ea4aebafd2 100644
--- a/src/superio/winbond/w83627dhg/acpi/superio.asl
+++ b/src/superio/winbond/w83627dhg/acpi/superio.asl
@@ -50,7 +50,7 @@ Device(SUPERIO_DEV) {
Field (CREG, ByteAcc, NoLock, Preserve)
{
PNP_ADDR_REG, 8,
- PNP_DATA_REG, 8
+ PNP_DATA_REG, 8
}
IndexField (PNP_ADDR_REG, PNP_DATA_REG, ByteAcc, NoLock, Preserve)
{
@@ -118,14 +118,14 @@ Device(SUPERIO_DEV) {
Else { Return (0) }
}
- /* PM: Switch to D0 by setting IPD low */
+ /* PM: Switch to D0 by setting IPD low */
Method (_PS0) {
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
Store (Zero, IPD)
EXIT_CONFIG_MODE ()
}
- /* PM: Switch to D3 by setting IPD high */
+ /* PM: Switch to D3 by setting IPD high */
Method (_PS3) {
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
Store (One, IPD)
@@ -133,7 +133,7 @@ Device(SUPERIO_DEV) {
}
/* Suspend LED: Write given three-bit value into appropriate register.
- From the datasheet:
+ From the datasheet:
000 - drive pin constantly high
001 - drive 0.5Hz pulses
010 - drive pin constantly low
diff --git a/src/superio/winbond/w83627dhg/w83627dhg.h b/src/superio/winbond/w83627dhg/w83627dhg.h
index 889c4f1bed..8d7c4a9651 100644
--- a/src/superio/winbond/w83627dhg/w83627dhg.h
+++ b/src/superio/winbond/w83627dhg/w83627dhg.h
@@ -6,20 +6,20 @@
#include <device/pnp_type.h>
-#define W83627DHG_FDC 0 /* Floppy */
-#define W83627DHG_PP 1 /* Parallel port */
-#define W83627DHG_SP1 2 /* Com1 */
-#define W83627DHG_SP2 3 /* Com2 */
-#define W83627DHG_KBC 5 /* PS/2 keyboard & mouse */
-#define W83627DHG_SPI 6 /* Serial peripheral interface */
-#define W83627DHG_WDTO_PLED 8 /* WDTO#, PLED */
-#define W83627DHG_ACPI 10 /* ACPI */
-#define W83627DHG_HWM 11 /* Hardware monitor */
-#define W83627DHG_PECI_SST 12 /* PECI, SST */
+#define W83627DHG_FDC 0 /* Floppy */
+#define W83627DHG_PP 1 /* Parallel port */
+#define W83627DHG_SP1 2 /* Com1 */
+#define W83627DHG_SP2 3 /* Com2 */
+#define W83627DHG_KBC 5 /* PS/2 keyboard & mouse */
+#define W83627DHG_SPI 6 /* Serial peripheral interface */
+#define W83627DHG_WDTO_PLED 8 /* WDTO#, PLED */
+#define W83627DHG_ACPI 10 /* ACPI */
+#define W83627DHG_HWM 11 /* Hardware monitor */
+#define W83627DHG_PECI_SST 12 /* PECI, SST */
/* The following are handled using "virtual LDNs" (hence the _V suffix). */
-#define W83627DHG_GPIO6_V 7 /* GPIO6 */
-#define W83627DHG_GPIO2345_V 9 /* GPIO2, GPIO3, GPIO4, GPIO5 */
+#define W83627DHG_GPIO6_V 7 /* GPIO6 */
+#define W83627DHG_GPIO2345_V 9 /* GPIO2, GPIO3, GPIO4, GPIO5 */
/*
* Virtual devices sharing the enables are encoded as follows: