@@ -402,16 +402,18 @@ config CPU_V6
402402 select CPU_TLB_V6 if MMU
403403
404404# ARMv6k
405- config CPU_32v6K
406- bool "Support ARM V6K processor extensions" if !SMP
407- depends on CPU_V6 || CPU_V7
408- default y if SMP && !(ARCH_MX3 || ARCH_OMAP2)
409- help
410- Say Y here if your ARMv6 processor supports the 'K' extension.
411- This enables the kernel to use some instructions not present
412- on previous processors, and as such a kernel build with this
413- enabled will not boot on processors with do not support these
414- instructions.
405+ config CPU_V6K
406+ bool "Support ARM V6K processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX || ARCH_DOVE
407+ select CPU_32v6
408+ select CPU_32v6K if !ARCH_OMAP2
409+ select CPU_ABRT_EV6
410+ select CPU_PABRT_V6
411+ select CPU_CACHE_V6
412+ select CPU_CACHE_VIPT
413+ select CPU_CP15_MMU
414+ select CPU_HAS_ASID if MMU
415+ select CPU_COPY_V6 if MMU
416+ select CPU_TLB_V6 if MMU
415417
416418# ARMv7
417419config CPU_V7
@@ -453,6 +455,17 @@ config CPU_32v6
453455 bool
454456 select TLS_REG_EMUL if !CPU_32v6K && !MMU
455457
458+ config CPU_32v6K
459+ bool "Support ARM V6K processor extensions" if !SMP
460+ depends on CPU_V6 || CPU_V6K || CPU_V7
461+ default y if SMP && !(ARCH_MX3 || ARCH_OMAP2)
462+ help
463+ Say Y here if your ARMv6 processor supports the 'K' extension.
464+ This enables the kernel to use some instructions not present
465+ on previous processors, and as such a kernel build with this
466+ enabled will not boot on processors with do not support these
467+ instructions.
468+
456469config CPU_32v7
457470 bool
458471
@@ -623,7 +636,7 @@ comment "Processor Features"
623636
624637config ARM_THUMB
625638 bool "Support Thumb user binaries"
626- depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V7 || CPU_FEROCEON
639+ depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V6K || CPU_V7 || CPU_FEROCEON
627640 default y
628641 help
629642 Say Y if you want to include kernel support for running user space
@@ -681,7 +694,7 @@ config CPU_BIG_ENDIAN
681694config CPU_ENDIAN_BE8
682695 bool
683696 depends on CPU_BIG_ENDIAN
684- default CPU_V6 || CPU_V7
697+ default CPU_V6 || CPU_V6K || CPU_V7
685698 help
686699 Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
687700
@@ -747,7 +760,7 @@ config CPU_CACHE_ROUND_ROBIN
747760
748761config CPU_BPREDICT_DISABLE
749762 bool "Disable branch prediction"
750- depends on CPU_ARM1020 || CPU_V6 || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
763+ depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
751764 help
752765 Say Y here to disable branch prediction. If unsure, say N.
753766
@@ -767,7 +780,7 @@ config NEEDS_SYSCALL_FOR_CMPXCHG
767780
768781config DMA_CACHE_RWFO
769782 bool "Enable read/write for ownership DMA cache maintenance"
770- depends on CPU_V6 && SMP
783+ depends on ( CPU_V6 || CPU_V6K) && SMP
771784 default y
772785 help
773786 The Snoop Control Unit on ARM11MPCore does not detect the
@@ -823,7 +836,7 @@ config CACHE_L2X0
823836config CACHE_PL310
824837 bool
825838 depends on CACHE_L2X0
826- default y if CPU_V7 && !CPU_V6
839+ default y if CPU_V7 && !( CPU_V6 || CPU_V6K)
827840 help
828841 This option enables optimisations for the PL310 cache
829842 controller.
@@ -851,10 +864,10 @@ config ARM_L1_CACHE_SHIFT
851864 default 5
852865
853866config ARM_DMA_MEM_BUFFERABLE
854- bool "Use non-cacheable memory for DMA" if CPU_V6 && !CPU_V7
867+ bool "Use non-cacheable memory for DMA" if ( CPU_V6 || CPU_V6K) && !CPU_V7
855868 depends on !(MACH_REALVIEW_PB1176 || REALVIEW_EB_ARM11MP || \
856869 MACH_REALVIEW_PB11MP)
857- default y if CPU_V6 || CPU_V7
870+ default y if CPU_V6 || CPU_V6K || CPU_V7
858871 help
859872 Historically, the kernel has used strongly ordered mappings to
860873 provide DMA coherent memory. With the advent of ARMv7, mapping
0 commit comments