Hi, On Thursday, July 17, 2014 11:25am, "Ivan T. Ivanov" said: > From: "Ivan T. Ivanov" > > 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 > --- > drivers/pinctrl/Kconfig | 12 + > drivers/pinctrl/Makefile | 1 + . [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_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 . [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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Regards, --Kiran