1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __MAINBOARD_ONBOARD_H
4 #define __MAINBOARD_ONBOARD_H
6 /* defines for programming the MAC address */
7 #define NIC_VENDOR_ID 0x10EC
8 #define NIC_DEVICE_ID 0x8168
10 /* 0x00: White LINK LED and Amber ACTIVE LED */
11 #define NIC_LED_MODE 0x00
13 /* NIC wake is GPIO 8 */
14 #define NIC_WAKE_GPIO 8
16 /* WLAN wake is GPIO 10 */
17 #define WLAN_WAKE_GPIO 10
19 /* Recovery: GPIO12 = RECOVERY_L, active low */
20 #define GPIO_REC_MODE 12
22 /* Write Protect: GPIO58 = GPIO_SPI_WP, active high */
23 #define GPIO_SPI_WP 58
26 #define IT8772F_BASE 0x2e
27 #define IT8772F_SERIAL_DEV PNP_DEV(IT8772F_BASE, IT8772F_SP1)
28 #define IT8772F_GPIO_DEV PNP_DEV(IT8772F_BASE, IT8772F_GPIO)
29 #define IT8772F_SUPERIO_DEV PNP_DEV(IT8772F_BASE, 0)
34 void set_power_led(int state
);
43 #endif /* __MAINBOARD_ONBOARD_H */