OpenBIC
OpenSource Bridge-IC
plat_gpio.h File Reference
#include "hal_gpio.h"
Include dependency graph for plat_gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define name_gpioA
 
#define name_gpioB
 
#define name_gpioC
 
#define name_gpioD
 
#define name_gpioE
 
#define name_gpioF
 
#define name_gpioG
 
#define name_gpioH
 
#define name_gpioI
 
#define name_gpioJ
 
#define name_gpioK
 
#define name_gpioL
 
#define name_gpioM
 
#define name_gpioN
 
#define name_gpioO
 
#define name_gpioP
 
#define name_gpioQ
 
#define name_gpioR
 
#define name_gpioS
 
#define name_gpioT
 
#define name_gpioU
 
#define update_name_gpioA
 
#define update_name_gpioB
 
#define update_name_gpioC
 
#define update_name_gpioD
 
#define update_name_gpioL
 
#define update_name_gpioM
 
#define update_name_gpioP
 
#define update_name_gpioQ
 
#define update_name_gpioS
 
#define gpio_name_to_num(x)   x,
 

Enumerations

enum  _GPIO_NUMS_ {
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioF , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU
}
 

Functions

void enable_PRDY_interrupt ()
 
void disable_PRDY_interrupt ()
 
void init_board_rev_gpio ()
 

Variables

enum _GPIO_NUMS_ GPIO_NUMS
 

Macro Definition Documentation

◆ gpio_name_to_num

#define gpio_name_to_num (   x)    x,

◆ name_gpioA

#define name_gpioA
Value:
gpio_name_to_num(Reserve_GPIOA0) \
gpio_name_to_num(INT_SMB_BIC_PEX0_N_R) \
gpio_name_to_num(INT_SMB_BIC_PEX1_N_R) \
gpio_name_to_num(SMB_P1V25_ALRT_N_R) \
gpio_name_to_num(Reserve_GPIOA4) \
gpio_name_to_num(SMB_INA233_ACCL1_6_12V_ALRT_N) \
gpio_name_to_num(SMB_INA233_ACCL7_12_12V_ALRT_N) \
gpio_name_to_num(FIO_PWRBTN_N_R)
#define gpio_name_to_num(x)
Definition: plat_gpio.h:330

◆ name_gpioB

#define name_gpioB
Value:
gpio_name_to_num(ASD_MUX2_SEL) \
gpio_name_to_num(ASD_MUX2_EN_R4_N) \
gpio_name_to_num(Reserve_GPIOB2) \
gpio_name_to_num(Reserve_GPIOB3) \
gpio_name_to_num(Reserve_GPIOB4) \
gpio_name_to_num(TYPE_C_PLUG_DETECT_R) \
gpio_name_to_num(MEB_STRAP0_N_R) \
gpio_name_to_num(MEB_STRAP1_N_R)

◆ name_gpioC

#define name_gpioC
Value:
gpio_name_to_num(RST_SMB_MUX0_ACCL_N) \
gpio_name_to_num(RST_SMB_MUX1_ACCL_N) \
gpio_name_to_num(RST_BMC_FROM_ACB_N) \
gpio_name_to_num(Reserve_GPIOC3) \
gpio_name_to_num(SPI_ROM0_SEL) \
gpio_name_to_num(SPI_ROM1_SEL) \
gpio_name_to_num(ACB_THERM_OVERT_N) \
gpio_name_to_num(RST_BIC_SELF_HW_RST_N)

◆ name_gpioD

#define name_gpioD
Value:
gpio_name_to_num(RST_USB_HUB0_N) \
gpio_name_to_num(RST_USB_HUB1_N) \
gpio_name_to_num(RST_USB_HUB2_N) \
gpio_name_to_num(RST_USB_HUB3_N) \
gpio_name_to_num(RST_USB_HUB4_N) \
gpio_name_to_num(RST_USB_HUB5_N) \
gpio_name_to_num(RST_U13_N) \
gpio_name_to_num(Reserve_GPIOD7)

◆ name_gpioE

#define name_gpioE
Value:
gpio_name_to_num(FIO_REV_ID0_R) \
gpio_name_to_num(FIO_REV_ID1_R) \
gpio_name_to_num(FIO_REV_ID2_R) \
gpio_name_to_num(PRSNT_FIO_N) \
gpio_name_to_num(HS1_UV_WARN_N) \
gpio_name_to_num(HS1_OC_WARN_N) \
gpio_name_to_num(HS2_UV_WARN_N) \
gpio_name_to_num(HS2_OC_WARN_N)

◆ name_gpioF

