soc/intel/cannonlake: Fix outb order

outb accepts a value followed by a port

Change-Id: I6fe3961b4f8cb2454e3b2564c3eae6af06c9e69d
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33940
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Lance Zhao <lance.zhao@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Jeremy Soller 2019-07-01 07:52:19 -06:00 committed by Martin Roth
parent 5ee4c12ebb
commit e458bcd099
1 changed files with 2 additions and 2 deletions

View File

@ -201,10 +201,10 @@ static void pch_misc_init(void)
/* Setup NMI on errors, disable SERR */
reg8 = (inb(0x61)) & 0xf0;
outb(0x61, (reg8 | (1 << 2)));
outb((reg8 | (1 << 2)), 0x61);
/* Disable NMI sources */
outb(0x70, (1 << 7));
outb((1 << 7), 0x70);
};
void lpc_soc_init(struct device *dev)