platform: msm8994: add platform identifier for msm8992

Add platform identifier for supporting features specific
to msm8992.

Change-Id: I121f565be892e7473d00a61ec3d80561a95ae2bd
diff --git a/include/platform.h b/include/platform.h
index a239567..b65395e 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 2008 Travis Geiselbrecht
  *
- * Copyright (c) 2014, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files
@@ -61,6 +61,7 @@
 void clock_config_cdc(uint32_t interface);
 int platform_is_msm8939();
 int platform_is_msm8909();
+int platform_is_msm8992();
 int boot_device_mask(int);
 uint32_t platform_detect_panel();
 #endif
diff --git a/platform/msm8994/platform.c b/platform/msm8994/platform.c
index 560a021..507158b 100644
--- a/platform/msm8994/platform.c
+++ b/platform/msm8994/platform.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -173,6 +173,23 @@
 		return 0;
 }
 
+int platform_is_msm8992()
+{
+	int ret;
+
+	uint32_t platform = board_platform_id();
+	switch (platform) {
+	case MSM8992:
+	case APQ8092:
+		ret = 1;
+		break;
+	default:
+		ret = 0;
+	}
+
+	return ret;
+}
+
 addr_t get_bs_info_addr()
 {
 	if (platform_is_msm8994())