platform_MemCheck: Report memory type

Mosys dropped support for memory timing. Add memory type
as replacement for memory qual.

BUG=b:186801613
TEST=Ran the test. "timing_dimm_0" still populated.

Change-Id: I18aace6a922577cbb8f02fb2a6235b0459cec028
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2891841
Reviewed-by: Afshin Sadrieh <asadrieh@google.com>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
diff --git a/client/site_tests/platform_MemCheck/platform_MemCheck.py b/client/site_tests/platform_MemCheck/platform_MemCheck.py
index 1380f12..b832ab0 100644
--- a/client/site_tests/platform_MemCheck/platform_MemCheck.py
+++ b/client/site_tests/platform_MemCheck/platform_MemCheck.py
@@ -90,6 +90,17 @@
                     errors += 1
                     error_list += [k]
 
+        # Log memory type
+        cmd = 'mosys memory spd print type | head -1'
+        # Example
+        # 0 | LPDDR4
+        mem_type = utils.run(cmd).stdout.split(' ')[-1]
+        logging.info('Ran command: `%s`', cmd)
+        logging.info('Output: "%s"', mem_type)
+
+        # key name timing_dimm_0 for backward compatibility with older test.
+        keyval['timing_dimm_0'] = mem_type
+
         # Log memory ids
         cmd = 'mosys memory spd print id'
         # result example (1 module of memory per result line)