From 63a1ed1306ce59a99b970ffe9010d1eb6c5daf9c Mon Sep 17 00:00:00 2001
From: Kevin Bracey <kbracey@gitlab.riscosopen.org>
Date: Mon, 22 Mar 2004 15:04:00 +0000
Subject: [PATCH] Selects per-port power control for all ports before starting
 BSD code.

Fix suggested by Dan Ellis.

Version 0.24. Tagged as 'NetBSD-0_24'
---
 VersionNum         | 20 ++++++++++----------
 build/c/ohcimodule |  3 +++
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/VersionNum b/VersionNum
index 66d88dc..ef2171d 100644
--- a/VersionNum
+++ b/VersionNum
@@ -1,23 +1,23 @@
-/* (0.23)
+/* (0.24)
  *
  * This file is automatically maintained by srccommit, do not edit manually.
  * Last processed by srccommit version: 1.68.
  *
  */
-#define Module_MajorVersion_CMHG        0.23
+#define Module_MajorVersion_CMHG        0.24
 #define Module_MinorVersion_CMHG        
-#define Module_Date_CMHG                16 Feb 2004
+#define Module_Date_CMHG                22 Mar 2004
 
-#define Module_MajorVersion             "0.23"
-#define Module_Version                  23
+#define Module_MajorVersion             "0.24"
+#define Module_Version                  24
 #define Module_MinorVersion             ""
-#define Module_Date                     "16 Feb 2004"
+#define Module_Date                     "22 Mar 2004"
 
-#define Module_ApplicationDate          "16-Feb-04"
+#define Module_ApplicationDate          "22-Mar-04"
 
 #define Module_ComponentName            "NetBSD"
 #define Module_ComponentPath            "RiscOS/Sources/HWSupport/USB/NetBSD"
 
-#define Module_FullVersion              "0.23"
-#define Module_HelpVersion              "0.23 (16 Feb 2004)"
-#define Module_LibraryVersionInfo       "0:23"
+#define Module_FullVersion              "0.24"
+#define Module_HelpVersion              "0.24 (22 Mar 2004)"
+#define Module_LibraryVersionInfo       "0:24"
diff --git a/build/c/ohcimodule b/build/c/ohcimodule
index d14f997..91935c0 100644
--- a/build/c/ohcimodule
+++ b/build/c/ohcimodule
@@ -277,6 +277,9 @@ _kernel_oserror *module_init(const char *cmd_tail, int podule_base, void *pw) {
     }
     dprintf (("", "magic at %p", magic));
 
+    /* enable per-port power control on all ports */
+    ohci_base[OHCI_RH_DESCRIPTOR_B / 4] = 0xFFFF0000;
+
     /* for the L7205, clocks need to be started */
     /* in BSD this is called from sys/pci/ohci_pci.c */
     ohci_init (&ohci_soft);
-- 
GitLab