1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Bidirectional GPIO port when both RX and TX buffer is enabled
10 * TODO: move this macros to src/soc/intel/common/block/include/intelblocks/gpio_defs.h
12 #ifndef PAD_CFG_GPIO_BIDIRECT_IOS
13 #define PAD_CFG_GPIO_BIDIRECT_IOS(pad, val, pull, rst, trig, iosstate, iosterm, own) \
14 _PAD_CFG_STRUCT(pad, \
15 PAD_FUNC(GPIO) | PAD_RESET(rst) | PAD_TRIG(trig) | \
16 PAD_BUF(NO_DISABLE) | val, \
17 PAD_PULL(pull) | PAD_CFG_OWN_GPIO(own) | \
18 PAD_IOSSTATE(iosstate) | PAD_IOSTERM(iosterm))
21 #ifndef PAD_CFG_GPIO_BIDIRECT
22 #define PAD_CFG_GPIO_BIDIRECT(pad, val, pull, rst, trig, own) \
23 _PAD_CFG_STRUCT(pad, \
24 PAD_FUNC(GPIO) | PAD_RESET(rst) | PAD_TRIG(trig) | \
25 PAD_BUF(NO_DISABLE) | val, \
26 PAD_PULL(pull) | PAD_CFG_OWN_GPIO(own))
29 void carrier_gpio_configure(void);
31 #endif /* CARRIER_GPIO_H */