]> git.dujemihanovic.xyz Git - u-boot.git/commit
mach-meson: g12a: add DWC2 peripheral mode support
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 19 Feb 2019 13:21:04 +0000 (14:21 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 9 May 2019 08:38:32 +0000 (10:38 +0200)
commit92d911b2eedec8fee1f494ab961585e253351d4f
tree79ea94dfa5698a0291ae113a037ac3debccb925a
parent277d9167cb413f6e3a40dc03cfa02a13fe93ec3f
mach-meson: g12a: add DWC2 peripheral mode support

Adds support for Amlogic G12A USB Device mode.

The DWC2 Controller behind the Glue can be connected to an OTG
capable PHY. The Glue setups the PHY mode.

This patch implements Device mode support by adding a board_usb_init/cleanup
setting up the DWC2 controller and switch the OTG capable port to Device
before starting the DWC2 controller in Device mode.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/include/asm/arch-meson/usb.h [new file with mode: 0644]
arch/arm/mach-meson/board-g12a.c