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>
This commit is contained in:
Nikolai Vyssotski 2020-11-16 13:27:10 -06:00 committed by Felix Held
parent cdba52aaa9
commit 9004f1d99d

View file

@ -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);
}