#define name_gpioF
Value:
gpio_name_to_num(SMB_P0V8_ALERT_N) \
gpio_name_to_num(HS1_FAULT_N) \
gpio_name_to_num(HS2_FAULT_N) \
gpio_name_to_num(ACB_BIC_READY_N) \
gpio_name_to_num(USB2_MUX0_SEL) \
gpio_name_to_num(USB2_MUX1_SEL) \
gpio_name_to_num(USB2_MUX3_SEL) \
gpio_name_to_num(EN_JTAG_BIC_CPLD_N)

◆ name_gpioG

#define name_gpioG
Value:
gpio_name_to_num(INT_SMB_MEB_0_N_R) \
gpio_name_to_num(INT_SMB_MEB_1_N_R) \
gpio_name_to_num(INT_U228_N) \
gpio_name_to_num(INT_U229_N) \
gpio_name_to_num(INT_U230_N) \
gpio_name_to_num(INT_U233_N) \
gpio_name_to_num(INT_POWER_STATUS_N_R) \
gpio_name_to_num(EN_5V_EFUSE)

◆ name_gpioH

#define name_gpioH
Value:
gpio_name_to_num(Reserve_GPIOH0) \
gpio_name_to_num(Reserve_GPIOH1) \
gpio_name_to_num(Reserve_GPIOH2) \
gpio_name_to_num(Reserve_GPIOH3) \
gpio_name_to_num(Reserve_GPIOH4) \
gpio_name_to_num(Reserve_GPIOH5) \
gpio_name_to_num(Reserve_GPIOH6) \
gpio_name_to_num(Reserve_GPIOH7)

◆ name_gpioI

#define name_gpioI
Value:
gpio_name_to_num(Reserve_GPIOI0) \
gpio_name_to_num(Reserve_GPIOI1) \
gpio_name_to_num(Reserve_GPIOI2) \
gpio_name_to_num(Reserve_GPIOI3) \
gpio_name_to_num(Reserve_GPIOI4) \
gpio_name_to_num(Reserve_GPIOI5) \
gpio_name_to_num(Reserve_GPIOI6) \
gpio_name_to_num(Reserve_GPIOI7)

◆ name_gpioJ

#define name_gpioJ
Value:
gpio_name_to_num(Reserve_GPIOJ0) \
gpio_name_to_num(Reserve_GPIOJ1) \
gpio_name_to_num(Reserve_GPIOJ2) \
gpio_name_to_num(Reserve_GPIOJ3) \
gpio_name_to_num(Reserve_GPIOJ4) \
gpio_name_to_num(Reserve_GPIOJ5) \
gpio_name_to_num(Reserve_GPIOJ6) \
gpio_name_to_num(Reserve_GPIOJ7)

◆ name_gpioK

#define name_gpioK
Value:
gpio_name_to_num(Reserve_GPIOK0) \
gpio_name_to_num(Reserve_GPIOK1) \
gpio_name_to_num(Reserve_GPIOK2) \
gpio_name_to_num(Reserve_GPIOK3) \
gpio_name_to_num(Reserve_GPIOK4) \
gpio_name_to_num(Reserve_GPIOK5) \
gpio_name_to_num(Reserve_GPIOK6) \
gpio_name_to_num(Reserve_GPIOK7)

◆ name_gpioL

#define name_gpioL
Value:
gpio_name_to_num(Reserve_GPIOL0) \
gpio_name_to_num(Reserve_GPIOL1) \
gpio_name_to_num(Reserve_GPIOL2) \
gpio_name_to_num(Reserve_GPIOL3) \
gpio_name_to_num(Reserve_GPIOL4) \
gpio_name_to_num(Reserve_GPIOL5) \
gpio_name_to_num(Reserve_GPIOL6) \
gpio_name_to_num(Reserve_GPIOL7)

◆ name_gpioM

#define name_gpioM
Value:
gpio_name_to_num(Reserve_GPIOM0) \
gpio_name_to_num(Reserve_GPIOM1) \
gpio_name_to_num(Reserve_GPIOM2) \
gpio_name_to_num(Reserve_GPIOM3) \
gpio_name_to_num(Reserve_GPIOM4) \
gpio_name_to_num(Reserve_GPIOM5) \
gpio_name_to_num(Reserve_GPIOM6) \
gpio_name_to_num(Reserve_GPIOM7)

◆ name_gpioN

#define name_gpioN
Value:
gpio_name_to_num(Reserve_GPION0) \
gpio_name_to_num(Reserve_GPION1) \
gpio_name_to_num(Reserve_GPION2) \
gpio_name_to_num(Reserve_GPION3) \
gpio_name_to_num(BOARD_ID1) \
gpio_name_to_num(BOARD_ID2) \
gpio_name_to_num(BOARD_ID3) \
gpio_name_to_num(Reserve_GPION7)

