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
e0617c62
Commit
e0617c62
authored
14 years ago
by
Minkyu Kang
Committed by
Albert Aribaud
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
S5P: serial: Use the inline function instead of static value
Signed-off-by:
Minkyu Kang
<
mk7.kang@samsung.com
>
parent
5eb522a6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/arm/include/asm/arch-s5pc1xx/uart.h
+4
-1
4 additions, 1 deletion
arch/arm/include/asm/arch-s5pc1xx/uart.h
drivers/serial/serial_s5p.c
+1
-1
1 addition, 1 deletion
drivers/serial/serial_s5p.c
with
5 additions
and
2 deletions
arch/arm/include/asm/arch-s5pc1xx/uart.h
+
4
−
1
View file @
e0617c62
...
...
@@ -48,7 +48,10 @@ struct s5p_uart {
unsigned
char
res3
[
0x3d0
];
};
static
int
use_divslot
=
1
;
static
inline
int
s5p_uart_divslot
(
void
)
{
return
1
;
}
#endif
/* __ASSEMBLY__ */
...
...
This diff is collapsed.
Click to expand it.
drivers/serial/serial_s5p.c
+
1
−
1
View file @
e0617c62
...
...
@@ -72,7 +72,7 @@ void serial_setbrg_dev(const int dev_index)
writel
(
val
/
16
-
1
,
&
uart
->
ubrdiv
);
if
(
use
_divslot
)
if
(
s5p_uart
_divslot
()
)
writew
(
udivslot
[
val
%
16
],
&
uart
->
rest
.
slot
);
else
writeb
(
val
%
16
,
&
uart
->
rest
.
value
);
...
...
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