-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: isp1760: allow platform devices to customize devflags
Platform device support was merged earlier, but support for boards to customize the devflags aspect of the controller was not. We want this on Blackfin systems to control the bus width, but might as well expose all of the fields while we're at it. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Michael Hennerich
authored and
Greg Kroah-Hartman
committed
Sep 23, 2009
1 parent
331ac6b
commit 9da69c6
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* board initialization should put one of these into dev->platform_data | ||
* and place the isp1760 onto platform_bus named "isp1760-hcd". | ||
*/ | ||
|
||
#ifndef __LINUX_USB_ISP1760_H | ||
#define __LINUX_USB_ISP1760_H | ||
|
||
struct isp1760_platform_data { | ||
unsigned is_isp1761:1; /* Chip is ISP1761 */ | ||
unsigned bus_width_16:1; /* 16/32-bit data bus width */ | ||
unsigned port1_otg:1; /* Port 1 supports OTG */ | ||
unsigned analog_oc:1; /* Analog overcurrent */ | ||
unsigned dack_polarity_high:1; /* DACK active high */ | ||
unsigned dreq_polarity_high:1; /* DREQ active high */ | ||
}; | ||
|
||
#endif /* __LINUX_USB_ISP1760_H */ |