Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162636
b: refs/heads/master
c: d0d77c2
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent 3ff63db commit ab55c27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 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: cd3dd4068db5e1258a14b63e0feaf0332640d896
refs/heads/master: d0d77c26cb6195e881325befc950cc54732ba261
21 changes: 0 additions & 21 deletions trunk/arch/m68knommu/platform/520x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,11 @@ static struct platform_device *m520x_devices[] __initdata = {

static void __init m520x_uart_init_line(int line, int irq)
{
u32 imr;
u16 par;
u8 par2;

writeb(0x03, INTC0 + MCFINTC_ICR0 + MCFINT_UART0 + line);

imr = readl(INTC0 + MCFINTC_IMRL);
imr &= ~((1 << (irq - MCFINT_VECBASE)) | 1);
writel(imr, INTC0 + MCFINTC_IMRL);

switch (line) {
case 0:
par = readw(MCF_IPSBAR + MCF_GPIO_PAR_UART);
Expand Down Expand Up @@ -131,18 +126,13 @@ static void __init m520x_uarts_init(void)

static void __init m520x_fec_init(void)
{
u32 imr;
u8 v;

/* Unmask FEC interrupts at ColdFire interrupt controller */
writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 36);
writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 40);
writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 42);

imr = readl(MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH);
imr &= ~0x0001FFF0;
writel(imr, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH);

/* Set multi-function pins to ethernet mode */
v = readb(MCF_IPSBAR + MCF_GPIO_PAR_FEC);
writeb(v | 0xf0, MCF_IPSBAR + MCF_GPIO_PAR_FEC);
Expand All @@ -153,17 +143,6 @@ static void __init m520x_fec_init(void)

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

/*
* Program the vector to be an auto-vectored.
*/

void mcf_autovector(unsigned int vec)
{
/* Everything is auto-vectored on the 520x devices */
}

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

static void m520x_cpu_reset(void)
{
local_irq_disable();
Expand Down

0 comments on commit ab55c27

Please sign in to comment.