[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <f1ff3f2888725a1e03541e0be5c0880f0591aea2.1302031487.git.bengardiner@nanometrics.ca>
Date: Tue, 5 Apr 2011 17:38:09 -0400
From: Ben Gardiner <bengardiner@...ometrics.ca>
To: davinci-linux-open-source@...ux.davincidsp.com,
linux-i2c@...r.kernel.org, Sekhar Nori <nsekhar@...com>,
Ben Dooks <ben-linux@...ff.org>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Bastian Ruppert <Bastian.Ruppert@...erin.de>,
Brad Griffis <bgriffis@...com>,
Jon Povey <jon.povey@...elogic.co.uk>,
Philby John <pjohn@...mvista.com>,
Sekhar Nori <nsekhar@...com>, Ben Dooks <ben-linux@...ff.org>
Subject: [PATCH 6/6] da8xx: enable the use of the ICPFUNC in i2c-davinci
Both the da850 and da830 have an I2C controller which has the ICPFUNC
registers. Indicate this for all da830 and da850 boards by setting the
has_pfunc flag true in the da8xx utility setup routine for registering the
I2C controller
Signed-off-by: Ben Gardiner <bengardiner@...ometrics.ca>
Cc: Sekhar Nori <nsekhar@...com>
Cc: Ben Dooks <ben-linux@...ff.org>
---
arch/arm/mach-davinci/devices-da8xx.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index beda8a4..da01558 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -324,6 +324,12 @@ int __init da8xx_register_i2c(int instance,
else
return -EINVAL;
+ /*
+ * Both the DA850 and DA830 have an I2C controller which has the
+ * ICPFUNC et. al. registers
+ */
+ pdata->has_pfunc = 1;
+
pdev->dev.platform_data = pdata;
return platform_device_register(pdev);
}
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists