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
967f495c
Commit
967f495c
authored
Oct 03, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Change h4 smc91x init to use mux api
Change h4 smc91x init to use mux api
parent
19a8203c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-h4.c
+3
-11
No files found.
arch/arm/mach-omap2/board-h4.c
View file @
967f495c
...
...
@@ -113,21 +113,13 @@ static struct platform_device *h4_devices[] __initdata = {
static
inline
void
__init
h4_init_smc91x
(
void
)
{
u32
l
;
omap_cfg_reg
(
M15_24XX_GPIO92
);
if
(
omap_request_gpio
(
OMAP24XX_ETHR_GPIO_IRQ
)
<
0
)
{
printk
(
KERN_ERR
"Failed to request GPIO
#
%d for smc91x IRQ
\n
"
,
printk
(
KERN_ERR
"Failed to request GPIO%d for smc91x IRQ
\n
"
,
OMAP24XX_ETHR_GPIO_IRQ
);
return
;
}
set_irq_type
(
OMAP_GPIO_IRQ
(
OMAP24XX_ETHR_GPIO_IRQ
),
IRQT_FALLING
);
/* Set pin M15 to mux mode 3 -> GPIO#92, disable PU/PD */
/* FIXME: change this using omap2 mux api when it's ready */
l
=
__raw_readl
(
0xd8000000
+
0x108
);
l
&=
~
(((
1
<<
5
)
-
1
)
<<
16
);
l
|=
3
<<
16
;
__raw_writel
(
l
,
0xd8000000
+
0x108
);
omap_set_gpio_direction
(
OMAP24XX_ETHR_GPIO_IRQ
,
1
);
}
static
void
__init
omap_h4_init_irq
(
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