diff options
author | Tom Rini <trini@konsulko.com> | 2019-04-11 14:29:22 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-11 14:29:22 -0400 |
commit | f95fdf237d8de9bf4dac4e4449015692c2283ac4 (patch) | |
tree | 385fc22a0f83526b1d5a900bbae6a5895af8ddbe /drivers/pinctrl/renesas/pfc-r8a7790.c | |
parent | 48ff1bc4f0a97c3291d0c87c2717fc1d79da5ef5 (diff) | |
parent | c8630bb09674e2b8496753929ac4d0a610583f1e (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-sh
- Various rmobile fixes
Diffstat (limited to 'drivers/pinctrl/renesas/pfc-r8a7790.c')
-rw-r--r-- | drivers/pinctrl/renesas/pfc-r8a7790.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/pinctrl/renesas/pfc-r8a7790.c b/drivers/pinctrl/renesas/pfc-r8a7790.c index ad492b5366..ef23ca278a 100644 --- a/drivers/pinctrl/renesas/pfc-r8a7790.c +++ b/drivers/pinctrl/renesas/pfc-r8a7790.c @@ -5694,7 +5694,18 @@ static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *poc return 31 - (pin & 0x1f); } +static int r8a7790_pinmux_soc_init(struct sh_pfc *pfc) +{ + /* Initialize TDSEL on old revisions */ + if ((rmobile_get_cpu_rev_integer() == 1) && + (rmobile_get_cpu_rev_fraction() == 0)) + sh_pfc_write(pfc, 0xe6060088, 0x00155554); + + return 0; +} + static const struct sh_pfc_soc_operations r8a7790_pinmux_ops = { + .init = r8a7790_pinmux_soc_init, .pin_to_pocctrl = r8a7790_pin_to_pocctrl, }; |