dtc: Add support for named integer constants
You may define constants as follows:
/define/ CHROME_OS_BOOT_DEVICES "emmc", "spi";
/define/ GBB_BASE <0x00e08000>;
/define/ UART_BAUD_OPTIONS <115200 57600 19200>;
And properties may use these values as follows:
test-node {
boot-devices = <CHROME_OS_BOOT_DEVICES>;
gbb = <GBB_BASE 0x20000>;
baud-rates = <UART_BAUD_OPTIONS>;
};
BUG=chromium-os:29014
TEST=compile the above code and see with fdtdump that we get correct results.
Change-Id: I891fb9446c76adc90b78c3021cc33acce13d12e7
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
7 files changed