summaryrefslogtreecommitdiff
path: root/src/superio/smsc
diff options
context:
space:
mode:
authorNikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>2020-11-16 13:27:10 -0600
committerFelix Held <felix-coreboot@felixheld.de>2020-11-18 13:12:11 +0000
commit9004f1d99d4d88ee2170cc8087053458f19d6c1d (patch)
tree7386128d4e8427320d81da23538a73ea3dc4e534 /src/superio/smsc
parentcdba52aaa9f505f55d13bf58be8e24951ce54965 (diff)
superio/smsc/sio1036: Support 16-bit IO port addressing
SMSC/Microchip 1036 can be strapped to 4E/4D and 164E/164D so make source code support 16 bits addressing. Change-Id: I2bbe6f5b6dbd74299b34b0717e618dc736e7ad6f Signed-off-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47647 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/superio/smsc')
-rw-r--r--src/superio/smsc/sio1036/sio1036_early_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/superio/smsc/sio1036/sio1036_early_init.c b/src/superio/smsc/sio1036/sio1036_early_init.c
index a65f6725a5..c4a580a368 100644
--- a/src/superio/smsc/sio1036/sio1036_early_init.c
+++ b/src/superio/smsc/sio1036/sio1036_early_init.c
@@ -10,13 +10,13 @@
static inline void sio1036_enter_conf_state(pnp_devfn_t dev)
{
- u8 port = dev >> 8;
+ u16 port = dev >> 8;
outb(0x55, port);
}
static inline void sio1036_exit_conf_state(pnp_devfn_t dev)
{
- u8 port = dev >> 8;
+ u16 port = dev >> 8;
outb(0xaa, port);
}