HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35901 )
Change subject: mb/{ibase/mb899,kontron/986lcd-m}: Use pnp_write_hwm5_index function ......................................................................
mb/{ibase/mb899,kontron/986lcd-m}: Use pnp_write_hwm5_index function
Change-Id: If30a17d053da8f0758085fc36469b564d46049cd Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/mainboard/ibase/mb899/superio_hwm.c M src/mainboard/kontron/986lcd-m/mainboard.c 2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/35901/1
diff --git a/src/mainboard/ibase/mb899/superio_hwm.c b/src/mainboard/ibase/mb899/superio_hwm.c index 7fb45f9..fd4ac47 100644 --- a/src/mainboard/ibase/mb899/superio_hwm.c +++ b/src/mainboard/ibase/mb899/superio_hwm.c @@ -19,6 +19,7 @@ #include <console/console.h> #include <device/device.h> #include <pc80/mc146818rtc.h> +#include <superio/hwm5_conf.h>
#include "superio_hwm.h"
@@ -35,8 +36,7 @@
static void hwm_write(u8 reg, u8 value) { - outb(reg, HWM_BASE + 0x05); - outb(value, HWM_BASE + 0x06); + pnp_write_hwm5_index(HWM_BASE, reg, value) }
static void hwm_bank(u8 bank) diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c index 85b704e..ed175c4 100644 --- a/src/mainboard/kontron/986lcd-m/mainboard.c +++ b/src/mainboard/kontron/986lcd-m/mainboard.c @@ -21,6 +21,7 @@ #include <drivers/intel/gma/int15.h> #include <pc80/mc146818rtc.h> #include <arch/io.h> +#include <superio/hwm5_conf.h>
/* Hardware Monitor */
@@ -28,8 +29,7 @@
static void hwm_write(u8 reg, u8 value) { - outb(reg, hwm_base + 0x05); - outb(value, hwm_base + 0x06); + pnp_write_hwm5_index(hwm_base, reg, value) }
static void hwm_bank(u8 bank)