Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81060
b: refs/heads/master
c: 721c0c8
h: refs/heads/master
v: v3
  • Loading branch information
Jochen Friedrich authored and Kumar Gala committed Dec 14, 2007
1 parent 4a6f78d commit bfb9202
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 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: 0b5cf10691eb2c95a9126bf25f5e084d83d5d743
refs/heads/master: 721c0c8af1a27941a34af5046aae4a8369c8404c
19 changes: 16 additions & 3 deletions trunk/arch/powerpc/sysdev/commproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ EXPORT_SYMBOL(cpm_dpram_phys);
#endif /* !CONFIG_PPC_CPM_NEW_BINDING */

struct cpm_ioport16 {
__be16 dir, par, sor, dat, intr;
__be16 dir, par, odr_sor, dat, intr;
__be16 res[3];
};

Expand Down Expand Up @@ -438,6 +438,13 @@ static void cpm1_set_pin32(int port, int pin, int flags)
else
clrbits32(&iop->par, pin);

if (port == CPM_PORTB) {
if (flags & CPM_PIN_OPENDRAIN)
setbits16(&mpc8xx_immr->im_cpm.cp_pbodr, pin);
else
clrbits16(&mpc8xx_immr->im_cpm.cp_pbodr, pin);
}

if (port == CPM_PORTE) {
if (flags & CPM_PIN_SECONDARY)
setbits32(&iop->sor, pin);
Expand Down Expand Up @@ -471,11 +478,17 @@ static void cpm1_set_pin16(int port, int pin, int flags)
else
clrbits16(&iop->par, pin);

if (port == CPM_PORTA) {
if (flags & CPM_PIN_OPENDRAIN)
setbits16(&iop->odr_sor, pin);
else
clrbits16(&iop->odr_sor, pin);
}
if (port == CPM_PORTC) {
if (flags & CPM_PIN_SECONDARY)
setbits16(&iop->sor, pin);
setbits16(&iop->odr_sor, pin);
else
clrbits16(&iop->sor, pin);
clrbits16(&iop->odr_sor, pin);
}
}

Expand Down

0 comments on commit bfb9202

Please sign in to comment.