Commit Graph

4 Commits

Author SHA1 Message Date
Siddartha Mohanadoss
a9bfdc6f89 hwmon: epm: Update type for trepn usage
Update type from u8 to uint8_t for trepn daemon usage
from userspace. Also expose the psoc structures for
trepn's use.

Change-Id: I840a480432493303b105396d522ebdcb1cf9079a
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2013-03-15 17:06:46 -07:00
Siddartha Mohanadoss
ec560a9c20 hwmon: epm_adc: Add EPM support using PSOC
Add support for communicating with the PSOC
using the supported protocol commands from
the PSOC.

The support includes communicating with the
controller to initiate and start the ADC
conversion for the selected channels. Start
and receive ADC conversion for single measurement,
buffered reads, averaging the samples and returning
the results over the set averaging period.

Other commands supported include setting/receiving
the timestamp, setting reference voltage, toggling
gpio to set triggers on set events.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
(cherry picked from commit efddea4639f2953375fb822524fcae756ae67dc0)

Change-Id: Id519a5b9033b85953f1d6229a144f9df78910900
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:18:51 -08:00
Siddartha Mohanadoss
394ae0fea6 Kbuild: Include epm files
Export the epm header files for clients from userspace
to send commands to the driver.

Change-Id: I9b413f461da58cbf92aefeca9285ac6798468ea2
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2013-02-27 18:16:02 -08:00
Stephen Boyd
aaf081b365 hwmon: Add MSM's epm ADC driver
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:29:52 -08:00