]> git.baikalelectronics.ru Git - uboot.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)
commit43b7b13dfae1f98f87bb3c0cf777b1bd4191f510
tree79ea94dfa5698a0291ae113a037ac3debccb925a
parent5151bb7628cfebb1813a384778dbf09e5cd7bff9
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