1 /* SPDX-License-Identifier: ISC */
2 /* Copyright (C) 2020 MediaTek Inc. */
3 
4 #ifndef __MT7921_EEPROM_H
5 #define __MT7921_EEPROM_H
6 
7 #include "mt7921.h"
8 
9 enum mt7921_eeprom_field {
10 	MT_EE_CHIP_ID =		0x000,
11 	MT_EE_VERSION =		0x002,
12 	MT_EE_MAC_ADDR =	0x004,
13 	MT_EE_WIFI_CONF =	0x07c,
14 	MT_EE_HW_TYPE =		0x55b,
15 	__MT_EE_MAX =		0x9ff
16 };
17 
18 #define MT_EE_WIFI_CONF_TX_MASK			BIT(0)
19 #define MT_EE_WIFI_CONF_BAND_SEL		GENMASK(3, 2)
20 
21 #define MT_EE_HW_TYPE_ENCAP			BIT(0)
22 
23 enum mt7921_eeprom_band {
24 	MT_EE_NA,
25 	MT_EE_5GHZ,
26 	MT_EE_2GHZ,
27 	MT_EE_DUAL_BAND,
28 };
29 
30 #endif
31