aboutsummaryrefslogtreecommitdiff
path: root/src/superio/nuvoton/common/hwm.h
blob: 42e0f4af94729d7a6949aa873a5a9879c47812a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef SUPERIO_NUVOTON_COMMON_HWM_H
#define SUPERIO_NUVOTON_COMMON_HWM_H

/* Nuvoton is a Winbond spin-off, so this code is for both */

#include <stdint.h>
#include <superio/hwm5_conf.h>

#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 */