/** * struct meson_pmx_group - a pinmux group * * @name: group name * @pins: pins in the group * @num_pins: number of pins in the group * @is_gpio: whether the group is a single GPIO group * @reg: register offset for the group in the domain mux registers * @bit bit index enabling the group * @domain: index of the domain this group belongs to
*/ struct meson_pmx_group { constchar *name; constunsignedint *pins; unsignedint num_pins; constvoid *data;
};
/** * struct meson_pmx_func - a pinmux function * * @name: function name * @groups: groups in the function * @num_groups: number of groups in the function
*/ struct meson_pmx_func { constchar *name; constchar * const *groups; unsignedint num_groups;
};
/** * struct meson_reg_desc - a register descriptor * * @reg: register offset in the regmap * @bit: bit index in register * * The structure describes the information needed to control pull, * pull-enable, direction, etc. for a single pin
*/ struct meson_reg_desc { unsignedint reg; unsignedint bit;
};
/** * enum meson_reg_type - type of registers encoded in @meson_reg_desc
*/ enum meson_reg_type {
MESON_REG_PULLEN,
MESON_REG_PULL,
MESON_REG_DIR,
MESON_REG_OUT,
MESON_REG_IN,
MESON_REG_DS,
MESON_NUM_REG,
};
/** * enum meson_pinconf_drv - value of drive-strength supported
*/ enum meson_pinconf_drv {
MESON_PINCONF_DRV_500UA,
MESON_PINCONF_DRV_2500UA,
MESON_PINCONF_DRV_3000UA,
MESON_PINCONF_DRV_4000UA,
};
/** * struct meson bank * * @name: bank name * @first: first pin of the bank * @last: last pin of the bank * @irq: hwirq base number of the bank * @regs: array of register descriptors * * A bank represents a set of pins controlled by a contiguous set of * bits in the domain registers. The structure specifies which bits in * the regmap control the different functionalities. Each member of * the @regs array refers to the first pin of the bank.
*/ struct meson_bank { constchar *name; unsignedint first; unsignedint last; int irq_first; int irq_last; struct meson_reg_desc regs[MESON_NUM_REG];
};
/* Common pmx functions */ int meson_pmx_get_funcs_count(struct pinctrl_dev *pcdev); constchar *meson_pmx_get_func_name(struct pinctrl_dev *pcdev, unsigned selector); int meson_pmx_get_groups(struct pinctrl_dev *pcdev, unsigned selector, constchar * const **groups, unsigned * const num_groups);
/* Common probe function */ int meson_pinctrl_probe(struct platform_device *pdev); /* Common ao groups extra dt parse function for SoCs before g12a */ int meson8_aobus_parse_dt_extra(struct meson_pinctrl *pc); /* Common extra dt parse function for SoCs like A1 */ int meson_a1_parse_dt_extra(struct meson_pinctrl *pc);
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.