Reference compatibility table in README
[rpi-open-firmware.git] / BCM2708PlatformStartup.cc
1 /*
2 * VideoCore4_Drivers
3 * Copyright (c) 2017 Kristina Brooks
4 *
5 * BCM2708 power management driver.
6 */
7
8 #include <drivers/IODevice.hpp>
9 #include <drivers/BCM2708PowerManagement.hpp>
10
11 extern "C" void PEStartPlatform() {
12 IODevice* imagePm = PowerManagementDomain::getDeviceForDomain(kCprPowerDomainImage);
13 assert(imagePm);
14 IODevice* usbPm = PowerManagementDomain::getDeviceForDomain(kCprPowerDomainUSB);
15 assert(usbPm);
16
17 /*
18 * all devices in the IMAGE domain have to be disabled before
19 * starting the domain itself.
20 */
21 usbPm->stop();
22 /*
23 * enable IMAGE power domain.
24 */
25 imagePm->start();
26 /*
27 * enable USB power domain.
28 */
29 usbPm->start();
30
31 /*
32 * start up USB PHY.
33 */
34 IODevice* usbPhy = IODevice::findByTag('USBP');
35 assert(usbPhy);
36 usbPhy->start();
37 }
This page took 0.07347 seconds and 4 git commands to generate.