/** * struct sophgo_cfg_ops - pin configuration operations * * @pctrl_init: soc specific init callback * @verify_pinmux_config: verify the pinmux config for a pin * @verify_pin_group: verify the whole pinmux group * @dt_node_to_map_post: post init for the pinmux config map * @compute_pinconf_config: compute pinconf config * @set_pinconf_config: set pinconf config (the caller holds lock) * @set_pinmux_config: set mux config (the caller holds lock)
*/ struct sophgo_cfg_ops { int (*pctrl_init)(struct platform_device *pdev, struct sophgo_pinctrl *pctrl); int (*verify_pinmux_config)(conststruct sophgo_pin_mux_config *config); int (*verify_pin_group)(conststruct sophgo_pin_mux_config *pinmuxs, unsignedint npins); int (*dt_node_to_map_post)(struct device_node *cur, struct sophgo_pinctrl *pctrl, struct sophgo_pin_mux_config *pinmuxs, unsignedint npins); int (*compute_pinconf_config)(struct sophgo_pinctrl *pctrl, conststruct sophgo_pin *sp, unsignedlong *configs, unsignedint num_configs,
u32 *value, u32 *mask); int (*set_pinconf_config)(struct sophgo_pinctrl *pctrl, conststruct sophgo_pin *sp,
u32 value, u32 mask); void (*set_pinmux_config)(struct sophgo_pinctrl *pctrl, conststruct sophgo_pin *sp, u32 config);
};
/** * struct sophgo_vddio_cfg_ops - pin vddio operations * * @get_pull_up: get resistor for pull up; * @get_pull_down: get resistor for pull down. * @get_oc_map: get mapping for typical low level output current value to * register value map. * @get_schmitt_map: get mapping for register value to typical schmitt * threshold.
*/ struct sophgo_vddio_cfg_ops { int (*get_pull_up)(conststruct sophgo_pin *pin, const u32 *psmap); int (*get_pull_down)(conststruct sophgo_pin *pin, const u32 *psmap); int (*get_oc_map)(conststruct sophgo_pin *pin, const u32 *psmap, const u32 **map); int (*get_schmitt_map)(conststruct sophgo_pin *pin, const u32 *psmap, const u32 **map);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.