storm: support whirlwind and storm with the same binary

Whirlwind and Storm devices are very similar, as far as firmware is
concerned, mainly just two things need to be handled differently:

   - the appropriate device tree needs to be picked from the FIT
     header;

   - only Whirlwind requires calibration data to be populated in the
     device tree.

This patch adds a board description structure, which includes items
which are different for different devices. This structure is filled up
at start up based on board ID retrieved from the sysinfo table and
then used during boot.

This same plumbing will be used to support other Storm flavors.

BRANCH=storm
BUG=chrome-os-partner:32611
TEST=Booted the same image on Storm and Whirlwind, observed the
     correct device tree picked and WiFi calibration data populated in
     the device tree on Whirlwind.

Change-Id: I477cdc14a519f14568dd9ad97003e7e61c55ee19
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/225980
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
1 file changed