pinctrl: k1x: set strict for pinmux_ops
This will not allow simultaneous use of the same pin for GPIO and another function. If user use a pin in such way, an error would be reported, make it easier to debug. d401e000.pinctrl: pin PIN80 already requested by k1x-gpio:79; cannot claim for xxx Signed-off-by: Junzhong Pan <junzhong.pan@spacemit.com> Change-Id: I0aad1e6a55ac46c47537d18bdb8586779f290435
This commit is contained in:
@@ -501,6 +501,9 @@ static const struct pinmux_ops pcs_pinmux_ops = {
|
||||
.get_function_groups = pinmux_generic_get_function_groups,
|
||||
.set_mux = pcs_set_mux,
|
||||
.gpio_request_enable = pcs_request_gpio,
|
||||
#ifdef CONFIG_SOC_SPACEMIT_K1X
|
||||
.strict = true,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Clear BIAS value */
|
||||
|
||||
Reference in New Issue
Block a user