diff options
author | Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> | 2013-10-17 18:35:29 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-10-17 19:40:47 -0400 |
commit | 712b6aa8731a7e148298c58cea66a5209c659e3c (patch) | |
tree | 0949764eead1f8cef611277141c5684c55cfa957 /arch | |
parent | 6c21b176a93ffaa8023555107167379ccdc6b71f (diff) |
intel_mid: Renamed *mrst* to *intel_mid*
mrst is used as common name to represent all intel_mid type
soc's. But moorsetwon is just one of the intel_mid soc. So
renamed them to use intel_mid.
This patch mainly renames the variables and related
functions that uses *mrst* prefix with *intel_mid*.
To ensure that there are no functional changes, I have compared
the objdump of related files before and after rename and found
the only difference is symbol and name changes.
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: http://lkml.kernel.org/r/1382049336-21316-6-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/intel-mid.h | 26 | ||||
-rw-r--r-- | arch/x86/include/asm/setup.h | 4 | ||||
-rw-r--r-- | arch/x86/include/uapi/asm/bootparam.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apb_timer.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/head32.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/rtc.c | 2 | ||||
-rw-r--r-- | arch/x86/pci/intel_mid_pci.c | 12 | ||||
-rw-r--r-- | arch/x86/platform/intel-mid/early_printk_intel_mid.c | 2 | ||||
-rw-r--r-- | arch/x86/platform/intel-mid/intel-mid.c | 109 | ||||
-rw-r--r-- | arch/x86/platform/intel-mid/intel_mid_vrtc.c | 8 |
10 files changed, 88 insertions, 89 deletions
diff --git a/arch/x86/include/asm/intel-mid.h b/arch/x86/include/asm/intel-mid.h index cc79a4f7aeed..beb7a5f1862a 100644 --- a/arch/x86/include/asm/intel-mid.h +++ b/arch/x86/include/asm/intel-mid.h | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | #include <linux/sfi.h> | 14 | #include <linux/sfi.h> |
15 | 15 | ||
16 | extern int pci_mrst_init(void); | 16 | extern int intel_mid_pci_init(void); |
17 | extern int __init sfi_parse_mrtc(struct sfi_table_header *table); | 17 | extern int __init sfi_parse_mrtc(struct sfi_table_header *table); |
18 | extern int sfi_mrtc_num; | 18 | extern int sfi_mrtc_num; |
19 | extern struct sfi_rtc_table_entry sfi_mrtc_array[]; | 19 | extern struct sfi_rtc_table_entry sfi_mrtc_array[]; |
@@ -25,33 +25,33 @@ extern struct sfi_rtc_table_entry sfi_mrtc_array[]; | |||
25 | * we treat Medfield/Penwell as a variant of Moorestown. Penwell can be | 25 | * we treat Medfield/Penwell as a variant of Moorestown. Penwell can be |
26 | * identified via MSRs. | 26 | * identified via MSRs. |
27 | */ | 27 | */ |
28 | enum mrst_cpu_type { | 28 | enum intel_mid_cpu_type { |
29 | /* 1 was Moorestown */ | 29 | /* 1 was Moorestown */ |
30 | MRST_CPU_CHIP_PENWELL = 2, | 30 | INTEL_MID_CPU_CHIP_PENWELL = 2, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | extern enum mrst_cpu_type __mrst_cpu_chip; | 33 | extern enum intel_mid_cpu_type __intel_mid_cpu_chip; |
34 | 34 | ||
35 | #ifdef CONFIG_X86_INTEL_MID | 35 | #ifdef CONFIG_X86_INTEL_MID |
36 | 36 | ||
37 | static inline enum mrst_cpu_type mrst_identify_cpu(void) | 37 | static inline enum intel_mid_cpu_type intel_mid_identify_cpu(void) |
38 | { | 38 | { |
39 | return __mrst_cpu_chip; | 39 | return __intel_mid_cpu_chip; |
40 | } | 40 | } |
41 | 41 | ||
42 | #else /* !CONFIG_X86_INTEL_MID */ | 42 | #else /* !CONFIG_X86_INTEL_MID */ |
43 | 43 | ||
44 | #define mrst_identify_cpu() (0) | 44 | #define intel_mid_identify_cpu() (0) |
45 | 45 | ||
46 | #endif /* !CONFIG_X86_INTEL_MID */ | 46 | #endif /* !CONFIG_X86_INTEL_MID */ |
47 | 47 | ||
48 | enum mrst_timer_options { | 48 | enum intel_mid_timer_options { |
49 | MRST_TIMER_DEFAULT, | 49 | INTEL_MID_TIMER_DEFAULT, |
50 | MRST_TIMER_APBT_ONLY, | 50 | INTEL_MID_TIMER_APBT_ONLY, |
51 | MRST_TIMER_LAPIC_APBT, | 51 | INTEL_MID_TIMER_LAPIC_APBT, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | extern enum mrst_timer_options mrst_timer_options; | 54 | extern enum intel_mid_timer_options intel_mid_timer_options; |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * Penwell uses spread spectrum clock, so the freq number is not exactly | 57 | * Penwell uses spread spectrum clock, so the freq number is not exactly |
@@ -76,6 +76,6 @@ extern void intel_scu_devices_destroy(void); | |||
76 | #define MRST_VRTC_MAP_SZ (1024) | 76 | #define MRST_VRTC_MAP_SZ (1024) |
77 | /*#define MRST_VRTC_PGOFFSET (0xc00) */ | 77 | /*#define MRST_VRTC_PGOFFSET (0xc00) */ |
78 | 78 | ||
79 | extern void mrst_rtc_init(void); | 79 | extern void intel_mid_rtc_init(void); |
80 | 80 | ||
81 | #endif /* _ASM_X86_INTEL_MID_H */ | 81 | #endif /* _ASM_X86_INTEL_MID_H */ |
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index 347555492dad..59bcf4e22418 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -51,9 +51,9 @@ extern void i386_reserve_resources(void); | |||
51 | extern void setup_default_timer_irq(void); | 51 | extern void setup_default_timer_irq(void); |
52 | 52 | ||
53 | #ifdef CONFIG_X86_INTEL_MID | 53 | #ifdef CONFIG_X86_INTEL_MID |
54 | extern void x86_mrst_early_setup(void); | 54 | extern void x86_intel_mid_early_setup(void); |
55 | #else | 55 | #else |
56 | static inline void x86_mrst_early_setup(void) { } | 56 | static inline void x86_intel_mid_early_setup(void) { } |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | #ifdef CONFIG_X86_INTEL_CE | 59 | #ifdef CONFIG_X86_INTEL_CE |
diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h index c15ddaf90710..9c3733c5f8f7 100644 --- a/arch/x86/include/uapi/asm/bootparam.h +++ b/arch/x86/include/uapi/asm/bootparam.h | |||
@@ -158,7 +158,7 @@ enum { | |||
158 | X86_SUBARCH_PC = 0, | 158 | X86_SUBARCH_PC = 0, |
159 | X86_SUBARCH_LGUEST, | 159 | X86_SUBARCH_LGUEST, |
160 | X86_SUBARCH_XEN, | 160 | X86_SUBARCH_XEN, |
161 | X86_SUBARCH_MRST, | 161 | X86_SUBARCH_INTEL_MID, |
162 | X86_SUBARCH_CE4100, | 162 | X86_SUBARCH_CE4100, |
163 | X86_NR_SUBARCHS, | 163 | X86_NR_SUBARCHS, |
164 | }; | 164 | }; |
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c index 915483604c0c..af5b08ab3b71 100644 --- a/arch/x86/kernel/apb_timer.c +++ b/arch/x86/kernel/apb_timer.c | |||
@@ -157,13 +157,13 @@ static int __init apbt_clockevent_register(void) | |||
157 | 157 | ||
158 | adev->num = smp_processor_id(); | 158 | adev->num = smp_processor_id(); |
159 | adev->timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", | 159 | adev->timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", |
160 | mrst_timer_options == MRST_TIMER_LAPIC_APBT ? | 160 | intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT ? |
161 | APBT_CLOCKEVENT_RATING - 100 : APBT_CLOCKEVENT_RATING, | 161 | APBT_CLOCKEVENT_RATING - 100 : APBT_CLOCKEVENT_RATING, |
162 | adev_virt_addr(adev), 0, apbt_freq); | 162 | adev_virt_addr(adev), 0, apbt_freq); |
163 | /* Firmware does EOI handling for us. */ | 163 | /* Firmware does EOI handling for us. */ |
164 | adev->timer->eoi = NULL; | 164 | adev->timer->eoi = NULL; |
165 | 165 | ||
166 | if (mrst_timer_options == MRST_TIMER_LAPIC_APBT) { | 166 | if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT) { |
167 | global_clock_event = &adev->timer->ced; | 167 | global_clock_event = &adev->timer->ced; |
168 | printk(KERN_DEBUG "%s clockevent registered as global\n", | 168 | printk(KERN_DEBUG "%s clockevent registered as global\n", |
169 | global_clock_event->name); | 169 | global_clock_event->name); |
@@ -253,7 +253,7 @@ static int apbt_cpuhp_notify(struct notifier_block *n, | |||
253 | 253 | ||
254 | static __init int apbt_late_init(void) | 254 | static __init int apbt_late_init(void) |
255 | { | 255 | { |
256 | if (mrst_timer_options == MRST_TIMER_LAPIC_APBT || | 256 | if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT || |
257 | !apb_timer_block_enabled) | 257 | !apb_timer_block_enabled) |
258 | return 0; | 258 | return 0; |
259 | /* This notifier should be called after workqueue is ready */ | 259 | /* This notifier should be called after workqueue is ready */ |
@@ -340,7 +340,7 @@ void __init apbt_time_init(void) | |||
340 | } | 340 | } |
341 | #ifdef CONFIG_SMP | 341 | #ifdef CONFIG_SMP |
342 | /* kernel cmdline disable apb timer, so we will use lapic timers */ | 342 | /* kernel cmdline disable apb timer, so we will use lapic timers */ |
343 | if (mrst_timer_options == MRST_TIMER_LAPIC_APBT) { | 343 | if (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT) { |
344 | printk(KERN_INFO "apbt: disabled per cpu timer\n"); | 344 | printk(KERN_INFO "apbt: disabled per cpu timer\n"); |
345 | return; | 345 | return; |
346 | } | 346 | } |
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c index 06f87bece92a..c61a14a4a310 100644 --- a/arch/x86/kernel/head32.c +++ b/arch/x86/kernel/head32.c | |||
@@ -35,8 +35,8 @@ asmlinkage void __init i386_start_kernel(void) | |||
35 | 35 | ||
36 | /* Call the subarch specific early setup function */ | 36 | /* Call the subarch specific early setup function */ |
37 | switch (boot_params.hdr.hardware_subarch) { | 37 | switch (boot_params.hdr.hardware_subarch) { |
38 | case X86_SUBARCH_MRST: | 38 | case X86_SUBARCH_INTEL_MID: |
39 | x86_mrst_early_setup(); | 39 | x86_intel_mid_early_setup(); |
40 | break; | 40 | break; |
41 | case X86_SUBARCH_CE4100: | 41 | case X86_SUBARCH_CE4100: |
42 | x86_ce4100_early_setup(); | 42 | x86_ce4100_early_setup(); |
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index a1b52fe77995..e35cb18b8a00 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c | |||
@@ -189,7 +189,7 @@ static __init int add_rtc_cmos(void) | |||
189 | return 0; | 189 | return 0; |
190 | 190 | ||
191 | /* Intel MID platforms don't have ioport rtc */ | 191 | /* Intel MID platforms don't have ioport rtc */ |
192 | if (mrst_identify_cpu()) | 192 | if (intel_mid_identify_cpu()) |
193 | return -ENODEV; | 193 | return -ENODEV; |
194 | 194 | ||
195 | platform_device_register(&rtc_device); | 195 | platform_device_register(&rtc_device); |
diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index c5ca5b997f5a..51384ca727ad 100644 --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c | |||
@@ -205,7 +205,7 @@ static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, | |||
205 | where, size, value); | 205 | where, size, value); |
206 | } | 206 | } |
207 | 207 | ||
208 | static int mrst_pci_irq_enable(struct pci_dev *dev) | 208 | static int intel_mid_pci_irq_enable(struct pci_dev *dev) |
209 | { | 209 | { |
210 | u8 pin; | 210 | u8 pin; |
211 | struct io_apic_irq_attr irq_attr; | 211 | struct io_apic_irq_attr irq_attr; |
@@ -225,23 +225,23 @@ static int mrst_pci_irq_enable(struct pci_dev *dev) | |||
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |
227 | 227 | ||
228 | struct pci_ops pci_mrst_ops = { | 228 | struct pci_ops intel_mid_pci_ops = { |
229 | .read = pci_read, | 229 | .read = pci_read, |
230 | .write = pci_write, | 230 | .write = pci_write, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | /** | 233 | /** |
234 | * pci_mrst_init - installs pci_mrst_ops | 234 | * intel_mid_pci_init - installs intel_mid_pci_ops |
235 | * | 235 | * |
236 | * Moorestown has an interesting PCI implementation (see above). | 236 | * Moorestown has an interesting PCI implementation (see above). |
237 | * Called when the early platform detection installs it. | 237 | * Called when the early platform detection installs it. |
238 | */ | 238 | */ |
239 | int __init pci_mrst_init(void) | 239 | int __init intel_mid_pci_init(void) |
240 | { | 240 | { |
241 | pr_info("Intel MID platform detected, using MID PCI ops\n"); | 241 | pr_info("Intel MID platform detected, using MID PCI ops\n"); |
242 | pci_mmcfg_late_init(); | 242 | pci_mmcfg_late_init(); |
243 | pcibios_enable_irq = mrst_pci_irq_enable; | 243 | pcibios_enable_irq = intel_mid_pci_irq_enable; |
244 | pci_root_ops = pci_mrst_ops; | 244 | pci_root_ops = intel_mid_pci_ops; |
245 | pci_soc_mode = 1; | 245 | pci_soc_mode = 1; |
246 | /* Continue with standard init */ | 246 | /* Continue with standard init */ |
247 | return 1; | 247 | return 1; |
diff --git a/arch/x86/platform/intel-mid/early_printk_intel_mid.c b/arch/x86/platform/intel-mid/early_printk_intel_mid.c index 7c56e706fbee..4f702f554f6e 100644 --- a/arch/x86/platform/intel-mid/early_printk_intel_mid.c +++ b/arch/x86/platform/intel-mid/early_printk_intel_mid.c | |||
@@ -152,7 +152,7 @@ void mrst_early_console_init(void) | |||
152 | spi0_cdiv = ((*pclk_spi0) & 0xe00) >> 9; | 152 | spi0_cdiv = ((*pclk_spi0) & 0xe00) >> 9; |
153 | freq = 100000000 / (spi0_cdiv + 1); | 153 | freq = 100000000 / (spi0_cdiv + 1); |
154 | 154 | ||
155 | if (mrst_identify_cpu() == MRST_CPU_CHIP_PENWELL) | 155 | if (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL) |
156 | mrst_spi_paddr = MRST_REGBASE_SPI1; | 156 | mrst_spi_paddr = MRST_REGBASE_SPI1; |
157 | 157 | ||
158 | pspi = (void *)set_fixmap_offset_nocache(FIX_EARLYCON_MEM_BASE, | 158 | pspi = (void *)set_fixmap_offset_nocache(FIX_EARLYCON_MEM_BASE, |
diff --git a/arch/x86/platform/intel-mid/intel-mid.c b/arch/x86/platform/intel-mid/intel-mid.c index 7e6d7b204a05..94689ac55374 100644 --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * of the License. | 11 | * of the License. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #define pr_fmt(fmt) "mrst: " fmt | 14 | #define pr_fmt(fmt) "intel_mid: " fmt |
15 | 15 | ||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | /* | 48 | /* |
49 | * the clockevent devices on Moorestown/Medfield can be APBT or LAPIC clock, | 49 | * the clockevent devices on Moorestown/Medfield can be APBT or LAPIC clock, |
50 | * cmdline option x86_mrst_timer can be used to override the configuration | 50 | * cmdline option x86_intel_mid_timer can be used to override the configuration |
51 | * to prefer one or the other. | 51 | * to prefer one or the other. |
52 | * at runtime, there are basically three timer configurations: | 52 | * at runtime, there are basically three timer configurations: |
53 | * 1. per cpu apbt clock only | 53 | * 1. per cpu apbt clock only |
@@ -66,12 +66,12 @@ | |||
66 | * lapic (always-on,ARAT) ------ 150 | 66 | * lapic (always-on,ARAT) ------ 150 |
67 | */ | 67 | */ |
68 | 68 | ||
69 | enum mrst_timer_options mrst_timer_options; | 69 | enum intel_mid_timer_options intel_mid_timer_options; |
70 | 70 | ||
71 | static u32 sfi_mtimer_usage[SFI_MTMR_MAX_NUM]; | 71 | static u32 sfi_mtimer_usage[SFI_MTMR_MAX_NUM]; |
72 | static struct sfi_timer_table_entry sfi_mtimer_array[SFI_MTMR_MAX_NUM]; | 72 | static struct sfi_timer_table_entry sfi_mtimer_array[SFI_MTMR_MAX_NUM]; |
73 | enum mrst_cpu_type __mrst_cpu_chip; | 73 | enum intel_mid_cpu_type __intel_mid_cpu_chip; |
74 | EXPORT_SYMBOL_GPL(__mrst_cpu_chip); | 74 | EXPORT_SYMBOL_GPL(__intel_mid_cpu_chip); |
75 | 75 | ||
76 | int sfi_mtimer_num; | 76 | int sfi_mtimer_num; |
77 | 77 | ||
@@ -79,11 +79,11 @@ struct sfi_rtc_table_entry sfi_mrtc_array[SFI_MRTC_MAX]; | |||
79 | EXPORT_SYMBOL_GPL(sfi_mrtc_array); | 79 | EXPORT_SYMBOL_GPL(sfi_mrtc_array); |
80 | int sfi_mrtc_num; | 80 | int sfi_mrtc_num; |
81 | 81 | ||
82 | static void mrst_power_off(void) | 82 | static void intel_mid_power_off(void) |
83 | { | 83 | { |
84 | } | 84 | } |
85 | 85 | ||
86 | static void mrst_reboot(void) | 86 | static void intel_mid_reboot(void) |
87 | { | 87 | { |
88 | intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0); | 88 | intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0); |
89 | } | 89 | } |
@@ -196,7 +196,7 @@ int __init sfi_parse_mrtc(struct sfi_table_header *table) | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | static unsigned long __init mrst_calibrate_tsc(void) | 199 | static unsigned long __init intel_mid_calibrate_tsc(void) |
200 | { | 200 | { |
201 | unsigned long fast_calibrate; | 201 | unsigned long fast_calibrate; |
202 | u32 lo, hi, ratio, fsb; | 202 | u32 lo, hi, ratio, fsb; |
@@ -227,13 +227,13 @@ static unsigned long __init mrst_calibrate_tsc(void) | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | static void __init mrst_time_init(void) | 230 | static void __init intel_mid_time_init(void) |
231 | { | 231 | { |
232 | sfi_table_parse(SFI_SIG_MTMR, NULL, NULL, sfi_parse_mtmr); | 232 | sfi_table_parse(SFI_SIG_MTMR, NULL, NULL, sfi_parse_mtmr); |
233 | switch (mrst_timer_options) { | 233 | switch (intel_mid_timer_options) { |
234 | case MRST_TIMER_APBT_ONLY: | 234 | case INTEL_MID_TIMER_APBT_ONLY: |
235 | break; | 235 | break; |
236 | case MRST_TIMER_LAPIC_APBT: | 236 | case INTEL_MID_TIMER_LAPIC_APBT: |
237 | x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock; | 237 | x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock; |
238 | x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock; | 238 | x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock; |
239 | break; | 239 | break; |
@@ -249,19 +249,19 @@ static void __init mrst_time_init(void) | |||
249 | apbt_time_init(); | 249 | apbt_time_init(); |
250 | } | 250 | } |
251 | 251 | ||
252 | static void mrst_arch_setup(void) | 252 | static void __cpuinit intel_mid_arch_setup(void) |
253 | { | 253 | { |
254 | if (boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 0x27) | 254 | if (boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 0x27) |
255 | __mrst_cpu_chip = MRST_CPU_CHIP_PENWELL; | 255 | __intel_mid_cpu_chip = INTEL_MID_CPU_CHIP_PENWELL; |
256 | else { | 256 | else { |
257 | pr_err("Unknown Intel MID CPU (%d:%d), default to Penwell\n", | 257 | pr_err("Unknown Intel MID CPU (%d:%d), default to Penwell\n", |
258 | boot_cpu_data.x86, boot_cpu_data.x86_model); | 258 | boot_cpu_data.x86, boot_cpu_data.x86_model); |
259 | __mrst_cpu_chip = MRST_CPU_CHIP_PENWELL; | 259 | __intel_mid_cpu_chip = INTEL_MID_CPU_CHIP_PENWELL; |
260 | } | 260 | } |
261 | } | 261 | } |
262 | 262 | ||
263 | /* MID systems don't have i8042 controller */ | 263 | /* MID systems don't have i8042 controller */ |
264 | static int mrst_i8042_detect(void) | 264 | static int intel_mid_i8042_detect(void) |
265 | { | 265 | { |
266 | return 0; | 266 | return 0; |
267 | } | 267 | } |
@@ -272,7 +272,7 @@ static int mrst_i8042_detect(void) | |||
272 | * watchdog or lock debug. Reading io port 0x61 results in 0xff which | 272 | * watchdog or lock debug. Reading io port 0x61 results in 0xff which |
273 | * misled NMI handler. | 273 | * misled NMI handler. |
274 | */ | 274 | */ |
275 | static unsigned char mrst_get_nmi_reason(void) | 275 | static unsigned char intel_mid_get_nmi_reason(void) |
276 | { | 276 | { |
277 | return 0; | 277 | return 0; |
278 | } | 278 | } |
@@ -281,33 +281,32 @@ static unsigned char mrst_get_nmi_reason(void) | |||
281 | * Moorestown specific x86_init function overrides and early setup | 281 | * Moorestown specific x86_init function overrides and early setup |
282 | * calls. | 282 | * calls. |
283 | */ | 283 | */ |
284 | void __init x86_mrst_early_setup(void) | 284 | void __init x86_intel_mid_early_setup(void) |
285 | { | 285 | { |
286 | x86_init.resources.probe_roms = x86_init_noop; | 286 | x86_init.resources.probe_roms = x86_init_noop; |
287 | x86_init.resources.reserve_resources = x86_init_noop; | 287 | x86_init.resources.reserve_resources = x86_init_noop; |
288 | 288 | ||
289 | x86_init.timers.timer_init = mrst_time_init; | 289 | x86_init.timers.timer_init = intel_mid_time_init; |
290 | x86_init.timers.setup_percpu_clockev = x86_init_noop; | 290 | x86_init.timers.setup_percpu_clockev = x86_init_noop; |
291 | 291 | ||
292 | x86_init.irqs.pre_vector_init = x86_init_noop; | 292 | x86_init.irqs.pre_vector_init = x86_init_noop; |
293 | 293 | ||
294 | x86_init.oem.arch_setup = mrst_arch_setup; | 294 | x86_init.oem.arch_setup = intel_mid_arch_setup; |
295 | 295 | ||
296 | x86_cpuinit.setup_percpu_clockev = apbt_setup_secondary_clock; | 296 | x86_cpuinit.setup_percpu_clockev = apbt_setup_secondary_clock; |
297 | 297 | ||
298 | x86_platform.calibrate_tsc = mrst_calibrate_tsc; | 298 | x86_platform.calibrate_tsc = intel_mid_calibrate_tsc; |
299 | x86_platform.i8042_detect = mrst_i8042_detect; | 299 | x86_platform.i8042_detect = intel_mid_i8042_detect; |
300 | x86_init.timers.wallclock_init = mrst_rtc_init; | 300 | x86_init.timers.wallclock_init = intel_mid_rtc_init; |
301 | x86_platform.get_nmi_reason = mrst_get_nmi_reason; | 301 | x86_platform.get_nmi_reason = intel_mid_get_nmi_reason; |
302 | 302 | ||
303 | x86_init.pci.init = pci_mrst_init; | 303 | x86_init.pci.init = intel_mid_pci_init; |
304 | x86_init.pci.fixup_irqs = x86_init_noop; | 304 | x86_init.pci.fixup_irqs = x86_init_noop; |
305 | 305 | ||
306 | legacy_pic = &null_legacy_pic; | 306 | legacy_pic = &null_legacy_pic; |
307 | 307 | ||
308 | /* Moorestown specific power_off/restart method */ | 308 | pm_power_off = intel_mid_power_off; |
309 | pm_power_off = mrst_power_off; | 309 | machine_ops.emergency_restart = intel_mid_reboot; |
310 | machine_ops.emergency_restart = mrst_reboot; | ||
311 | 310 | ||
312 | /* Avoid searching for BIOS MP tables */ | 311 | /* Avoid searching for BIOS MP tables */ |
313 | x86_init.mpparse.find_smp_config = x86_init_noop; | 312 | x86_init.mpparse.find_smp_config = x86_init_noop; |
@@ -319,24 +318,24 @@ void __init x86_mrst_early_setup(void) | |||
319 | * if user does not want to use per CPU apb timer, just give it a lower rating | 318 | * if user does not want to use per CPU apb timer, just give it a lower rating |
320 | * than local apic timer and skip the late per cpu timer init. | 319 | * than local apic timer and skip the late per cpu timer init. |
321 | */ | 320 | */ |
322 | static inline int __init setup_x86_mrst_timer(char *arg) | 321 | static inline int __init setup_x86_intel_mid_timer(char *arg) |
323 | { | 322 | { |
324 | if (!arg) | 323 | if (!arg) |
325 | return -EINVAL; | 324 | return -EINVAL; |
326 | 325 | ||
327 | if (strcmp("apbt_only", arg) == 0) | 326 | if (strcmp("apbt_only", arg) == 0) |
328 | mrst_timer_options = MRST_TIMER_APBT_ONLY; | 327 | intel_mid_timer_options = INTEL_MID_TIMER_APBT_ONLY; |
329 | else if (strcmp("lapic_and_apbt", arg) == 0) | 328 | else if (strcmp("lapic_and_apbt", arg) == 0) |
330 | mrst_timer_options = MRST_TIMER_LAPIC_APBT; | 329 | intel_mid_timer_options = INTEL_MID_TIMER_LAPIC_APBT; |
331 | else { | 330 | else { |
332 | pr_warn("X86 MRST timer option %s not recognised" | 331 | pr_warn("X86 INTEL_MID timer option %s not recognised" |
333 | " use x86_mrst_timer=apbt_only or lapic_and_apbt\n", | 332 | " use x86_intel_mid_timer=apbt_only or lapic_and_apbt\n", |
334 | arg); | 333 | arg); |
335 | return -EINVAL; | 334 | return -EINVAL; |
336 | } | 335 | } |
337 | return 0; | 336 | return 0; |
338 | } | 337 | } |
339 | __setup("x86_mrst_timer=", setup_x86_mrst_timer); | 338 | __setup("x86_intel_mid_timer=", setup_x86_intel_mid_timer); |
340 | 339 | ||
341 | /* | 340 | /* |
342 | * Parsing GPIO table first, since the DEVS table will need this table | 341 | * Parsing GPIO table first, since the DEVS table will need this table |
@@ -400,7 +399,7 @@ struct devs_id { | |||
400 | }; | 399 | }; |
401 | 400 | ||
402 | /* the offset for the mapping of global gpio pin to irq */ | 401 | /* the offset for the mapping of global gpio pin to irq */ |
403 | #define MRST_IRQ_OFFSET 0x100 | 402 | #define INTEL_MID_IRQ_OFFSET 0x100 |
404 | 403 | ||
405 | static void __init *pmic_gpio_platform_data(void *info) | 404 | static void __init *pmic_gpio_platform_data(void *info) |
406 | { | 405 | { |
@@ -410,7 +409,7 @@ static void __init *pmic_gpio_platform_data(void *info) | |||
410 | if (gpio_base == -1) | 409 | if (gpio_base == -1) |
411 | gpio_base = 64; | 410 | gpio_base = 64; |
412 | pmic_gpio_pdata.gpio_base = gpio_base; | 411 | pmic_gpio_pdata.gpio_base = gpio_base; |
413 | pmic_gpio_pdata.irq_base = gpio_base + MRST_IRQ_OFFSET; | 412 | pmic_gpio_pdata.irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; |
414 | pmic_gpio_pdata.gpiointr = 0xffffeff8; | 413 | pmic_gpio_pdata.gpiointr = 0xffffeff8; |
415 | 414 | ||
416 | return &pmic_gpio_pdata; | 415 | return &pmic_gpio_pdata; |
@@ -424,7 +423,7 @@ static void __init *max3111_platform_data(void *info) | |||
424 | spi_info->mode = SPI_MODE_0; | 423 | spi_info->mode = SPI_MODE_0; |
425 | if (intr == -1) | 424 | if (intr == -1) |
426 | return NULL; | 425 | return NULL; |
427 | spi_info->irq = intr + MRST_IRQ_OFFSET; | 426 | spi_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
428 | return NULL; | 427 | return NULL; |
429 | } | 428 | } |
430 | 429 | ||
@@ -464,8 +463,8 @@ static void __init *max7315_platform_data(void *info) | |||
464 | return NULL; | 463 | return NULL; |
465 | max7315->gpio_base = gpio_base; | 464 | max7315->gpio_base = gpio_base; |
466 | if (intr != -1) { | 465 | if (intr != -1) { |
467 | i2c_info->irq = intr + MRST_IRQ_OFFSET; | 466 | i2c_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
468 | max7315->irq_base = gpio_base + MRST_IRQ_OFFSET; | 467 | max7315->irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; |
469 | } else { | 468 | } else { |
470 | i2c_info->irq = -1; | 469 | i2c_info->irq = -1; |
471 | max7315->irq_base = -1; | 470 | max7315->irq_base = -1; |
@@ -492,8 +491,8 @@ static void *tca6416_platform_data(void *info) | |||
492 | return NULL; | 491 | return NULL; |
493 | tca6416.gpio_base = gpio_base; | 492 | tca6416.gpio_base = gpio_base; |
494 | if (intr != -1) { | 493 | if (intr != -1) { |
495 | i2c_info->irq = intr + MRST_IRQ_OFFSET; | 494 | i2c_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
496 | tca6416.irq_base = gpio_base + MRST_IRQ_OFFSET; | 495 | tca6416.irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; |
497 | } else { | 496 | } else { |
498 | i2c_info->irq = -1; | 497 | i2c_info->irq = -1; |
499 | tca6416.irq_base = -1; | 498 | tca6416.irq_base = -1; |
@@ -509,7 +508,7 @@ static void *mpu3050_platform_data(void *info) | |||
509 | if (intr == -1) | 508 | if (intr == -1) |
510 | return NULL; | 509 | return NULL; |
511 | 510 | ||
512 | i2c_info->irq = intr + MRST_IRQ_OFFSET; | 511 | i2c_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
513 | return NULL; | 512 | return NULL; |
514 | } | 513 | } |
515 | 514 | ||
@@ -523,8 +522,8 @@ static void __init *emc1403_platform_data(void *info) | |||
523 | if (intr == -1 || intr2nd == -1) | 522 | if (intr == -1 || intr2nd == -1) |
524 | return NULL; | 523 | return NULL; |
525 | 524 | ||
526 | i2c_info->irq = intr + MRST_IRQ_OFFSET; | 525 | i2c_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
527 | intr2nd_pdata = intr2nd + MRST_IRQ_OFFSET; | 526 | intr2nd_pdata = intr2nd + INTEL_MID_IRQ_OFFSET; |
528 | 527 | ||
529 | return &intr2nd_pdata; | 528 | return &intr2nd_pdata; |
530 | } | 529 | } |
@@ -539,8 +538,8 @@ static void __init *lis331dl_platform_data(void *info) | |||
539 | if (intr == -1 || intr2nd == -1) | 538 | if (intr == -1 || intr2nd == -1) |
540 | return NULL; | 539 | return NULL; |
541 | 540 | ||
542 | i2c_info->irq = intr + MRST_IRQ_OFFSET; | 541 | i2c_info->irq = intr + INTEL_MID_IRQ_OFFSET; |
543 | intr2nd_pdata = intr2nd + MRST_IRQ_OFFSET; | 542 | intr2nd_pdata = intr2nd + INTEL_MID_IRQ_OFFSET; |
544 | 543 | ||
545 | return &intr2nd_pdata; | 544 | return &intr2nd_pdata; |
546 | } | 545 | } |
@@ -570,9 +569,9 @@ static struct platform_device msic_device = { | |||
570 | .resource = msic_resources, | 569 | .resource = msic_resources, |
571 | }; | 570 | }; |
572 | 571 | ||
573 | static inline bool mrst_has_msic(void) | 572 | static inline bool intel_mid_has_msic(void) |
574 | { | 573 | { |
575 | return mrst_identify_cpu() == MRST_CPU_CHIP_PENWELL; | 574 | return intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL; |
576 | } | 575 | } |
577 | 576 | ||
578 | static int msic_scu_status_change(struct notifier_block *nb, | 577 | static int msic_scu_status_change(struct notifier_block *nb, |
@@ -596,7 +595,7 @@ static int __init msic_init(void) | |||
596 | * We need to be sure that the SCU IPC is ready before MSIC device | 595 | * We need to be sure that the SCU IPC is ready before MSIC device |
597 | * can be registered. | 596 | * can be registered. |
598 | */ | 597 | */ |
599 | if (mrst_has_msic()) | 598 | if (intel_mid_has_msic()) |
600 | intel_scu_notifier_add(&msic_scu_notifier); | 599 | intel_scu_notifier_add(&msic_scu_notifier); |
601 | 600 | ||
602 | return 0; | 601 | return 0; |
@@ -851,7 +850,7 @@ static void __init sfi_handle_ipc_dev(struct sfi_device_table_entry *entry) | |||
851 | * On Medfield the platform device creation is handled by the MSIC | 850 | * On Medfield the platform device creation is handled by the MSIC |
852 | * MFD driver so we don't need to do it here. | 851 | * MFD driver so we don't need to do it here. |
853 | */ | 852 | */ |
854 | if (mrst_has_msic()) | 853 | if (intel_mid_has_msic()) |
855 | return; | 854 | return; |
856 | 855 | ||
857 | pdev = platform_device_alloc(entry->name, 0); | 856 | pdev = platform_device_alloc(entry->name, 0); |
@@ -984,13 +983,13 @@ static int __init sfi_parse_devs(struct sfi_table_header *table) | |||
984 | return 0; | 983 | return 0; |
985 | } | 984 | } |
986 | 985 | ||
987 | static int __init mrst_platform_init(void) | 986 | static int __init intel_mid_platform_init(void) |
988 | { | 987 | { |
989 | sfi_table_parse(SFI_SIG_GPIO, NULL, NULL, sfi_parse_gpio); | 988 | sfi_table_parse(SFI_SIG_GPIO, NULL, NULL, sfi_parse_gpio); |
990 | sfi_table_parse(SFI_SIG_DEVS, NULL, NULL, sfi_parse_devs); | 989 | sfi_table_parse(SFI_SIG_DEVS, NULL, NULL, sfi_parse_devs); |
991 | return 0; | 990 | return 0; |
992 | } | 991 | } |
993 | arch_initcall(mrst_platform_init); | 992 | arch_initcall(intel_mid_platform_init); |
994 | 993 | ||
995 | /* | 994 | /* |
996 | * we will search these buttons in SFI GPIO table (by name) | 995 | * we will search these buttons in SFI GPIO table (by name) |
@@ -1010,7 +1009,7 @@ static struct gpio_keys_button gpio_button[] = { | |||
1010 | {SW_KEYPAD_SLIDE, -1, 1, "MagSw2", EV_SW, 0, 20}, | 1009 | {SW_KEYPAD_SLIDE, -1, 1, "MagSw2", EV_SW, 0, 20}, |
1011 | }; | 1010 | }; |
1012 | 1011 | ||
1013 | static struct gpio_keys_platform_data mrst_gpio_keys = { | 1012 | static struct gpio_keys_platform_data intel_mid_gpio_keys = { |
1014 | .buttons = gpio_button, | 1013 | .buttons = gpio_button, |
1015 | .rep = 1, | 1014 | .rep = 1, |
1016 | .nbuttons = -1, /* will fill it after search */ | 1015 | .nbuttons = -1, /* will fill it after search */ |
@@ -1020,7 +1019,7 @@ static struct platform_device pb_device = { | |||
1020 | .name = "gpio-keys", | 1019 | .name = "gpio-keys", |
1021 | .id = -1, | 1020 | .id = -1, |
1022 | .dev = { | 1021 | .dev = { |
1023 | .platform_data = &mrst_gpio_keys, | 1022 | .platform_data = &intel_mid_gpio_keys, |
1024 | }, | 1023 | }, |
1025 | }; | 1024 | }; |
1026 | 1025 | ||
@@ -1047,7 +1046,7 @@ static int __init pb_keys_init(void) | |||
1047 | } | 1046 | } |
1048 | 1047 | ||
1049 | if (good) { | 1048 | if (good) { |
1050 | mrst_gpio_keys.nbuttons = good; | 1049 | intel_mid_gpio_keys.nbuttons = good; |
1051 | return platform_device_register(&pb_device); | 1050 | return platform_device_register(&pb_device); |
1052 | } | 1051 | } |
1053 | return 0; | 1052 | return 0; |
diff --git a/arch/x86/platform/intel-mid/intel_mid_vrtc.c b/arch/x86/platform/intel-mid/intel_mid_vrtc.c index ded9fbd81996..4762cff7facd 100644 --- a/arch/x86/platform/intel-mid/intel_mid_vrtc.c +++ b/arch/x86/platform/intel-mid/intel_mid_vrtc.c | |||
@@ -116,7 +116,7 @@ int vrtc_set_mmss(const struct timespec *now) | |||
116 | return retval; | 116 | return retval; |
117 | } | 117 | } |
118 | 118 | ||
119 | void __init mrst_rtc_init(void) | 119 | void __init intel_mid_rtc_init(void) |
120 | { | 120 | { |
121 | unsigned long vrtc_paddr; | 121 | unsigned long vrtc_paddr; |
122 | 122 | ||
@@ -154,10 +154,10 @@ static struct platform_device vrtc_device = { | |||
154 | }; | 154 | }; |
155 | 155 | ||
156 | /* Register the RTC device if appropriate */ | 156 | /* Register the RTC device if appropriate */ |
157 | static int __init mrst_device_create(void) | 157 | static int __init intel_mid_device_create(void) |
158 | { | 158 | { |
159 | /* No Moorestown, no device */ | 159 | /* No Moorestown, no device */ |
160 | if (!mrst_identify_cpu()) | 160 | if (!intel_mid_identify_cpu()) |
161 | return -ENODEV; | 161 | return -ENODEV; |
162 | /* No timer, no device */ | 162 | /* No timer, no device */ |
163 | if (!sfi_mrtc_num) | 163 | if (!sfi_mrtc_num) |
@@ -174,4 +174,4 @@ static int __init mrst_device_create(void) | |||
174 | return platform_device_register(&vrtc_device); | 174 | return platform_device_register(&vrtc_device); |
175 | } | 175 | } |
176 | 176 | ||
177 | module_init(mrst_device_create); | 177 | module_init(intel_mid_device_create); |