Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179456
b: refs/heads/master
c: f8e26cd
h: refs/heads/master
v: v3
  • Loading branch information
Marko Ristola authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent 26c7211 commit e64c91a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 77557abef0de3f1f1e8f563db6df8710a9e930fe
refs/heads/master: f8e26cdec5ac25ae8d73e278e21033292de5430b
16 changes: 7 additions & 9 deletions trunk/drivers/media/dvb/mantis/mantis_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,23 @@ int mantis_core_exit(struct mantis_pci *mantis)
return 0;
}

// Turn the given bit on or off.
void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value)
{
u32 reg;
u32 currVal, newVal;

currVal = mmread(MANTIS_GPIF_ADDR);

if (value)
reg = 0x0000;
newVal = currVal | (1 << bitpos);
else
reg = 0xffff;

reg = (value << bitpos);
newVal = currVal & (~(1 << bitpos));

mmwrite(mmread(MANTIS_GPIF_ADDR) | reg, MANTIS_GPIF_ADDR);
mmwrite(newVal, MANTIS_GPIF_ADDR);
mmwrite(0x00, MANTIS_GPIF_DOUT);
udelay(100);
mmwrite(mmread(MANTIS_GPIF_ADDR) | reg, MANTIS_GPIF_ADDR);
mmwrite(0x00, MANTIS_GPIF_DOUT);
}


//direction = 0 , no CI passthrough ; 1 , CI passthrough
void mantis_set_direction(struct mantis_pci *mantis, int direction)
{
Expand Down

0 comments on commit e64c91a

Please sign in to comment.