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.

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

Change-Id: Id1124e7a1a98fcb900e90046f29dfdd70acdd31a
Reviewed-on: https://chromium-review.googlesource.com/1697968
Tested-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
10 files changed