Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
70f6d3e8
Commit
70f6d3e8
authored
Jul 13, 2009
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa/littleton: update littleton to use the new gpio_card_detect for mmc
Signed-off-by:
Eric Miao
<
eric.y.miao@gmail.com
>
parent
7a648256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
38 deletions
+5
-38
arch/arm/mach-pxa/littleton.c
arch/arm/mach-pxa/littleton.c
+5
-38
No files found.
arch/arm/mach-pxa/littleton.c
View file @
70f6d3e8
...
...
@@ -265,45 +265,12 @@ static inline void littleton_init_keypad(void) {}
#endif
#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
static
int
littleton_mci_init
(
struct
device
*
dev
,
irq_handler_t
littleton_detect_int
,
void
*
data
)
{
int
err
,
gpio_cd
=
GPIO_MMC1_CARD_DETECT
;
err
=
gpio_request
(
gpio_cd
,
"mmc card detect"
);
if
(
err
)
goto
err_request_cd
;
gpio_direction_input
(
gpio_cd
);
err
=
request_irq
(
gpio_to_irq
(
gpio_cd
),
littleton_detect_int
,
IRQF_TRIGGER_RISING
|
IRQF_TRIGGER_FALLING
,
"mmc card detect"
,
data
);
if
(
err
)
{
dev_err
(
dev
,
"failed to request card detect IRQ
\n
"
);
goto
err_request_irq
;
}
return
0
;
err_request_irq:
gpio_free
(
gpio_cd
);
err_request_cd:
return
err
;
}
static
void
littleton_mci_exit
(
struct
device
*
dev
,
void
*
data
)
{
int
gpio_cd
=
GPIO_MMC1_CARD_DETECT
;
free_irq
(
gpio_to_irq
(
gpio_cd
),
data
);
gpio_free
(
gpio_cd
);
}
static
struct
pxamci_platform_data
littleton_mci_platform_data
=
{
.
detect_delay
=
20
,
.
ocr_mask
=
MMC_VDD_32_33
|
MMC_VDD_33_34
,
.
init
=
littleton_mci_init
,
.
exit
=
littleton_mci_exit
,
.
detect_delay
=
20
,
.
ocr_mask
=
MMC_VDD_32_33
|
MMC_VDD_33_34
,
.
gpio_card_detect
=
GPIO_MMC1_CARD_DETECT
,
.
gpio_card_ro
=
-
1
,
.
gpio_power
=
-
1
,
};
static
void
__init
littleton_init_mmc
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment