mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 03:21:32 +00:00
S5P: serial: Use the inline function instead of static value
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
5eb522a68c
commit
e0617c621d
2 changed files with 5 additions and 2 deletions
|
@ -48,7 +48,10 @@ struct s5p_uart {
|
||||||
unsigned char res3[0x3d0];
|
unsigned char res3[0x3d0];
|
||||||
};
|
};
|
||||||
|
|
||||||
static int use_divslot = 1;
|
static inline int s5p_uart_divslot(void)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ void serial_setbrg_dev(const int dev_index)
|
||||||
|
|
||||||
writel(val / 16 - 1, &uart->ubrdiv);
|
writel(val / 16 - 1, &uart->ubrdiv);
|
||||||
|
|
||||||
if (use_divslot)
|
if (s5p_uart_divslot())
|
||||||
writew(udivslot[val % 16], &uart->rest.slot);
|
writew(udivslot[val % 16], &uart->rest.slot);
|
||||||
else
|
else
|
||||||
writeb(val % 16, &uart->rest.value);
|
writeb(val % 16, &uart->rest.value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue