summaryrefslogtreecommitdiff
path: root/src/superio/nuvoton/common/hwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/nuvoton/common/hwm.h')
-rw-r--r--src/superio/nuvoton/common/hwm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/superio/nuvoton/common/hwm.h b/src/superio/nuvoton/common/hwm.h
index 47d4e04e41..42e0f4af94 100644
--- a/src/superio/nuvoton/common/hwm.h
+++ b/src/superio/nuvoton/common/hwm.h
@@ -6,7 +6,13 @@
/* Nuvoton is a Winbond spin-off, so this code is for both */
#include <stdint.h>
+#include <superio/hwm5_conf.h>
-void nuvoton_hwm_select_bank(const u16 base, const u8 bank);
+#define HWM_BANK_SELECT 0x4e
+
+static inline void nuvoton_hwm_select_bank(const u16 base, const u8 bank)
+{
+ pnp_write_hwm5_index(base, HWM_BANK_SELECT, bank);
+}
#endif /* SUPERIO_NUVOTON_COMMON_HWM_H */