Try something else
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 29 Jan 2017 17:51:59 +0000 (09:51 -0800)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 29 Jan 2017 17:51:59 +0000 (09:51 -0800)
drivers/BCM2708UsbPhy.cc

index 602ab9a..ba8e25b 100644 (file)
@@ -45,10 +45,12 @@ struct BCM2708UsbPhy : IODevice {
        virtual void start() override {
                IODriverLog("starting ...");
 
-               /* pseudo code really.. */
+               /* enable clock */
                A2W_XOSC_CTRL |= A2W_PASSWORD | A2W_XOSC_CTRL_USBEN_SET;
                while(!(A2W_XOSC_CTRL & A2W_XOSC_CTRL_USBOK_SET));
 
+               CM_TDCLKEN |= CM_PASSWORD | CM_TDCLKEN_USBDFT_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.026227 seconds and 4 git commands to generate.