arm: Create /chosen and /memory devicetree nodes if necessary
commitb77257d7bae26a0fca6a90af88d54ee2c45f5b61
authorGuenter Roeck <linux@roeck-us.net>
Thu, 17 Nov 2016 01:30:21 +0000 (16 17:30 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 28 Nov 2016 11:32:34 +0000 (28 11:32 +0000)
tree89f1cb8680dd924838a1fda7271677859bb17f41
parent6aa3a61657a60ad2c422c720bfaa31589a6e7334
arm: Create /chosen and /memory devicetree nodes if necessary

While customary, the /chosen and /memory devicetree nodes do not have to
exist. Create if necessary. Also create the /memory/device_type property
if needed.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 1479346221-18474-1-git-send-email-linux@roeck-us.net
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c