]> xenbits.xensource.com Git - people/julieng/boot-wrapper-aarch64.git/commit
Add 32-bit compatibility to device-tree CPU nodes
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 23 Sep 2015 14:21:09 +0000 (15:21 +0100)
committerMark Rutland <mark.rutland@arm.com>
Wed, 15 Jun 2016 09:27:35 +0000 (10:27 +0100)
commitc311db0c5821f72604bfdaf40c6cbb0b672017c1
tree23aa61afc9d7fe809df0b8621a7f61292b8ed84e
parentf01ed6c65ce267c37efc3d48fc68e36af2d00e62
Add 32-bit compatibility to device-tree CPU nodes

The 32-bit DT parser in Linux doesn't understand 'reg' properties with
two cells, in a CPU node. Since the boot-wrapper always sets the upper
bits to 0, we can restrict that size to one cell.

The parser also requires the device_type property to be present. This is
the case for arm64 as well, but it only fails when the patched device-tree
doesn't have any CPU node to begin with. Add device_type unconditionally.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
gen-cpu-nodes.sh