~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/x86/platform/mrst/mrst.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <asm/apic.h>
32
32
#include <asm/io_apic.h>
33
33
#include <asm/mrst.h>
 
34
#include <asm/mrst-vrtc.h>
34
35
#include <asm/io.h>
35
36
#include <asm/i8259.h>
36
37
#include <asm/intel_scu_ipc.h>
96
97
                        pentry->freq_hz, pentry->irq);
97
98
                        if (!pentry->irq)
98
99
                                continue;
99
 
                        mp_irq.type = MP_IOAPIC;
 
100
                        mp_irq.type = MP_INTSRC;
100
101
                        mp_irq.irqtype = mp_INT;
101
102
/* triggering mode edge bit 2-3, active high polarity bit 0-1 */
102
103
                        mp_irq.irqflag = 5;
103
 
                        mp_irq.srcbus = 0;
 
104
                        mp_irq.srcbus = MP_BUS_ISA;
104
105
                        mp_irq.srcbusirq = pentry->irq; /* IRQ */
105
106
                        mp_irq.dstapic = MP_APIC_ALL;
106
107
                        mp_irq.dstirq = pentry->irq;
167
168
        for (totallen = 0; totallen < sfi_mrtc_num; totallen++, pentry++) {
168
169
                pr_debug("RTC[%d]: paddr = 0x%08x, irq = %d\n",
169
170
                        totallen, (u32)pentry->phys_addr, pentry->irq);
170
 
                mp_irq.type = MP_IOAPIC;
 
171
                mp_irq.type = MP_INTSRC;
171
172
                mp_irq.irqtype = mp_INT;
172
173
                mp_irq.irqflag = 0xf;   /* level trigger and active low */
173
 
                mp_irq.srcbus = 0;
 
174
                mp_irq.srcbus = MP_BUS_ISA;
174
175
                mp_irq.srcbusirq = pentry->irq; /* IRQ */
175
176
                mp_irq.dstapic = MP_APIC_ALL;
176
177
                mp_irq.dstirq = pentry->irq;
193
194
        return 0;
194
195
}
195
196
 
196
 
void __init mrst_time_init(void)
 
197
static void __init mrst_time_init(void)
197
198
{
198
199
        sfi_table_parse(SFI_SIG_MTMR, NULL, NULL, sfi_parse_mtmr);
199
200
        switch (mrst_timer_options) {
215
216
        apbt_time_init();
216
217
}
217
218
 
218
 
void __cpuinit mrst_arch_setup(void)
 
219
static void __cpuinit mrst_arch_setup(void)
219
220
{
220
221
        if (boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 0x27)
221
222
                __mrst_cpu_chip = MRST_CPU_CHIP_PENWELL;
268
269
 
269
270
        x86_platform.calibrate_tsc = mrst_calibrate_tsc;
270
271
        x86_platform.i8042_detect = mrst_i8042_detect;
 
272
        x86_init.timers.wallclock_init = mrst_rtc_init;
271
273
        x86_init.pci.init = pci_mrst_init;
272
274
        x86_init.pci.fixup_irqs = x86_init_noop;
273
275
 
280
282
        /* Avoid searching for BIOS MP tables */
281
283
        x86_init.mpparse.find_smp_config = x86_init_noop;
282
284
        x86_init.mpparse.get_smp_config = x86_init_uint_noop;
283
 
 
 
285
        set_bit(MP_BUS_ISA, mp_bus_not_pci);
284
286
}
285
287
 
286
288
/*