Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
e99056e3
Commit
e99056e3
authored
15 years ago
by
Asen Dimov
Committed by
trix
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
using AT91_PMC_MCKR_MDIV_ instead of LEGACY one in at91/clock.c
Signed-off-by:
Asen Dimov
<
dimov@ronetix.at
>
parent
4b894a97
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/arm926ejs/at91/clock.c
+2
-1
2 additions, 1 deletion
cpu/arm926ejs/at91/clock.c
with
2 additions
and
1 deletion
cpu/arm926ejs/at91/clock.c
+
2
−
1
View file @
e99056e3
...
@@ -203,7 +203,8 @@ int at91_clock_init(unsigned long main_clock)
...
@@ -203,7 +203,8 @@ int at91_clock_init(unsigned long main_clock)
if
(
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
if
(
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
freq
/=
2
;
/* processor clock division */
freq
/=
2
;
/* processor clock division */
#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45)
#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45)
mck_rate_hz
=
(
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
==
AT91SAM9_PMC_MDIV_3
mck_rate_hz
=
(
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
==
(
AT91_PMC_MCKR_MDIV_2
|
AT91_PMC_MCKR_MDIV_4
)
?
freq
/
3
?
freq
/
3
:
freq
/
(
1
<<
((
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
>>
8
));
:
freq
/
(
1
<<
((
mckr
&
AT91_PMC_MCKR_MDIV_MASK
)
>>
8
));
#else
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment