qup_i2c: Remove Soc specific check while enabling CORE_ON_EN bit

Enabling of CORE_ON_EN bit in qup_i2c driver is not dependent on soc.
Same code will work for all. Hence remove the SOC specific part from the
function.

CRs-Fixed: 335884
Change-Id: I55054b0c17e1710c1d268322f1a78c42c94b3db8
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
This commit is contained in:
Pankaj Kumar
2012-02-09 12:42:37 +05:30
parent 0569a7115e
commit e375b8e7c0

View File

@@ -33,7 +33,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <mach/socinfo.h>
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_VERSION("0.2"); MODULE_VERSION("0.2");
@@ -307,20 +306,12 @@ qup_update_state(struct qup_i2c_dev *dev, uint32_t state)
/* /*
* Before calling qup_config_core_on_en(), please make * Before calling qup_config_core_on_en(), please make
* sure that QuPE core is in RESET state. * sure that QuPE core is in RESET state.
*
* Configuration of CORE_ON_EN - BIT13 in QUP_CONFIG register
* is only required for targets like 7x27a, where it needs
* be turned on for disabling the QuPE pclks.
*/ */
static void static void
qup_config_core_on_en(struct qup_i2c_dev *dev) qup_config_core_on_en(struct qup_i2c_dev *dev)
{ {
uint32_t status; uint32_t status;
if (!(cpu_is_msm7x27a() || cpu_is_msm7x27aa() ||
cpu_is_msm7x25a() || cpu_is_msm7x25aa()))
return;
status = readl_relaxed(dev->base + QUP_CONFIG); status = readl_relaxed(dev->base + QUP_CONFIG);
status |= BIT(13); status |= BIT(13);
writel_relaxed(status, dev->base + QUP_CONFIG); writel_relaxed(status, dev->base + QUP_CONFIG);