diff options
author | David Woodhouse <dwmw2@infradead.org> | 2005-12-09 13:04:21 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:53:27 -0500 |
commit | d52771fce4e774fa786097d34412a057d487c697 (patch) | |
tree | b675aa904a3c96bf1e5607ec1b8332ff40a51362 /arch | |
parent | 49d65b3ac5614431041abcd2eabc0d77eff5e32d (diff) |
[PATCH] powerpc/cell: disable legacy i/o area
We currently crash in the fedora installer because the keyboard
driver tries to access I/O space that is not there on our hardware.
This uses the same solution as powermac by just marking all
legacy i/o as invalid.
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index c41a6e2e2c30..e5ee42b67509 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -201,6 +201,15 @@ static int __init cell_probe(int platform) | |||
201 | return 1; | 201 | return 1; |
202 | } | 202 | } |
203 | 203 | ||
204 | /* | ||
205 | * Cell has no legacy IO; anything calling this function has to | ||
206 | * fail or bad things will happen | ||
207 | */ | ||
208 | static int cell_check_legacy_ioport(unsigned int baseport) | ||
209 | { | ||
210 | return -ENODEV; | ||
211 | } | ||
212 | |||
204 | struct machdep_calls __initdata cell_md = { | 213 | struct machdep_calls __initdata cell_md = { |
205 | .probe = cell_probe, | 214 | .probe = cell_probe, |
206 | .setup_arch = cell_setup_arch, | 215 | .setup_arch = cell_setup_arch, |
@@ -213,6 +222,7 @@ struct machdep_calls __initdata cell_md = { | |||
213 | .get_rtc_time = rtas_get_rtc_time, | 222 | .get_rtc_time = rtas_get_rtc_time, |
214 | .set_rtc_time = rtas_set_rtc_time, | 223 | .set_rtc_time = rtas_set_rtc_time, |
215 | .calibrate_decr = generic_calibrate_decr, | 224 | .calibrate_decr = generic_calibrate_decr, |
225 | .check_legacy_ioport = cell_check_legacy_ioport, | ||
216 | .progress = cell_progress, | 226 | .progress = cell_progress, |
217 | #ifdef CONFIG_KEXEC | 227 | #ifdef CONFIG_KEXEC |
218 | .machine_kexec = default_machine_kexec, | 228 | .machine_kexec = default_machine_kexec, |