Bootstrap

PinctrlAPI

struct pinctrl *devm_pinctrl_get(struct device *dev)
获取该device对应的pinctrlhandler。
struct pinctrl_state *pinctrl_lookup_state(struct pinctrl *p,const char*name);
查找name指定的pinctr_lstate。
int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state*state);
配置pin脚为指定的state。
;