Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100856
b: refs/heads/master
c: d088e5f
h: refs/heads/master
v: v3
  • Loading branch information
Christer Weinigel authored and Ben Dooks committed Jul 7, 2008
1 parent 54b1a34 commit 63c82ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 196a047574e1465b89bc41fda573efc9b9be70e5
refs/heads/master: d088e5fe586287da003341e7bbfdad15e0f432f7
25 changes: 25 additions & 0 deletions trunk/arch/arm/mach-s3c2410/mach-n30.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <asm/plat-s3c24xx/cpu.h>
#include <asm/plat-s3c24xx/devs.h>
#include <asm/plat-s3c24xx/s3c2410.h>
#include <asm/plat-s3c24xx/udc.h>

static struct map_desc n30_iodesc[] __initdata = {
/* nothing here yet */
Expand Down Expand Up @@ -74,6 +75,29 @@ static struct s3c2410_uartcfg n30_uartcfgs[] = {
},
};

static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd)
{
switch (cmd)
{
case S3C2410_UDC_P_ENABLE :
s3c2410_gpio_setpin(S3C2410_GPB3, 1);
break;
case S3C2410_UDC_P_DISABLE :
s3c2410_gpio_setpin(S3C2410_GPB3, 0);
break;
case S3C2410_UDC_P_RESET :
break;
default:
break;
}
}

static struct s3c2410_udc_mach_info n30_udc_cfg __initdata = {
.udc_command = n30_udc_pullup,
.vbus_pin = S3C2410_GPG1,
.vbus_pin_inverted = 0,
};

static struct platform_device *n30_devices[] __initdata = {
&s3c_device_lcd,
&s3c_device_wdt,
Expand Down Expand Up @@ -107,6 +131,7 @@ static void __init n30_init_irq(void)
static void __init n30_init(void)
{
s3c_device_i2c.dev.platform_data = &n30_i2ccfg;
s3c24xx_udc_set_platdata(&n30_udc_cfg);

/* Turn off suspend on both USB ports, and switch the
* selectable USB port to USB device mode. */
Expand Down

0 comments on commit 63c82ad

Please sign in to comment.