cros_config: Generalize cros_config_read_sku_info for both x86 and ARM

Currently the cros_config_read_*sku_info have different implementations
per x86 and ARM. However, the logic is almost the same, if we can always
probe with product names.

This is a first step to unify both architecture. The new
cros_config_read_sku_info is now supporting both x86 and ARM, by
matching firmware name (which is a more precise match than SMBIOS
product name).

Note cros_config_struct.c is not changed yet, so the 2nd stage matching
is still done by FDT compatible string.

TEST=emerge-{kukui,octopus,eve} mosys; run 'mosys platform model' on device.

Change-Id: Id1124e7a1a98fcb900e90046f29dfdd70acdd31a
Tested-by: Hung-Te Lin <>
Commit-Ready: Hung-Te Lin <>
Legacy-Commit-Queue: Commit Bot <>
Reviewed-by: Hsin-Yi Wang <>
10 files changed