Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64861
b: refs/heads/master
c: 719b6f2
h: refs/heads/master
i:
  64859: 7818b6b
v: v3
  • Loading branch information
Thiemo Seufer authored and Linus Torvalds committed Sep 12, 2007
1 parent b98a460 commit 88b03dd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9b5a5d193c3f0bc2a8331d95e0e74d76eb8ee2c
refs/heads/master: 719b6f29fc2064eeeaa360ca06ce11aa207606fb
6 changes: 6 additions & 0 deletions trunk/drivers/serial/sb1250-duart.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
#define SBD_CTRLREGS(line) A_BCM1480_DUART_CTRLREG((line), 0)
#define SBD_INT(line) (K_BCM1480_INT_UART_0 + (line))

#define DUART_CHANREG_SPACING BCM1480_DUART_CHANREG_SPACING

#define R_DUART_IMRREG(line) R_BCM1480_DUART_IMRREG(line)
#define R_DUART_INCHREG(line) R_BCM1480_DUART_INCHREG(line)
#define R_DUART_ISRREG(line) R_BCM1480_DUART_ISRREG(line)

#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X)
#include <asm/sibyte/sb1250_regs.h>
#include <asm/sibyte/sb1250_int.h>
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-mips/sibyte/bcm1480_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,15 @@
(A_BCM1480_DUART(chan) + \
BCM1480_DUART_CHANREG_SPACING * 3 + (reg))

#define DUART_IMRISR_SPACING 0x20
#define DUART_INCHNG_SPACING 0x10

#define R_BCM1480_DUART_IMRREG(chan) \
(R_DUART_IMR_A + ((chan) & 1) * DUART_IMRISR_SPACING)
#define R_BCM1480_DUART_ISRREG(chan) \
(R_DUART_ISR_A + ((chan) & 1) * DUART_IMRISR_SPACING)
#define R_BCM1480_DUART_INCHREG(chan) \
(R_DUART_IN_CHNG_A + ((chan) & 1) * DUART_INCHNG_SPACING)

#define A_BCM1480_DUART_IMRREG(chan) \
(A_BCM1480_DUART_CTRLREG((chan), R_BCM1480_DUART_IMRREG(chan)))
Expand Down

0 comments on commit 88b03dd

Please sign in to comment.