clk: renesas: r9a06g032: Handle h2mode setting based on USBF presence
authorHerve Codina <herve.codina@bootlin.com>
Thu, 5 Jan 2023 15:22:54 +0000 (16:22 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 23 Jan 2023 08:16:33 +0000 (09:16 +0100)
commitd4638642aa0a2b39d6f7666538c7df073f67aadb
tree2fb6e85c2adf0f56e9fe4b25d77336de1335e017
parentfbfd614aeaa2853c2c575299dfe2458db8eff67e
clk: renesas: r9a06g032: Handle h2mode setting based on USBF presence

The CFG_USB[H2MODE] allows to switch the USB configuration. The
configuration supported are:
  - One host and one device
or
  - Two hosts

Set CFG_USB[H2MODE] based on the USBF controller (USB device)
availability.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230105152257.310642-3-herve.codina@bootlin.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a06g032-clocks.c