Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292427
b: refs/heads/master
c: 1eb1391
h: refs/heads/master
i:
  292425: a5d4bb3
  292423: b0b445d
v: v3
  • Loading branch information
Greg Ungerer committed Mar 4, 2012
1 parent 48f1a59 commit f33393e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 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: 6b656e8a74ca81e04b281a135a49df76ada28a41
refs/heads/master: 1eb1391638633cdeb7dcaacd295bfcbec216ea8f
21 changes: 2 additions & 19 deletions trunk/arch/m68k/platform/527x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,35 +295,18 @@ static struct platform_device *m527x_devices[] __initdata = {

/***************************************************************************/

static void __init m527x_uart_init_line(int line, int irq)
static void __init m527x_uarts_init(void)
{
u16 sepmask;

if ((line < 0) || (line > 2))
return;

/*
* External Pin Mask Setting & Enable External Pin for Interface
*/
sepmask = readw(MCF_IPSBAR + MCF_GPIO_PAR_UART);
if (line == 0)
sepmask |= UART0_ENABLE_MASK;
else if (line == 1)
sepmask |= UART1_ENABLE_MASK;
else if (line == 2)
sepmask |= UART2_ENABLE_MASK;
sepmask |= UART0_ENABLE_MASK | UART1_ENABLE_MASK | UART2_ENABLE_MASK;
writew(sepmask, MCF_IPSBAR + MCF_GPIO_PAR_UART);
}

static void __init m527x_uarts_init(void)
{
const int nrlines = ARRAY_SIZE(m527x_uart_platform);
int line;

for (line = 0; (line < nrlines); line++)
m527x_uart_init_line(line, m527x_uart_platform[line].irq);
}

/***************************************************************************/

static void __init m527x_fec_init(void)
Expand Down

0 comments on commit f33393e

Please sign in to comment.