projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a29b865
)
iio: adc: meson-saradc: add support for Meson G12A
author
Neil Armstrong
<narmstrong@baylibre.com>
Mon, 4 Mar 2019 11:12:17 +0000
(12:12 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:51 +0000
(20:19 +0100)
Add the SAR ADC driver for the Amlogic Meson-G12A SoC.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/meson_saradc.c
b/drivers/iio/adc/meson_saradc.c
index f8600fbcdfe377ef7e54d21becb77efa822a008e..510d8b7ef3a061f19a58078c9a1d5d8b964f69e3 100644
(file)
--- a/
drivers/iio/adc/meson_saradc.c
+++ b/
drivers/iio/adc/meson_saradc.c
@@
-1150,6
+1150,11
@@
static const struct meson_sar_adc_data meson_sar_adc_axg_data = {
.name = "meson-axg-saradc",
};
+static const struct meson_sar_adc_data meson_sar_adc_g12a_data = {
+ .param = &meson_sar_adc_gxl_param,
+ .name = "meson-g12a-saradc",
+};
+
static const struct of_device_id meson_sar_adc_of_match[] = {
{
.compatible = "amlogic,meson8-saradc",
@@
-1175,6
+1180,9
@@
static const struct of_device_id meson_sar_adc_of_match[] = {
}, {
.compatible = "amlogic,meson-axg-saradc",
.data = &meson_sar_adc_axg_data,
+ }, {
+ .compatible = "amlogic,meson-g12a-saradc",
+ .data = &meson_sar_adc_g12a_data,
},
{},
};