mosys: Add "chassis" in platform command.

The new "chassis" will provide an identifier for device chassis, which
may be used to finding right configuration related to system assembly
difference, for example audio speaker, Wi-Fi, Touchpad, ... etc.

For backward compatible, chassis will try to read from VPD
"customization_id" (format: LOEMID-SERIES), using the "SERIES" part from
it; otherwise none.

BRANCH=none
BUG=chromium:687149
TEST=vpd -d customization_id; reboot
     mosys platform chassis # prints nothing.
     vpd -s customization_id=OEM_BLAH; reboot
     mosys platform chassis # prints BLAH

Change-Id: Ie0f6bb0f931ffa2e293d86db10eceafe1d228865
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/433625
Reviewed-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit edf3fb099168de7369331b76f13a19309e34ae3e)
Reviewed-on: https://chromium-review.googlesource.com/c/1263587
Reviewed-by: Philip Chen <philipchen@chromium.org>
Commit-Queue: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Trybot-Ready: Philip Chen <philipchen@chromium.org>
4 files changed