aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/boards/mach-migor
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-10-09 18:41:34 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-10-20 11:38:35 +0900
commita30c89ad41099f58922e0941e346e7c4371655b9 (patch)
tree14db08997fb568f02b75cab6452c9c413c54bc92 /arch/sh/boards/mach-migor
parent9a19eb2a6607f2f6329efb3c4637fe23afae2cd7 (diff)
sh: reduce Migo-R smc91x overruns
Improve Migo-R ethernet performance by reducing smc91x overruns. This is done by enabling SMC91X_NOWAIT and optimizing CS4 setup. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-migor')
-rw-r--r--arch/sh/boards/mach-migor/setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 003ce837734..3e3cc9da34a 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -37,7 +37,7 @@
*/
static struct smc91x_platdata smc91x_info = {
- .flags = SMC91X_USE_16BIT,
+ .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
};
static struct resource smc91x_eth_resources[] = {
@@ -463,8 +463,10 @@ static int __init migor_devices_setup(void)
gpio_direction_output(GPIO_PTJ5, 1);
gpio_export(GPIO_PTJ5, 0);
- /* SMC91C111 */
+ /* SMC91C111 - Enable IRQ0, Setup CS4 for 16-bit fast access */
gpio_request(GPIO_FN_IRQ0, NULL);
+ ctrl_outl(0x00003400, BSC_CS4BCR);
+ ctrl_outl(0x00110080, BSC_CS4WCR);
/* KEYSC */
clk_always_enable("mstp214"); /* KEYSC */