mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
iio: adc: cpcap-adc: add support for Mot ADC
Add support for ADC found in Motorola Mot board, used as a base for Atrix 4G and Droid X2 smartphones. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
dd31b649ef
commit
18a1ae3e73
|
|
@ -934,6 +934,17 @@ static const struct cpcap_adc_ato mapphone_adc = {
|
|||
.atox_ps_factor_out = 0,
|
||||
};
|
||||
|
||||
static const struct cpcap_adc_ato mot_adc = {
|
||||
.ato_in = 0x0300,
|
||||
.atox_in = 0,
|
||||
.adc_ps_factor_in = 0x0200,
|
||||
.atox_ps_factor_in = 0,
|
||||
.ato_out = 0x0780,
|
||||
.atox_out = 0,
|
||||
.adc_ps_factor_out = 0x0600,
|
||||
.atox_ps_factor_out = 0,
|
||||
};
|
||||
|
||||
static const struct of_device_id cpcap_adc_id_table[] = {
|
||||
{
|
||||
.compatible = "motorola,cpcap-adc",
|
||||
|
|
@ -942,6 +953,10 @@ static const struct of_device_id cpcap_adc_id_table[] = {
|
|||
.compatible = "motorola,mapphone-cpcap-adc",
|
||||
.data = &mapphone_adc,
|
||||
},
|
||||
{
|
||||
.compatible = "motorola,mot-cpcap-adc",
|
||||
.data = &mot_adc,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, cpcap_adc_id_table);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user