Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116185
b: refs/heads/master
c: ba1d281
h: refs/heads/master
i:
  116183: 2c36400
v: v3
  • Loading branch information
Nobuhiro Iwamatsu authored and Paul Mundt committed Oct 20, 2008
1 parent e9a6128 commit 44ba1fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f400f510df4e29bd00ffe07981ec703070cb9e19
refs/heads/master: ba1d28181c586deec468cc6ae558c0c099f1b956
9 changes: 8 additions & 1 deletion trunk/drivers/serial/sh-sci.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,14 @@ static inline int sci_rxd_in(struct uart_port *port)
defined(CONFIG_CPU_SUBTYPE_SH7721)
#define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(32*bps)-1)
#elif defined(CONFIG_CPU_SUBTYPE_SH7723)
#define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(16*bps)-1)
static inline int scbrr_calc(struct uart_port *port, int bps, int clk)
{
if (port->type == PORT_SCIF)
return (clk+16*bps)/(32*bps)-1;
else
return ((clk*2)+16*bps)/(16*bps)-1;
}
#define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk)
#elif defined(__H8300H__) || defined(__H8300S__)
#define SCBRR_VALUE(bps, clk) (((clk*1000/32)/bps)-1)
#else /* Generic SH */
Expand Down

0 comments on commit 44ba1fb

Please sign in to comment.