-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 105182 b: refs/heads/master c: bae0331 h: refs/heads/master v: v3
- Loading branch information
Eric Miao
authored and
Russell King
committed
Jul 13, 2008
1 parent
d6cd66b
commit 58fcbe9
Showing
4 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 5d31e43589589e63f5b96abc62372d2ef331c14a | ||
refs/heads/master: bae033111cda415365ad40e9befb4b332d501c52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* linux/arch/arm/mach-pxa/tavorevb.c | ||
* | ||
* Support for the Marvell PXA930 Evaluation Board | ||
* | ||
* Copyright (C) 2007-2008 Marvell International Ltd. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* publishhed by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/clk.h> | ||
#include <linux/gpio.h> | ||
#include <linux/smc91x.h> | ||
|
||
#include <asm/mach-types.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/hardware.h> | ||
#include <asm/arch/pxa3xx-regs.h> | ||
#include <asm/arch/mfp-pxa930.h> | ||
|
||
#include "devices.h" | ||
#include "generic.h" | ||
|
||
/* Tavor EVB MFP configurations */ | ||
static mfp_cfg_t tavorevb_mfp_cfg[] __initdata = { | ||
/* Ethernet */ | ||
DF_nCS1_nCS3, | ||
GPIO47_GPIO, | ||
}; | ||
|
||
#define TAVOREVB_ETH_PHYS (0x14000000) | ||
|
||
static struct resource smc91x_resources[] = { | ||
[0] = { | ||
.start = (TAVOREVB_ETH_PHYS + 0x300), | ||
.end = (TAVOREVB_ETH_PHYS + 0xfffff), | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)), | ||
.end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)), | ||
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | ||
} | ||
}; | ||
|
||
static struct smc91x_platdata tavorevb_smc91x_info = { | ||
.flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
}; | ||
|
||
static struct platform_device smc91x_device = { | ||
.name = "smc91x", | ||
.id = 0, | ||
.num_resources = ARRAY_SIZE(smc91x_resources), | ||
.resource = smc91x_resources, | ||
.dev = { | ||
.platform_data = &tavorevb_smc91x_info, | ||
}, | ||
}; | ||
|
||
static void __init tavorevb_init(void) | ||
{ | ||
/* initialize MFP configurations */ | ||
pxa3xx_mfp_config(ARRAY_AND_SIZE(tavorevb_mfp_cfg)); | ||
|
||
platform_device_register(&smc91x_device); | ||
} | ||
|
||
MACHINE_START(TAVOREVB, "PXA930 Evaluation Board (aka TavorEVB)") | ||
/* Maintainer: Eric Miao <eric.miao@marvell.com> */ | ||
.phys_io = 0x40000000, | ||
.boot_params = 0xa0000100, | ||
.io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
.map_io = pxa_map_io, | ||
.init_irq = pxa3xx_init_irq, | ||
.timer = &pxa_timer, | ||
.init_machine = tavorevb_init, | ||
MACHINE_END |