Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93472
b: refs/heads/master
c: 2f0b45f
h: refs/heads/master
v: v3
  • Loading branch information
John Linn authored and Josh Boyer committed Apr 24, 2008
1 parent 1e87f01 commit 07b367d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 884d04cd8d7bba3dc885227ad400f8aea5623cdc
refs/heads/master: 2f0b45f846735b486c0383740d3959941c4721a4
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/boot/ns16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ static u8 ns16550_tstc(void)
int ns16550_console_init(void *devp, struct serial_console_data *scdp)
{
int n;
u32 reg_offset;

if (dt_get_virtual_reg(devp, (void **)&reg_base, 1) < 1)
return -1;

n = getprop(devp, "reg-offset", &reg_offset, sizeof(reg_offset));
if (n == sizeof(reg_offset))
reg_base += reg_offset;

n = getprop(devp, "reg-shift", &reg_shift, sizeof(reg_shift));
if (n != sizeof(reg_shift))
reg_shift = 0;
Expand Down

0 comments on commit 07b367d

Please sign in to comment.