diff options
Diffstat (limited to 'arch/x86/platform/ce4100/ce4100.c')
| -rw-r--r-- | arch/x86/platform/ce4100/ce4100.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c index d2c0d51a717..28071bb31db 100644 --- a/arch/x86/platform/ce4100/ce4100.c +++ b/arch/x86/platform/ce4100/ce4100.c | |||
| @@ -15,21 +15,20 @@ | |||
| 15 | #include <linux/serial_reg.h> | 15 | #include <linux/serial_reg.h> |
| 16 | #include <linux/serial_8250.h> | 16 | #include <linux/serial_8250.h> |
| 17 | 17 | ||
| 18 | #include <asm/ce4100.h> | ||
| 19 | #include <asm/prom.h> | ||
| 18 | #include <asm/setup.h> | 20 | #include <asm/setup.h> |
| 21 | #include <asm/i8259.h> | ||
| 19 | #include <asm/io.h> | 22 | #include <asm/io.h> |
| 23 | #include <asm/io_apic.h> | ||
| 20 | 24 | ||
| 21 | static int ce4100_i8042_detect(void) | 25 | static int ce4100_i8042_detect(void) |
| 22 | { | 26 | { |
| 23 | return 0; | 27 | return 0; |
| 24 | } | 28 | } |
| 25 | 29 | ||
| 26 | static void __init sdv_find_smp_config(void) | ||
| 27 | { | ||
| 28 | } | ||
| 29 | |||
| 30 | #ifdef CONFIG_SERIAL_8250 | 30 | #ifdef CONFIG_SERIAL_8250 |
| 31 | 31 | ||
| 32 | |||
| 33 | static unsigned int mem_serial_in(struct uart_port *p, int offset) | 32 | static unsigned int mem_serial_in(struct uart_port *p, int offset) |
| 34 | { | 33 | { |
| 35 | offset = offset << p->regshift; | 34 | offset = offset << p->regshift; |
| @@ -118,6 +117,15 @@ static void __init sdv_arch_setup(void) | |||
| 118 | sdv_serial_fixup(); | 117 | sdv_serial_fixup(); |
| 119 | } | 118 | } |
| 120 | 119 | ||
| 120 | #ifdef CONFIG_X86_IO_APIC | ||
| 121 | static void __cpuinit sdv_pci_init(void) | ||
| 122 | { | ||
| 123 | x86_of_pci_init(); | ||
| 124 | /* We can't set this earlier, because we need to calibrate the timer */ | ||
| 125 | legacy_pic = &null_legacy_pic; | ||
| 126 | } | ||
| 127 | #endif | ||
| 128 | |||
| 121 | /* | 129 | /* |
| 122 | * CE4100 specific x86_init function overrides and early setup | 130 | * CE4100 specific x86_init function overrides and early setup |
| 123 | * calls. | 131 | * calls. |
| @@ -128,5 +136,11 @@ void __init x86_ce4100_early_setup(void) | |||
| 128 | x86_platform.i8042_detect = ce4100_i8042_detect; | 136 | x86_platform.i8042_detect = ce4100_i8042_detect; |
| 129 | x86_init.resources.probe_roms = x86_init_noop; | 137 | x86_init.resources.probe_roms = x86_init_noop; |
| 130 | x86_init.mpparse.get_smp_config = x86_init_uint_noop; | 138 | x86_init.mpparse.get_smp_config = x86_init_uint_noop; |
| 131 | x86_init.mpparse.find_smp_config = sdv_find_smp_config; | 139 | x86_init.mpparse.find_smp_config = x86_init_noop; |
| 140 | x86_init.pci.init = ce4100_pci_init; | ||
| 141 | |||
| 142 | #ifdef CONFIG_X86_IO_APIC | ||
| 143 | x86_init.pci.init_irq = sdv_pci_init; | ||
| 144 | x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc_nocheck; | ||
| 145 | #endif | ||
| 132 | } | 146 | } |
