add GPIO_WIFI_EN register and change PrivSerialIoctl

This commit is contained in:
wgzAIIT
2022-09-28 14:32:14 +08:00
parent 3fa418120c
commit 32b54cee33
3 changed files with 27 additions and 3 deletions
@@ -57,7 +57,7 @@
/* GPIO pins used by the GPIO Subsystem */
#define BOARD_NGPIOOUT 3 /* Amount of GPIO Output pins */
#define BOARD_NGPIOOUT 4 /* Amount of GPIO Output pins */
#define BOARD_NGPIOINT 0 /* Amount of GPIO Input */
/****************************************************************************
@@ -51,10 +51,12 @@
#define GPIO_E220_M0 44
#define GPIO_E220_M1 45
#define GPIO_E18_MODE 46
#define GPIO_WIFI_EN 8
#define FPIOA_E220_M0 1
#define FPIOA_E220_M1 2
#define FPIOA_E18_MODE 3
#define FPIOA_WIFI_EN 4
/****************************************************************************
* Private Types
@@ -94,14 +96,16 @@ static const uint32_t g_gpiooutputs[BOARD_NGPIOOUT] =
{
GPIO_E220_M0,
GPIO_E220_M1,
GPIO_E18_MODE
GPIO_E18_MODE,
GPIO_WIFI_EN
};
static const uint32_t g_fpioa[BOARD_NGPIOOUT] =
{
FPIOA_E220_M0,
FPIOA_E220_M1,
FPIOA_E18_MODE
FPIOA_E18_MODE,
FPIOA_WIFI_EN
};
static struct k210gpio_dev_s g_gpout[BOARD_NGPIOOUT];