]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/64s: Support new device tree binding for discovering CPU features
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 May 2017 03:16:52 +0000 (13:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 May 2017 13:42:55 +0000 (23:42 +1000)
commit5a61ef74f269f2573f48fa53607a8911216c3326
tree5282bc7ceb24c4864d1060bfe59688e72027b1cb
parent75bda95048a4d2c5ff04036bd0181bc84085d8b2
powerpc/64s: Support new device tree binding for discovering CPU features

The ibm,powerpc-cpu-features device tree binding describes CPU features with
ASCII names and extensible compatibility, privilege, and enablement metadata
that allows improved flexibility and compatibility with new hardware.

The interface is described in detail in ibm,powerpc-cpu-features.txt in this
patch.

Currently this code is not enabled by default, and there are no released
firmwares that provide the binding.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
12 files changed:
Documentation/devicetree/bindings/powerpc/ibm,powerpc-cpu-features.txt [new file with mode: 0644]
arch/powerpc/Kconfig
arch/powerpc/include/asm/cpu_has_feature.h
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/dt_cpu_ftrs.h [new file with mode: 0644]
arch/powerpc/include/asm/reg.h
arch/powerpc/include/uapi/asm/cputable.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/dt_cpu_ftrs.c [new file with mode: 0644]
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup_64.c