reef: Add support for getting the model name

Implement the 'mosys platform model' command on reef. For now this just
returns "reef". Once we add support for other models within the reef
board, we can adjust this.

Signed-off-by: Simon Glass <sjg@chromium.org>
BUG=chromium:671391
BRANCH=none
TEST=with other changes, on reef, type 'mosys platform model';
see that it prints 'reef'

Change-Id: I54f42c9edaf93cfc0864f80308f0f3a8cfa0112b
Reviewed-on: https://chromium-review.googlesource.com/426764
Commit-Ready: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
diff --git a/platform/google/reef/sys.c b/platform/google/reef/sys.c
index abe9b37..fb2cc79 100644
--- a/platform/google/reef/sys.c
+++ b/platform/google/reef/sys.c
@@ -32,18 +32,26 @@
 #include "mosys/alloc.h"
 #include "mosys/platform.h"
 
+#include "lib/acpi.h"
 #include "lib/smbios.h"
+#include "lib/string.h"
 
 static char *reef_get_name(struct platform_intf *intf)
 {
 	return mosys_strdup(intf->name);
 }
 
+static char *reef_get_model(struct platform_intf *intf)
+{
+	/* TODO(sjg@chromium.org): Consider obtaining this from ACPI data */
+	return strlower(mosys_strdup(intf->name));
+}
+
 struct sys_cb reef_sys_cb = {
 	.version		= &smbios_sysinfo_get_version,
 	.vendor			= &smbios_sysinfo_get_vendor,
 	.name			= &reef_get_name,
 	.family			= &smbios_sysinfo_get_family,
 	.firmware_vendor	= &smbios_bios_get_vendor,
+	.model			= &reef_get_model,
 };
-