Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331427
b: refs/heads/master
c: 4fb62ed
h: refs/heads/master
i:
  331425: 0fd70e7
  331423: fc1cbef
v: v3
  • Loading branch information
Greg Ungerer committed Sep 27, 2012
1 parent 8f8f5cd commit 9db86e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 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: 041a89a41993e6023f110bf0cbbda847173e795c
refs/heads/master: 4fb62ededfc5021e7fa25cbc20f92003e148af27
9 changes: 3 additions & 6 deletions trunk/arch/m68k/include/asm/nettel.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifdef CONFIG_COLDFIRE
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/io.h>
#endif

/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -86,16 +87,12 @@ static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits)
*/
static __inline__ unsigned int mcf_getppdata(void)
{
volatile unsigned short *pp;
pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDAT);
return((unsigned int) *pp);
return readw(MCFSIM_PBDAT);
}

static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits)
{
volatile unsigned short *pp;
pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDAT);
*pp = (*pp & ~mask) | bits;
write((readw(MCFSIM_PBDAT) & ~mask) | bits, MCFSIM_PBDAT);
}
#endif

Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/m68k/platform/coldfire/m5272.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ static void __init m5272_uarts_init(void)
u32 v;

/* Enable the output lines for the serial ports */
v = readl(MCF_MBAR + MCFSIM_PBCNT);
v = readl(MCFSIM_PBCNT);
v = (v & ~0x000000ff) | 0x00000055;
writel(v, MCF_MBAR + MCFSIM_PBCNT);
writel(v, MCFSIM_PBCNT);

v = readl(MCF_MBAR + MCFSIM_PDCNT);
v = readl(MCFSIM_PDCNT);
v = (v & ~0x000003fc) | 0x000002a8;
writel(v, MCF_MBAR + MCFSIM_PDCNT);
writel(v, MCFSIM_PDCNT);
}

/***************************************************************************/
Expand Down

0 comments on commit 9db86e2

Please sign in to comment.