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:
Norman Feske 2013-09-17 00:31:42 +02:00
parent 148206d757
commit b7b8d22bc3
2 changed files with 9 additions and 1 deletions

View File

@ -43,3 +43,6 @@ SRC_CC += platform.cc
vpath platform.cc $(LIB_DIR)/arm/platform_rpi
vpath %.c $(CONTRIB_DIR)/drivers/net/usb
# enable C++11 support
CC_CXX_OPT += -std=gnu++11

View File

@ -11,9 +11,10 @@
* under the terms of the GNU General Public License version 2.
*/
/* Genode */
/* Genode includes */
#include <io_mem_session/connection.h>
#include <util/mmio.h>
#include <platform_session/connection.h>
/* emulation */
#include <platform/platform.h>
@ -186,6 +187,10 @@ extern "C" int module_smsc95xx_driver_init();
void platform_hcd_init(Services *services)
{
/* enable USB power */
Platform::Connection platform;
platform.power_state(Platform::Session::POWER_USB_HCD, true);
/* register network */
if (services->nic) {
module_usbnet_init();