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.

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 <>
Reviewed-by: David Hendricks <>
(cherry picked from commit edf3fb099168de7369331b76f13a19309e34ae3e)
Reviewed-by: Philip Chen <>
Commit-Queue: Philip Chen <>
Tested-by: Philip Chen <>
Trybot-Ready: Philip Chen <>
4 files changed