diff options
author | Magnus Damm <damm@igel.co.jp> | 2007-08-03 10:16:29 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-08-03 10:16:29 +0900 |
commit | 5ca95c48f1bd006d1aafe2f8bf1a859262d6d7b1 (patch) | |
tree | a34e1a5ad3ecaca2d6f294d6ed3a83f9f6afca1a /arch | |
parent | a3b3e23015061814bffd733dbd9c4452b81ca6aa (diff) |
sh: fix cf support on r2d boards
This patch makes sure cf support is enabled on R2D-PLUS but disabled
on R2D-1. Without this fix R2D-1 boards hang on bootup.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/setup.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/sh/boards/renesas/rts7751r2d/setup.c b/arch/sh/boards/renesas/rts7751r2d/setup.c index e165d85c03b..6f7029d3324 100644 --- a/arch/sh/boards/renesas/rts7751r2d/setup.c +++ b/arch/sh/boards/renesas/rts7751r2d/setup.c @@ -140,12 +140,19 @@ static struct platform_device sm501_device = { static struct platform_device *rts7751r2d_devices[] __initdata = { &uart_device, &heartbeat_device, - &cf_ide_device, &sm501_device, }; static int __init rts7751r2d_devices_setup(void) { + int ret; + + if (ctrl_inw(PA_BVERREG) == 0x10) { /* only working on R2D-PLUS */ + ret = platform_device_register(&cf_ide_device); + if (ret) + return ret; + } + return platform_add_devices(rts7751r2d_devices, ARRAY_SIZE(rts7751r2d_devices)); } |