H. Peter Anvin
14671386dc
x86, mrst: make mrst_timer_options an enum
...
We have an enum mrst_timer_options, use it so that the kernel knows if
we're missing something from a switch statement or equivalent.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
LKML-Reference: <1274295685-6774-4-git-send-email-jacob.jun.pan@linux.intel.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com >
2010-05-19 14:37:40 -07:00
H. Peter Anvin
a75af580bb
x86, mrst: make mrst_identify_cpu() an inline returning enum
...
We have an enum, might as well use it. While we're at it, make it an
inline... there is really no point in calling a function for this
stuff.
LKML-Reference: <1274295685-6774-3-git-send-email-jacob.jun.pan@linux.intel.com >
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
Acked-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com >
2010-05-19 13:47:11 -07:00
Jacob Pan
a875c01944
x86, mrst: add more timer config options
...
Always-on local APIC timer (ARAT) has been introduced to Medfield, along
with the platform APB timers we have more timer configuration options
between Moorestown and Medfield.
This patch adds run-time detection of avaiable timer features so that
we can treat Medfield as a variant of Moorestown and set up the optimal
timer options for each platform. i.e.
Medfield: per cpu always-on local APIC timer
Moorestown: per cpu APB timer
Manual override is possible via cmdline option x86_mrst_timer.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com >
LKML-Reference: <1274295685-6774-4-git-send-email-jacob.jun.pan@linux.intel.com >
Acked-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2010-05-19 13:45:39 -07:00
Jacob Pan
a0c173bd8a
x86, mrst: add cpu type detection
...
Medfield is the follow-up of Moorestown, it is treated under the same
HW sub-architecture. However, we do need to know the CPU type in order
for some of the driver to act accordingly.
We also have different optimal clock configuration for each CPU type.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com >
LKML-Reference: <1274295685-6774-3-git-send-email-jacob.jun.pan@linux.intel.com >
Acked-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2010-05-19 13:32:29 -07:00
Feng Tang
cf08945596
x86, mrst: Add vrtc platform data setup code
...
vRTC information is obtained from SFI tables on Moorestown, this patch parses
these tables and assign the information.
Signed-off-by: Feng Tang <feng.tang@intel.com >
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D0D@orsmsx508.amr.corp.intel.com >
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2010-02-23 23:15:19 -08:00
Jacob Pan
16ab539585
x86, mrst: Add platform timer info parsing code
...
Moorestown platform timer information is obtained from SFI FW tables.
This patch parses SFI table then assign the irq information to mp_irqs.
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com >
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D0B@orsmsx508.amr.corp.intel.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2010-02-23 23:15:19 -08:00
Jacob Pan
af2730f6ee
x86, mrst: Fill in PCI functions in x86_init layer
...
This patch added Moorestown platform specific PCI init functions.
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com >
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D0A@orsmsx508.amr.corp.intel.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2010-02-23 23:15:19 -08:00