Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162664
b: refs/heads/master
c: 14c16db
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent 6434c47 commit 12289bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d89395babbe811811e70c6ee3465e3b60c0cdc11
refs/heads/master: 14c16db3906ba9453e9c786323f872e11fd0f48d
15 changes: 15 additions & 0 deletions trunk/arch/m68knommu/platform/523x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ static struct platform_device *m523x_devices[] __initdata = {

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

static void __init m523x_fec_init(void)
{
u16 par;
u8 v;

/* Set multi-function pins to ethernet use */
par = readw(MCF_IPSBAR + 0x100082);
writew(par | 0xf00, MCF_IPSBAR + 0x100082);
v = readb(MCF_IPSBAR + 0x100078);
writeb(v | 0xc0, MCF_IPSBAR + 0x100078);
}

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

static void m523x_cpu_reset(void)
{
local_irq_disable();
Expand All @@ -99,6 +113,7 @@ void __init config_BSP(char *commandp, int size)

static int __init init_BSP(void)
{
m523x_fec_init();
platform_add_devices(m523x_devices, ARRAY_SIZE(m523x_devices));
return 0;
}
Expand Down

0 comments on commit 12289bf

Please sign in to comment.