iio: adc: meson-saradc: Disable BL30 integration on G12A and newer SoCs
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 17 Jul 2021 23:37:16 +0000 (01:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Jul 2021 14:57:31 +0000 (15:57 +0100)
commit48dc1abde015c6c62f05c4c29b73f77d175a2ee6
treeccaf1880e0a47ef9202260e594d239347257fa5c
parenta574e68ff5135d4782260ad38d4b29b8e94e44d6
iio: adc: meson-saradc: Disable BL30 integration on G12A and newer SoCs

G12A and newer don't use the SAR ADC to read the SoC temperature from
within the firmware. Instead there's now a dedicated thermal sensor.
Disable the BL30 integration for G12A and newer SoCs to save a few CPU
cycles when reading samples.
Adding a separate struct meson_sar_adc_data is a good idea anyways
because starting with G12A there's some extra registers to read the
samples in a simplified way.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210717233718.332267-2-martin.blumenstingl@googlemail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c