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
3566fc63
Commit
3566fc63
authored
Oct 19, 2009
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omap: Use ioremap in dmtimer.c
Use ioremap in dmtimer.c Signed-off-by:
Tony Lindgren
<
tony@atomide.com
>
parent
7e9bf847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/dmtimer.c
+9
-7
No files found.
arch/arm/plat-omap/dmtimer.c
View file @
3566fc63
...
...
@@ -742,16 +742,17 @@ EXPORT_SYMBOL_GPL(omap_dm_timers_active);
int
__init
omap_dm_timer_init
(
void
)
{
struct
omap_dm_timer
*
timer
;
int
i
;
int
i
,
map_size
=
SZ_8K
;
/* Module 4KB + L4 4KB except on omap1 */
if
(
!
(
cpu_is_omap16xx
()
||
cpu_class_is_omap2
()))
return
-
ENODEV
;
spin_lock_init
(
&
dm_timer_lock
);
if
(
cpu_class_is_omap1
())
if
(
cpu_class_is_omap1
())
{
dm_timers
=
omap1_dm_timers
;
else
if
(
cpu_is_omap24xx
())
{
map_size
=
SZ_2K
;
}
else
if
(
cpu_is_omap24xx
())
{
dm_timers
=
omap2_dm_timers
;
dm_source_names
=
omap2_dm_source_names
;
dm_source_clocks
=
omap2_dm_source_clocks
;
...
...
@@ -774,10 +775,11 @@ int __init omap_dm_timer_init(void)
for
(
i
=
0
;
i
<
dm_timer_count
;
i
++
)
{
timer
=
&
dm_timers
[
i
];
if
(
cpu_class_is_omap1
())
timer
->
io_base
=
OMAP1_IO_ADDRESS
(
timer
->
phys_base
);
else
timer
->
io_base
=
OMAP2_IO_ADDRESS
(
timer
->
phys_base
);
/* Static mapping, never released */
timer
->
io_base
=
ioremap
(
timer
->
phys_base
,
map_size
);
BUG_ON
(
!
timer
->
io_base
);
#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
defined(CONFIG_ARCH_OMAP4)
if
(
cpu_class_is_omap2
())
{
...
...
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