Hi, On Thursday, July 17, 2014 11:25am, "Ivan T. Ivanov" <iivanov@xxxxxxxxxx> said: > From: "Ivan T. Ivanov" <iivanov@xxxxxxxxxx> > > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > Qualcomm GPIO and MPP sub-function blocks found in the PMIC chips. > > Signed-off-by: Ivan T. Ivanov <iivanov@xxxxxxxxxx> > --- > drivers/pinctrl/Kconfig | 12 + > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-qpnp.c | 1565 +++++++++++++++++++++++++ . <snip> . > diff --git a/drivers/pinctrl/pinctrl-qpnp.c b/drivers/pinctrl/pinctrl-qpnp.c > new file mode 100644 > index 0000000..aedc72e > --- /dev/null > +++ b/drivers/pinctrl/pinctrl-qpnp.c . <snip> . > +#define QPNP_MPP_CS_OUT_35MA 6 > +#define QPNP_MPP_CS_OUT_40MA 7 > + > +/* revision registers base address offsets */ unused define, can you please remove it > +#define QPNP_REG_DIG_MINOR_REV 0x0 > +#define QPNP_REG_DIG_MAJOR_REV 0x1 ditto > +#define QPNP_REG_ANA_MINOR_REV 0x2 > + > +/* type registers base address offsets */ > +#define QPNP_REG_TYPE 0x4 > +#define QPNP_REG_SUBTYPE 0x5 > + > +/* GPIO peripheral type and subtype values */ > +#define QPNP_GPIO_TYPE 0x10 > +#define QPNP_GPIO_SUBTYPE_GPIO_4CH 0x1 > +#define QPNP_GPIO_SUBTYPE_GPIOC_4CH 0x5 > +#define QPNP_GPIO_SUBTYPE_GPIO_8CH 0x9 > +#define QPNP_GPIO_SUBTYPE_GPIOC_8CH 0xd > + > +/* mpp peripheral type and subtype values */ > +#define QPNP_MPP_TYPE 0x11 > +#define QPNP_MPP_SUBTYPE_4CH_NO_ANA_OUT 0x3 > +#define QPNP_MPP_SUBTYPE_ULT_4CH_NO_ANA_OUT 0x4 > +#define QPNP_MPP_SUBTYPE_4CH_NO_SINK 0x5 > +#define QPNP_MPP_SUBTYPE_ULT_4CH_NO_SINK 0x6 > +#define QPNP_MPP_SUBTYPE_4CH_FULL_FUNC 0x7 > +#define QPNP_MPP_SUBTYPE_8CH_FULL_FUNC 0xf > + > +#define QPNP_REG_STATUS1 0x8 > +#define QPNP_REG_STATUS1_VAL_MASK 0x1 > +#define QPNP_REG_STATUS1_GPIO_EN_REV0_MASK 0x2 > +#define QPNP_REG_STATUS1_GPIO_EN_MASK 0x80 > +#define QPNP_REG_STATUS1_MPP_EN_MASK 0x80 > + > +/* control register base address offsets */ > +#define QPNP_REG_MODE_CTL 0x40 > +#define QPNP_REG_DIG_VIN_CTL 0x41 > +#define QPNP_REG_DIG_PULL_CTL 0x42 ditto > +#define QPNP_REG_DIG_IN_CTL 0x43 > +#define QPNP_REG_DIG_OUT_CTL 0x45 > +#define QPNP_REG_EN_CTL 0x46 > +#define QPNP_REG_AOUT_CTL 0x4b > +#define QPNP_REG_AIN_CTL 0x4a > +#define QPNP_REG_SINK_CTL 0x4c > + . <snip> . > +#define PM8XXX_MPP_AIN_ABUS3 6 > +#define PM8XXX_MPP_AIN_ABUS4 7 > + > +#endif > -- > 1.8.3.2 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > Regards, --Kiran -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html