Lines Matching refs:cfg2
37 struct mec_gpio_props cfg2[12]; in mec5_config_pin() local
52 cfg2[idx].prop = MEC_GPIO_SLEW_RATE_ID; in mec5_config_pin()
53 cfg2[idx].val = (uint8_t)MEC_GPIO_SLEW_RATE_SLOW; in mec5_config_pin()
55 cfg2[idx].val = (uint8_t)MEC_GPIO_SLEW_RATE_FAST; in mec5_config_pin()
63 cfg2[idx].prop = MEC_GPIO_DRV_STR_ID; in mec5_config_pin()
64 cfg2[idx].val = (uint8_t)(temp - 1u); in mec5_config_pin()
69 cfg2[idx].prop = MEC_GPIO_PUD_PROP_ID; in mec5_config_pin()
71 cfg2[idx++].val = MEC_GPIO_PROP_NO_PUD; in mec5_config_pin()
73 cfg2[idx++].val = MEC_GPIO_PROP_PULL_UP; in mec5_config_pin()
75 cfg2[idx++].val = MEC_GPIO_PROP_PULL_DN; in mec5_config_pin()
80 cfg2[idx].prop = MEC_GPIO_DIR_PROP_ID; in mec5_config_pin()
81 cfg2[idx].val = MEC_GPIO_PROP_DIR_IN; in mec5_config_pin()
83 cfg2[idx].val = MEC_GPIO_PROP_DIR_OUT; in mec5_config_pin()
90 cfg2[idx].prop = MEC_GPIO_CTRL_OUT_VAL_ID; in mec5_config_pin()
91 cfg2[idx].val = 0u; in mec5_config_pin()
93 cfg2[idx].val = 1u; in mec5_config_pin()
100 cfg2[idx].prop = MEC_GPIO_OBUFT_PROP_ID; in mec5_config_pin()
101 cfg2[idx].val = MEC_GPIO_PROP_PUSH_PULL; in mec5_config_pin()
103 cfg2[idx].val = MEC_GPIO_PROP_OPEN_DRAIN; in mec5_config_pin()
109 cfg2[idx].prop = MEC_GPIO_PWRGT_PROP_ID; in mec5_config_pin()
110 cfg2[idx].val = MEC_GPIO_PROP_PWRGT_VTR; in mec5_config_pin()
112 cfg2[idx].val = MEC_GPIO_PROP_PWRGT_OFF; in mec5_config_pin()
117 cfg2[idx].prop = MEC_GPIO_MUX_PROP_ID; in mec5_config_pin()
118 cfg2[idx].val = (uint8_t)altf; in mec5_config_pin()
122 cfg2[idx].prop = MEC_GPIO_FUNC_POL_PROP_ID; in mec5_config_pin()
123 cfg2[idx].val = MEC_GPIO_PROP_FUNC_OUT_NON_INV; in mec5_config_pin()
125 cfg2[idx].val = MEC_GPIO_PROP_FUNC_OUT_INV; in mec5_config_pin()
130 ret = mec_hal_gpio_set_props(pin, cfg2, idx); in mec5_config_pin()