]> git.dujemihanovic.xyz Git - u-boot.git/commit
mx7dsabresd: Make 'ums' command functional
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 17 Feb 2016 15:34:22 +0000 (13:34 -0200)
committerStefano Babic <sbabic@denx.de>
Sun, 21 Feb 2016 10:13:27 +0000 (11:13 +0100)
commit2b8e8d2671227473c9698859db38fefa328b87d0
tree06f61e03bee0d3eb17f9b775baf87d6d7bb01ba9
parent88e826be45f83308d0939b1daedccecd527582b9
mx7dsabresd: Make 'ums' command functional

When running the 'ums' command we get:

=> ums 0 mmc 0
UMS: disk start sector: 0x0, count: 0xe18000
g_dnl_register: failed!, error: -22
ERROR: g_dnl_register failed
at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()

Fix this by initializing USB OTG1 port as USB device mode instead of host.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
board/freescale/mx7dsabresd/mx7dsabresd.c