dde_linux/rpi: Enable USB power on startup
Needed when booting Genode directly from SD card w/o u-boot.
This commit is contained in:
parent
148206d757
commit
b7b8d22bc3
|
@ -43,3 +43,6 @@ SRC_CC += platform.cc
|
||||||
|
|
||||||
vpath platform.cc $(LIB_DIR)/arm/platform_rpi
|
vpath platform.cc $(LIB_DIR)/arm/platform_rpi
|
||||||
vpath %.c $(CONTRIB_DIR)/drivers/net/usb
|
vpath %.c $(CONTRIB_DIR)/drivers/net/usb
|
||||||
|
|
||||||
|
# enable C++11 support
|
||||||
|
CC_CXX_OPT += -std=gnu++11
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
* under the terms of the GNU General Public License version 2.
|
* under the terms of the GNU General Public License version 2.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Genode */
|
/* Genode includes */
|
||||||
#include <io_mem_session/connection.h>
|
#include <io_mem_session/connection.h>
|
||||||
#include <util/mmio.h>
|
#include <util/mmio.h>
|
||||||
|
#include <platform_session/connection.h>
|
||||||
|
|
||||||
/* emulation */
|
/* emulation */
|
||||||
#include <platform/platform.h>
|
#include <platform/platform.h>
|
||||||
|
@ -186,6 +187,10 @@ extern "C" int module_smsc95xx_driver_init();
|
||||||
|
|
||||||
void platform_hcd_init(Services *services)
|
void platform_hcd_init(Services *services)
|
||||||
{
|
{
|
||||||
|
/* enable USB power */
|
||||||
|
Platform::Connection platform;
|
||||||
|
platform.power_state(Platform::Session::POWER_USB_HCD, true);
|
||||||
|
|
||||||
/* register network */
|
/* register network */
|
||||||
if (services->nic) {
|
if (services->nic) {
|
||||||
module_usbnet_init();
|
module_usbnet_init();
|
||||||
|
|
Loading…
Reference in New Issue