Pseudocode to enable USB XOSC
[rpi-open-firmware.git] / drivers / BCM2708UsbPhy.cc
index 67aea00..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
@@ -80,7 +84,6 @@ struct BCM2708UsbPhy : IODevice {
 
                usb_write(0x1D, 0x5000);
                usb_write(0x19, 0xC004);
-               usb_write(0x32, 0x1C2F);
                usb_write(0x20, 0x1C2F);
                usb_write(0x22, 0x0100);
                usb_write(0x24, 0x0010);
This page took 0.026305 seconds and 4 git commands to generate.