platform: msm_shared: Add support for alpha pll

Add support for alpha pll. Alpha pll is the clock source for
multimedia clocks. MMPLL0 uses alpha pll for generating required
rate for display clocks.

Change-Id: I70970b6bdc7be08d2b9305eed3f942840a426dea
diff --git a/platform/msm_shared/clock_lib2.c b/platform/msm_shared/clock_lib2.c
index cc87c92..ad088cb 100644
--- a/platform/msm_shared/clock_lib2.c
+++ b/platform/msm_shared/clock_lib2.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-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 met:
@@ -77,8 +77,9 @@
 	cbcr_val &= ~CBCR_BRANCH_ENABLE_BIT;
 	writel(cbcr_val, bclk->cbcr_reg);
 
-	/* wait until status shows it is disabled */
-	while(!(readl(bclk->cbcr_reg) & CBCR_BRANCH_OFF_BIT));
+	if (!bclk->no_halt_check_on_disable)
+		/* wait until status shows it is disabled */
+		while(!(readl(bclk->cbcr_reg) & CBCR_BRANCH_OFF_BIT));
 }
 
 /* Branch clock set rate */