Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Set host-mode always. motg(4) doesn't sup...
details: https://anonhg.NetBSD.org/src/rev/257bdae63e93
branches: trunk
changeset: 346813:257bdae63e93
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Thu Aug 04 06:44:58 2016 +0000
description:
Set host-mode always. motg(4) doesn't supports device and OTG modes.
diffstat:
sys/arch/arm/omap/tiotg.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r aaf2bd556b02 -r 257bdae63e93 sys/arch/arm/omap/tiotg.c
--- a/sys/arch/arm/omap/tiotg.c Thu Aug 04 06:43:43 2016 +0000
+++ b/sys/arch/arm/omap/tiotg.c Thu Aug 04 06:44:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tiotg.c,v 1.5 2016/07/11 14:46:33 kiyohara Exp $ */
+/* $NetBSD: tiotg.c,v 1.6 2016/08/04 06:44:58 kiyohara Exp $ */
/*
* Copyright (c) 2013 Manuel Bouyer. All rights reserved.
*
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tiotg.c,v 1.5 2016/07/11 14:46:33 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tiotg.c,v 1.6 2016/08/04 06:44:58 kiyohara Exp $");
#include "opt_omap.h"
#include "locators.h"
@@ -335,10 +335,18 @@
DPRINTF("now val 0x%x", val, 0, 0, 0);
#endif
/* XXX configure mode */
+#if 0
if (sc->sc_ctrlport == 0)
sc->sc_motg.sc_mode = MOTG_MODE_DEVICE;
else
sc->sc_motg.sc_mode = MOTG_MODE_HOST;
+#else
+ /* XXXXX
+ * Both ports always the host mode only.
+ * And motg(4) doesn't supports device and OTG modes.
+ */
+ sc->sc_motg.sc_mode = MOTG_MODE_HOST;
+#endif
if (sc->sc_motg.sc_mode == MOTG_MODE_HOST) {
val = TIOTG_USBC_READ4(sc, USBCTRL_MODE);
val |= USBCTRL_MODE_IDDIGMUX;
Home |
Main Index |
Thread Index |
Old Index