-
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.
yaml --- r: 105146 b: refs/heads/master c: 32584c8 h: refs/heads/master v: v3
- Loading branch information
Ian Molton
committed
Jul 10, 2008
1 parent
5c35c7f
commit 8ac3e89
Showing
3 changed files
with
59 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8fb105f5cc7f31ff37755945378a668f4c21590e | ||
refs/heads/master: 32584c86b26e503dcd7228ab1c67a1e4ce9b48c4 |
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,57 @@ | ||
/* | ||
* UDC functions for the Toshiba e-series PDAs | ||
* | ||
* Copyright (c) Ian Molton 2003 | ||
* | ||
* This file is licensed under | ||
* the terms of the GNU General Public License version 2. This program | ||
* is licensed "as is" without any warranty of any kind, whether express | ||
* or implied. | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/device.h> | ||
|
||
#include <asm/arch/udc.h> | ||
#include <asm/arch/eseries-gpio.h> | ||
#include <asm/arch/hardware.h> | ||
#include <asm/arch/pxa-regs.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/mach-types.h> | ||
#include <asm/mach/map.h> | ||
#include <asm/domain.h> | ||
|
||
/* local PXA generic code */ | ||
#include "generic.h" | ||
|
||
static struct pxa2xx_udc_mach_info e7xx_udc_mach_info = { | ||
.gpio_vbus = GPIO_E7XX_USB_DISC, | ||
.gpio_pullup = GPIO_E7XX_USB_PULLUP, | ||
.gpio_pullup_inverted = 1 | ||
}; | ||
|
||
static struct pxa2xx_udc_mach_info e800_udc_mach_info = { | ||
.gpio_vbus = GPIO_E800_USB_DISC, | ||
.gpio_pullup = GPIO_E800_USB_PULLUP, | ||
.gpio_pullup_inverted = 1 | ||
}; | ||
|
||
static int __init eseries_udc_init(void) | ||
{ | ||
if (machine_is_e330() || machine_is_e350() || | ||
machine_is_e740() || machine_is_e750() || | ||
machine_is_e400()) | ||
pxa_set_udc_info(&e7xx_udc_mach_info); | ||
else if (machine_is_e800()) | ||
pxa_set_udc_info(&e800_udc_mach_info); | ||
|
||
return 0; | ||
} | ||
|
||
module_init(eseries_udc_init); | ||
|
||
MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
MODULE_DESCRIPTION("eseries UDC support"); | ||
MODULE_LICENSE("GPLv2"); |