[ARM] 3912/1: Make PXA270 advertise HWCAP_IWMMXT capability
ARM patch 3756/1 added HWCAP_IWMMXT. This patch adds support for broadcasting that info via /proc/cpuinfo and sets it for the CPU features of the PXA270. I've booted 19rc3 on a pxa270 and confirmed that the /proc/cpuinfo shows "iwmmxt" in the Features. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>hifive-unleashed-5.1
parent
94c52fde55
commit
8f7f9435e6
|
@ -357,6 +357,9 @@ static void __init setup_processor(void)
|
||||||
#ifndef CONFIG_VFP
|
#ifndef CONFIG_VFP
|
||||||
elf_hwcap &= ~HWCAP_VFP;
|
elf_hwcap &= ~HWCAP_VFP;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef CONFIG_IWMMXT
|
||||||
|
elf_hwcap &= ~HWCAP_IWMMXT;
|
||||||
|
#endif
|
||||||
|
|
||||||
cpu_proc_init();
|
cpu_proc_init();
|
||||||
}
|
}
|
||||||
|
@ -854,6 +857,7 @@ static const char *hwcap_str[] = {
|
||||||
"vfp",
|
"vfp",
|
||||||
"edsp",
|
"edsp",
|
||||||
"java",
|
"java",
|
||||||
|
"iwmmxt",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -909,7 +909,7 @@ __pxa270_proc_info:
|
||||||
b __xscale_setup
|
b __xscale_setup
|
||||||
.long cpu_arch_name
|
.long cpu_arch_name
|
||||||
.long cpu_elf_name
|
.long cpu_elf_name
|
||||||
.long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
|
.long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_IWMMXT
|
||||||
.long cpu_pxa270_name
|
.long cpu_pxa270_name
|
||||||
.long xscale_processor_functions
|
.long xscale_processor_functions
|
||||||
.long v4wbi_tlb_fns
|
.long v4wbi_tlb_fns
|
||||||
|
|
Loading…
Reference in New Issue