[PATCH 2/3] powerpc/85xx: add 'cpu-rev' property for cpus node
scottwood at freescale.com
Sat Jul 25 12:24:36 AEST 2015
On Tue, 2015-07-21 at 17:45 +0800, Yangbo Lu wrote:
> Add 'cpu-rev' property for cpus node to support getting cpu revision
> from dts, since it's not good to get cpu revision using powerpc specific
> function(like SVR_REV()) in common drivers.
No. Don't modify the device tree within Linux without a really good reason
(e.g. platform code to fix up a broken device tree).
Why not just read SVR from guts, which works on both PPC and ARM?
More information about the Linuxppc-dev