Re: [PATCH 03/14] pinctrl: sh-pfc: Add generic bias register description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

Thank you for the patch.

On Wednesday, 4 October 2017 12:07:02 EEST Geert Uytterhoeven wrote:
> Add a generic way to describe bias registers (for pull-up/down control),
> like is already done for config and drive registers.
> 
> This makes the sh-pfc core code aware of these registers, which will
> ease introducing suspend/resume support later.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>

> ---
>  drivers/pinctrl/sh-pfc/sh_pfc.h | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h
> b/drivers/pinctrl/sh-pfc/sh_pfc.h index 8688b405e0813ad7..1914f4b5fef569b3
> 100644
> --- a/drivers/pinctrl/sh-pfc/sh_pfc.h
> +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
> @@ -148,6 +148,17 @@ struct pinmux_drive_reg {
>  	.reg = r, \
>  	.fields =
> 
> +struct pinmux_bias_reg {
> +	u32 puen;		/* Pull-enable or pull-up control register */
> +	u32 pud;		/* Pull-up/down control register (optional) */
> +	const u16 pins[32];
> +};
> +
> +#define PINMUX_BIAS_REG(name1, r1, name2, r2) \
> +	.puen = r1,	\
> +	.pud = r2,	\
> +	.pins =
> +
>  struct pinmux_data_reg {
>  	u32 reg;
>  	u8 reg_width;
> @@ -245,6 +256,7 @@ struct sh_pfc_soc_info {
> 
>  	const struct pinmux_cfg_reg *cfg_regs;
>  	const struct pinmux_drive_reg *drive_regs;
> +	const struct pinmux_bias_reg *bias_regs;
>  	const struct pinmux_data_reg *data_regs;
> 
>  	const u16 *pinmux_data;


-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux