Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
beagle
>
kernel-adaptation-dm3730
> 0029-board-medistream-fixed-usb-hub-reset.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0029-board-medistream-fixed-usb-hub-reset.patch of Package kernel-adaptation-dm3730
From 894bb9a033b7fb223ee0b02dab65db60bd4aaf8c Mon Sep 17 00:00:00 2001 From: MediStream-Devel-VM <info@berlinux-solutions.de> Date: Mon, 18 Mar 2013 10:46:58 +0100 Subject: [PATCH] board-medistream: -fixed usb hub reset --- arch/arm/mach-omap2/board-medistream.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/board-medistream.c b/arch/arm/mach-omap2/board-medistream.c index 07b5c91..7bc0a1d 100644 --- a/arch/arm/mach-omap2/board-medistream.c +++ b/arch/arm/mach-omap2/board-medistream.c @@ -300,10 +300,10 @@ static int __init medistream_twl_gpio_setup(struct device *dev, mmc[0].gpio_cd = gpio + 0; omap_hsmmc_late_init(mmc); - gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR"); /* USB HUB SMSC USB2514 GPIO*/ - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); /*sets Trasistor basis of Q1 to Value 1 which results in LOW of USB HUB Reset Pin for RESET state */ - msleep(500); /*let a little time is always good!*/ - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); /*sets Trasistor basis of Q1 to Value 0 which results in High of USB HUB Reset Pin for normal operation */ + /* USB HUB SMSC USB2514 GPIO*/ + gpio_request_one(gpio + TWL4030_GPIO_MAX, GPIOF_OUT_INIT_HIGH, "nEN_USB_PWR"); /* sets Trasistor basis of Q1 to Value 1 which results in LOW of USB HUB Reset Pin for RESET state */ + msleep(500); /*let a little time is always good!*/ + gpio_request_one(gpio + TWL4030_GPIO_MAX, GPIOF_OUT_INIT_LOW,"nEN_USB_PWR"); /*sets Trasistor basis of Q1 to Value 0 which results in High of USB HUB Reset Pin for normal operation */ return 0; } -- 1.7.5.4