Skip to content

Commit

Permalink
pinctrl: sh-pfc: Add generic IOCTRL register description
Browse files Browse the repository at this point in the history
Add a generic way to describe IOCTRL registers (for e.g. SD I/O voltage
and time delay control), like is already done for config, drive, and
bias 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 <[email protected]>
  • Loading branch information
geertu committed Oct 20, 2017
1 parent 1860bb1 commit 9e9bd06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/pinctrl/sh-pfc/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ struct pinmux_bias_reg {
.pud = r2, \
.pins =

struct pinmux_ioctrl_reg {
u32 reg;
};

struct pinmux_data_reg {
u32 reg;
u8 reg_width;
Expand Down Expand Up @@ -251,6 +255,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_ioctrl_reg *ioctrl_regs;
const struct pinmux_data_reg *data_regs;

const u16 *pinmux_data;
Expand Down

0 comments on commit 9e9bd06

Please sign in to comment.