◆ name_gpioO

#define name_gpioO
Value:
gpio_name_to_num(BOARD_ID0) \
gpio_name_to_num(REV_ID0) \
gpio_name_to_num(REV_ID1) \
gpio_name_to_num(REV_ID2) \
gpio_name_to_num(Reserve_GPIOO4) \
gpio_name_to_num(Reserve_GPIOO5) \
gpio_name_to_num(Reserve_GPIOO6) \
gpio_name_to_num(Reserve_GPIOO7)

◆ name_gpioP

#define name_gpioP
Value:
gpio_name_to_num(Reserve_GPIOP0) \
gpio_name_to_num(Reserve_GPIOP1) \
gpio_name_to_num(Reserve_GPIOP2) \
gpio_name_to_num(Reserve_GPIOP3) \
gpio_name_to_num(Reserve_GPIOP4) \
gpio_name_to_num(Reserve_GPIOP5) \
gpio_name_to_num(Reserve_GPIOP6) \
gpio_name_to_num(Reserve_GPIOP7)

◆ name_gpioQ

#define name_gpioQ
Value:
gpio_name_to_num(Reserve_GPIOQ0) \
gpio_name_to_num(Reserve_GPIOQ1) \
gpio_name_to_num(Reserve_GPIOQ2) \
gpio_name_to_num(Reserve_GPIOQ3) \
gpio_name_to_num(Reserve_GPIOQ4) \
gpio_name_to_num(Reserve_GPIOQ5) \
gpio_name_to_num(Reserve_GPIOQ6) \
gpio_name_to_num(Reserve_GPIOQ7)

◆ name_gpioR

#define name_gpioR
Value:
gpio_name_to_num(Reserve_GPIOR0) \
gpio_name_to_num(Reserve_GPIOR1) \
gpio_name_to_num(Reserve_GPIOR2) \
gpio_name_to_num(Reserve_GPIOR3) \
gpio_name_to_num(Reserve_GPIOR4) \
gpio_name_to_num(Reserve_GPIOR5) \
gpio_name_to_num(Reserve_GPIOR6) \
gpio_name_to_num(Reserve_GPIOR7)

◆ name_gpioS

#define name_gpioS
Value:
gpio_name_to_num(Reserve_GPIOS0) \
gpio_name_to_num(Reserve_GPIOS1) \
gpio_name_to_num(Reserve_GPIOS2) \
gpio_name_to_num(Reserve_GPIOS3) \
gpio_name_to_num(Reserve_GPIOS4) \
gpio_name_to_num(Reserve_GPIOS5) \
gpio_name_to_num(Reserve_GPIOS6) \
gpio_name_to_num(Reserve_GPIOS7)

◆ name_gpioT

#define name_gpioT
Value:
gpio_name_to_num(Reserve_GPIOT0) \
gpio_name_to_num(Reserve_GPIOT1) \
gpio_name_to_num(Reserve_GPIOT2) \
gpio_name_to_num(Reserve_GPIOT3) \
gpio_name_to_num(Reserve_GPIOT4) \
gpio_name_to_num(Reserve_GPIOT5) \
gpio_name_to_num(Reserve_GPIOT6) \
gpio_name_to_num(Reserve_GPIOT7)

◆ name_gpioU

#define name_gpioU
Value:
gpio_name_to_num(Reserve_GPIOU0) \
gpio_name_to_num(Reserve_GPIOU1) \
gpio_name_to_num(Reserve_GPIOU2) \
gpio_name_to_num(Reserve_GPIOU3) \
gpio_name_to_num(Reserve_GPIOU4) \
gpio_name_to_num(Reserve_GPIOU5) \
gpio_name_to_num(Reserve_GPIOU6) \
gpio_name_to_num(Reserve_GPIOU7)

◆ update_name_gpioA

#define update_name_gpioA
Value:
gpio_name_to_num(SMB_PMBUS_ALERT_N_R) \
gpio_name_to_num(INT_SMB_BIC_PEX0_N_R) \
gpio_name_to_num(INT_SMB_BIC_PEX1_N_R) \
gpio_name_to_num(SMB_P1V25_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL1_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL2_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL3_ALRT_N_R) \
gpio_name_to_num(FIO_PWRBTN_N_R)

◆ update_name_gpioB

#define update_name_gpioB
Value:
gpio_name_to_num(ASD_MUX2_SEL) \
gpio_name_to_num(ASD_MUX2_EN_R4_N) \
gpio_name_to_num(INA233_ACCL4_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL5_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL6_ALRT_N_R) \
gpio_name_to_num(TYPE_C_PLUG_DETECT_R) \
gpio_name_to_num(MEB_STRAP0_N_R) \
gpio_name_to_num(MEB_STRAP1_N_R)

