xref: /aosp_15_r20/external/coreboot/src/superio/nuvoton/common/hwm.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef SUPERIO_NUVOTON_COMMON_HWM_H
4 #define SUPERIO_NUVOTON_COMMON_HWM_H
5 
6 /* Nuvoton is a Winbond spin-off, so this code is for both */
7 
8 #include <stdint.h>
9 #include <superio/hwm5_conf.h>
10 
11 #define HWM_BANK_SELECT	0x4e
12 
nuvoton_hwm_select_bank(const u16 base,const u8 bank)13 static inline void nuvoton_hwm_select_bank(const u16 base, const u8 bank)
14 {
15 	pnp_write_hwm5_index(base, HWM_BANK_SELECT, bank);
16 }
17 
18 #endif /* SUPERIO_NUVOTON_COMMON_HWM_H */
19