Pseudocode to enable USB XOSC
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 27 Jan 2017 16:31:04 +0000 (08:31 -0800)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 27 Jan 2017 16:31:04 +0000 (08:31 -0800)
drivers/BCM2708UsbPhy.cc

index ecddd52..8442e0b 100644 (file)
@@ -45,6 +45,10 @@ struct BCM2708UsbPhy : IODevice {
        virtual void start() override {
                IODriverLog("starting ...");
 
+               /* pseudo code really.. */
+               A2W_XOSC_CTRL |= A2W_PASSWORD | A2W_XOSC_USBEN_SET;
+               while(!(A2W_XOSC_CTRL & A2W_XOSC_USBOK_SET));
+
                /* the LAN_RUN pin is GPIO6 according to the schematic */
                /* edit: it's different between models.
                 * see https://github.com/raspberrypi/firmware/blob/master/extra/dt-blob.dts#L711
This page took 0.033542 seconds and 4 git commands to generate.