toradex: common: set board-rev and product-id
authorStefan Agner <stefan.agner@toradex.com>
Sat, 9 May 2015 10:29:34 +0000 (12:29 +0200)
committerStefan Agner <stefan.agner@toradex.com>
Mon, 11 May 2015 06:26:51 +0000 (08:26 +0200)
commit3974fc382adcc18c49228506bf256a7eaa211b06
treec3a99945e7e68c9bc183e43f0e9aa473121acfd3
parent0fa5ed9af80300a67c61e750205ff0c44cf516c4
toradex: common: set board-rev and product-id

Set board revision and Toradex product ID as device tree property.
This transfers the Toradex configblock information to Linux user-
space, where it can be read conviniently through the proc file
system files:
- /proc/device-tree/serial-number
- /proc/device-tree/toradex,board-rev
- /proc/device-tree/toradex,product-id

In case the Toradex config block is missing or corrupted, the
device tree properties won't be created by the boot loader and
hence those file won't exist in that case.
board/toradex/common/common.c