kukui: Refactor probing of memory info

To look up Kukui non-SPD memory information, we currently need an enum,
two switch-case to find right structure; however this can be done by a
simple pointer array.

Kukui family may soon need board-specific RAM code mapping table. So for
the first step we want to simplify memory probing code so it will be
easier to add and support multiple tables.

BUG=None
TEST=emerge-kukui mosys; mosys memory spd print all

Change-Id: Ic9722b57669dab3f74498ce6790305b882d5fd1e
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1753990
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
1 file changed