mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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 %.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.
|
||||
*/
|
||||
|
||||
/* 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user