arm64: errata: Provide macro for major and minor cpu revisions
authorRobert Richter <rrichter@cavium.com>
Fri, 13 Jan 2017 13:12:09 +0000 (14:12 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 13 Jan 2017 13:15:52 +0000 (13:15 +0000)
commitfa5ce3d1928c441c3d241c34a00c07c8f5880b1a
treec68dfdc1a82d2e7c8d0688e193adc1c2d7a1e7ed
parenteac8017f0c4719d30f89d1a247de7bfbf6d0da4f
arm64: errata: Provide macro for major and minor cpu revisions

Definition of cpu ranges are hard to read if the cpu variant is not
zero. Provide MIDR_CPU_VAR_REV() macro to describe the full hardware
revision of a cpu including variant and (minor) revision.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c