summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2_timing.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-09-08 23:09:04 +0200
committerMarek Vasut <marex@denx.de>2024-09-09 17:18:04 +0200
commita1f841a33c4e0b90721468a28030cecdb1cfd953 (patch)
treeaa9c471502c413441d9e9784b4e0f00bfa6a8405 /drivers/ddr/microchip/ddr2_timing.h
parent35941d3a962dbee1fdf9bb3fe0eb7185d833b9d8 (diff)
phy: rcar: Split init and set_mode operations
The current init operation also sets the PHY into USB host mode. Split the mode configuration into set_mode callback instead and implement support for device and OTG modes as well. The OTG mode performs auto-detection and selects either host or device mode. In case the OTG mode is configured, submode field can be used to select full PHY (re)initialization or only mode auto-detection. The full (re)initialization is only necessary once, on start up. Since the OTG mode may enable IRQ generation in the PHY, disable that IRQ generation in the exit callback again. Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_timing.h')
0 files changed, 0 insertions, 0 deletions