◆ update_name_gpioC

#define update_name_gpioC
Value:
gpio_name_to_num(RST_SMB_MUX0_ACCL_N) \
gpio_name_to_num(RST_SMB_MUX1_ACCL_N) \
gpio_name_to_num(RST_BMC_FROM_ACB_N) \
gpio_name_to_num(INA233_ACCL7_ALRT_N_R) \
gpio_name_to_num(SPI_ROM0_SEL) \
gpio_name_to_num(SPI_ROM1_SEL) \
gpio_name_to_num(ACB_THERM_OVERT_N) \
gpio_name_to_num(RST_BIC_SELF_HW_RST_N)

◆ update_name_gpioD

#define update_name_gpioD
Value:
gpio_name_to_num(RST_USB_HUB0_N) \
gpio_name_to_num(RST_USB_HUB1_N) \
gpio_name_to_num(RST_USB_HUB2_N) \
gpio_name_to_num(RST_USB_HUB3_N) \
gpio_name_to_num(RST_USB_HUB4_N) \
gpio_name_to_num(RST_USB_HUB5_N) \
gpio_name_to_num(Reserve_GPIOD6) \
gpio_name_to_num(Reserve_GPIOD7)

◆ update_name_gpioL

#define update_name_gpioL
Value:
gpio_name_to_num(P3V3_ACCL12_PG) \
gpio_name_to_num(P3V3_ACCL11_PG) \
gpio_name_to_num(P3V3_ACCL10_PG) \
gpio_name_to_num(P3V3_ACCL9_PG) \
gpio_name_to_num(P3V3_ACCL8_PG) \
gpio_name_to_num(P3V3_ACCL7_PG) \
gpio_name_to_num(P3V3_ACCL6_PG) \
gpio_name_to_num(P3V3_ACCL5_PG)

◆ update_name_gpioM

#define update_name_gpioM
Value:
gpio_name_to_num(Reserve_GPIOM0) \
gpio_name_to_num(P3V3_ACCL4_PG) \
gpio_name_to_num(Reserve_GPIOM2) \
gpio_name_to_num(P3V3_ACCL3_PG) \
gpio_name_to_num(P3V3_ACCL2_PG) \
gpio_name_to_num(P3V3_ACCL1_PG) \
gpio_name_to_num(Reserve_GPIOM6) \
gpio_name_to_num(Reserve_GPIOM7)

◆ update_name_gpioP

#define update_name_gpioP
Value:
gpio_name_to_num(Reserve_GPIOP0) \
gpio_name_to_num(Reserve_GPIOP1) \
gpio_name_to_num(Reserve_GPIOP2) \
gpio_name_to_num(Reserve_GPIOP3) \
gpio_name_to_num(Reserve_GPIOP4) \
gpio_name_to_num(Reserve_GPIOP5) \
gpio_name_to_num(Reserve_GPIOP6) \
gpio_name_to_num(INA233_ACCL10_ALRT_N_R)

◆ update_name_gpioQ

#define update_name_gpioQ
Value:
gpio_name_to_num(Reserve_GPIOQ0) \
gpio_name_to_num(Reserve_GPIOQ1) \
gpio_name_to_num(Reserve_GPIOQ2) \
gpio_name_to_num(INA233_ACCL11_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL12_ALRT_N_R) \
gpio_name_to_num(Reserve_GPIOQ5) \
gpio_name_to_num(Reserve_GPIOQ6) \
gpio_name_to_num(Reserve_GPIOQ7)

◆ update_name_gpioS

#define update_name_gpioS
Value:
gpio_name_to_num(Reserve_GPIOS0) \
gpio_name_to_num(INA233_ACCL8_ALRT_N_R) \
gpio_name_to_num(INA233_ACCL9_ALRT_N_R) \
gpio_name_to_num(Reserve_GPIOS3) \
gpio_name_to_num(Reserve_GPIOS4) \
gpio_name_to_num(Reserve_GPIOS5) \
gpio_name_to_num(Reserve_GPIOS6) \
gpio_name_to_num(Reserve_GPIOS7)

Enumeration Type Documentation

◆ _GPIO_NUMS_

Enumerator
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioF 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 

Function Documentation

◆ disable_PRDY_interrupt()

void disable_PRDY_interrupt ( )
Here is the call graph for this function:

◆ enable_PRDY_interrupt()

void enable_PRDY_interrupt ( )
Here is the call graph for this function:

◆ init_board_rev_gpio()

void init_board_rev_gpio ( )

Variable Documentation

◆ GPIO_NUMS

enum _GPIO_NUMS_ GPIO_NUMS
extern