diff options
| author | Greg Ungerer <gerg@linux-m68k.org> | 2018-03-25 22:35:18 -0400 |
|---|---|---|
| committer | Greg Ungerer <gerg@linux-m68k.org> | 2018-05-27 19:45:26 -0400 |
| commit | df8f77dec74319794eff9a93d68ada7998b0d510 (patch) | |
| tree | c67d6c1b41b3ac411138e8539f3c4dba5448daee | |
| parent | de25cfcb6404a0370067bbadaf13122f15464459 (diff) | |
m68k: don't redefine access functions if we have PCI
Some ColdFire platforms do have real PCI buses, so we should not be
re-defining or otherwise mangling the IO access functions for them.
So when CONFIG_PCI is true use the real io.h support.
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
| -rw-r--r-- | arch/m68k/include/asm/vga.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/vga.h b/arch/m68k/include/asm/vga.h index 819d46d91886..4742e6bc3ab8 100644 --- a/arch/m68k/include/asm/vga.h +++ b/arch/m68k/include/asm/vga.h | |||
| @@ -2,6 +2,13 @@ | |||
| 2 | #ifndef _ASM_M68K_VGA_H | 2 | #ifndef _ASM_M68K_VGA_H |
| 3 | #define _ASM_M68K_VGA_H | 3 | #define _ASM_M68K_VGA_H |
| 4 | 4 | ||
| 5 | /* | ||
| 6 | * Some ColdFire platforms do in fact have a PCI bus. So for those we want | ||
| 7 | * to use the real IO access functions, don't fake them out or redirect them | ||
| 8 | * for that case. | ||
| 9 | */ | ||
| 10 | #ifndef CONFIG_PCI | ||
| 11 | |||
| 5 | #include <asm/raw_io.h> | 12 | #include <asm/raw_io.h> |
| 6 | #include <asm/kmap.h> | 13 | #include <asm/kmap.h> |
| 7 | 14 | ||
| @@ -26,4 +33,5 @@ | |||
| 26 | #define writeb raw_outb | 33 | #define writeb raw_outb |
| 27 | #define writew raw_outw | 34 | #define writew raw_outw |
| 28 | 35 | ||
| 36 | #endif /* CONFIG_PCI */ | ||
| 29 | #endif /* _ASM_M68K_VGA_H */ | 37 | #endif /* _ASM_M68K_VGA_H */ |
