Skip to content
Snippets Groups Projects
Commit 612ccd90 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: add sg_set_iectrl_range()


For PH1-LD20 or later, per-pin input-enable control is supported,
that is, we need to set-up IECTRL registers for a group of pins.
This helper function will be useful for a bunch of register settings.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 6c64d50e
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,14 @@ static inline void sg_set_iectrl(unsigned pin)
writel(tmp, reg);
}
static inline void sg_set_iectrl_range(unsigned min, unsigned max)
{
int i;
for (i = min; i <= max; i++)
sg_set_iectrl(i);
}
#endif /* __ASSEMBLY__ */
#endif /* ARCH_SG_REGS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment