platform: msm_shared: Enable compilation of I2C QUP for MSM8916.

QUP I2C is used for powering on LCD Sensor on 8916 QRD devices.
Hence enable the compilation of the same. This patch also reduces
the debug logs from the i2c driver.

CRs-Fixed: 649501
Change-Id: Iea62b20bb07d10eb930b3a384195848a662ea05f
diff --git a/platform/msm_shared/i2c_qup.c b/platform/msm_shared/i2c_qup.c
index 4b525b6..916d865 100644
--- a/platform/msm_shared/i2c_qup.c
+++ b/platform/msm_shared/i2c_qup.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2010-2014, 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
@@ -222,7 +222,7 @@
 {
 	unsigned retries = 0;
 
-	dprintf(INFO, "Polling Status for state:0x%x\n", state);
+	dprintf(SPEW, "Polling Status for state:0x%x\n", state);
 
 	while (retries != 2000) {
 		unsigned status = readl(dev->qup_base + QUP_STATE);
@@ -241,9 +241,9 @@
 qup_verify_fifo(struct qup_i2c_dev *dev, unsigned val, unsigned addr, int rdwr)
 {
 	if (rdwr)
-		dprintf(INFO, "RD:Wrote 0x%x to out_ff:0x%x\n", val, addr);
+		dprintf(SPEW, "RD:Wrote 0x%x to out_ff:0x%x\n", val, addr);
 	else
-		dprintf(INFO, "WR:Wrote 0x%x to out_ff:0x%x\n", val, addr);
+		dprintf(SPEW, "WR:Wrote 0x%x to out_ff:0x%x\n", val, addr);
 }
 #else
 static inline void
@@ -501,7 +501,7 @@
 		    dev->out_blk_sz * (2 << ((fifo_reg & 0x1C) >> 2));
 		dev->in_fifo_sz =
 		    dev->in_blk_sz * (2 << ((fifo_reg & 0x380) >> 7));
-		dprintf(INFO, "QUP IN:bl:%d, ff:%d, OUT:bl:%d, ff:%d\n",
+		dprintf(SPEW, "QUP IN:bl:%d, ff:%d, OUT:bl:%d, ff:%d\n",
 			dev->in_blk_sz, dev->in_fifo_sz, dev->out_blk_sz,
 			dev->out_fifo_sz);
 	}
@@ -613,7 +613,7 @@
 				ret = err;
 				goto out_err;
 			}
-			dprintf(INFO, "idx:%d, rem:%d, num:%d, mode:%d\n",
+			dprintf(SPEW, "idx:%d, rem:%d, num:%d, mode:%d\n",
 				idx, rem, num, dev->mode);
 
 			qup_print_status(dev);
diff --git a/platform/msm_shared/rules.mk b/platform/msm_shared/rules.mk
index 42484e1..cf9f042 100755
--- a/platform/msm_shared/rules.mk
+++ b/platform/msm_shared/rules.mk
@@ -182,7 +182,8 @@
 		$(LOCAL_DIR)/image_verify.o \
 		$(LOCAL_DIR)/crypto_hash.o \
 		$(LOCAL_DIR)/crypto5_eng.o \
-		$(LOCAL_DIR)/crypto5_wrapper.o
+		$(LOCAL_DIR)/crypto5_wrapper.o \
+		$(LOCAL_DIR)/i2c_qup.o
 
 endif