Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81269
b: refs/heads/master
c: 94f3894
h: refs/heads/master
i:
  81267: df57248
v: v3
  • Loading branch information
John Rigby authored and Grant Likely committed Jan 21, 2008
1 parent a5fc30e commit 64d3d65
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 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: 5b5820d08b8cc90ba0148bf8d4a5a1f792e9e8ba
refs/heads/master: 94f389485e27641348c1951ab8d65157122a8939
10 changes: 6 additions & 4 deletions trunk/drivers/serial/mpc52xx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ static void mpc52xx_uart_of_enumerate(void);
#endif

#define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase))
#define FIFO(port) ((struct mpc52xx_psc_fifo __iomem *)(PSC(port)+1))


/* Forward declaration of the interruption handling routine */
Expand Down Expand Up @@ -223,6 +224,7 @@ static int
mpc52xx_uart_startup(struct uart_port *port)
{
struct mpc52xx_psc __iomem *psc = PSC(port);
struct mpc52xx_psc_fifo __iomem *fifo = FIFO(port);
int ret;

/* Request IRQ */
Expand All @@ -239,10 +241,10 @@ mpc52xx_uart_startup(struct uart_port *port)

out_be16(&psc->mpc52xx_psc_clock_select, 0xdd00); /* /16 prescaler on */

out_8(&psc->rfcntl, 0x00);
out_be16(&psc->rfalarm, 0x1ff);
out_8(&psc->tfcntl, 0x07);
out_be16(&psc->tfalarm, 0x80);
out_8(&fifo->rfcntl, 0x00);
out_be16(&fifo->rfalarm, 0x1ff);
out_8(&fifo->tfcntl, 0x07);
out_be16(&fifo->tfalarm, 0x80);

port->read_status_mask |= MPC52xx_PSC_IMR_RXRDY | MPC52xx_PSC_IMR_TXRDY;
out_be16(&psc->mpc52xx_psc_imr,port->read_status_mask);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-powerpc/mpc52xx_psc.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ struct mpc52xx_psc {
u8 reserved16[3];
u8 irfdr; /* PSC + 0x54 */
u8 reserved17[3];
};

struct mpc52xx_psc_fifo {
u16 rfnum; /* PSC + 0x58 */
u16 reserved18;
u16 tfnum; /* PSC + 0x5c */
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-ppc/mpc52xx_psc.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ struct mpc52xx_psc {
u8 reserved16[3];
u8 irfdr; /* PSC + 0x54 */
u8 reserved17[3];
};

struct mpc52xx_psc_fifo {
u16 rfnum; /* PSC + 0x58 */
u16 reserved18;
u16 tfnum; /* PSC + 0x5c */
Expand Down

0 comments on commit 64d3d65

Please sign in to comment.