repo.or.cz
/
u-boot-openmoko
/
mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
MINI2440: Auto probe for SDRAM size
[u-boot-openmoko/mini2440.git]
/
board
/
smdk2440
/
udc.c
blob
da0a0bc1f4ee60d5c566268ee6c2fa1f3a79c83a
1
2
#include <common.h>
3
#include <usbdcore.h>
4
#include <s3c2440.h>
5
6
void
udc_ctrl
(
enum
usbd_event event
,
int
param
)
7
{
8
S3C24X0_GPIO
*
const
gpio
=
S3C24X0_GetBase_GPIO
();
9
10
switch
(
event
) {
11
case
UDC_CTRL_PULLUP_ENABLE
:
12
if
(
param
)
13
gpio
->
GPGDAT
|= (
1
<<
12
);
14
else
15
gpio
->
GPGDAT
&= ~(
1
<<
12
);
16
break
;
17
case
UDC_CTRL_500mA_ENABLE
:
18
/* IGNORE */
19
break
;
20
default
:
21
break
;
22
}
23
}