linux/drivers/clk/samsung
Krzysztof Kozlowski e323d56eb0 clk: exynos4: Fix wrong clock for Exynos4x12 ADC
The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver.
However TSADC is present only on Exynos4210 so on Trats2 board (with
Exynos4412 SoC) the exynos-adc driver could not be probed:
   ERROR: could not get clock /adc@126C0000:adc(0)
   exynos-adc 126c0000.adc: failed getting clock, err = -2
   exynos-adc: probe of 126c0000.adc failed with error -2

Instead on Exynos4x12 SoCs the main clock used by Analog to Digital
Converter is located in different register and it is named in datasheet
as PCLK_ADC. Regardless of the name the purpose of this PCLK_ADC clock
is the same as purpose of TSADC from Exynos4210.

The patch adds gate clock for Exynos4x12 using the proper register so
backward compatibility is preserved. This fixes the probe of exynos-adc
driver on Exynos4x12 boards and allows accessing sensors connected to it
on Trats2 board (ntc,ncp15wb473 AP and battery thermistors).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: <stable@vger.kernel.org>
Fixes: c63c574330 ("ARM: dts: Add ADC's dt data to read raw data for exynos4x12")
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-07-28 14:39:17 -07:00
..
clk-cpu.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-cpu.h clk: samsung: add infrastructure to register cpu clocks 2015-06-20 12:17:42 -07:00
clk-exynos4.c clk: exynos4: Fix wrong clock for Exynos4x12 ADC 2015-07-28 14:39:17 -07:00
clk-exynos7.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos3250.c Merge branch 'v4.3-topic/clk-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into clk-next 2015-07-28 11:59:21 -07:00
clk-exynos4415.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos5250.c Merge branch 'v4.3-topic/clk-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into clk-next 2015-07-28 11:59:21 -07:00
clk-exynos5260.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos5260.h clk/exynos5260: add clock file for exynos5260 2014-05-14 19:16:55 +02:00
clk-exynos5410.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos5420.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos5433.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos5440.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos-audss.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-exynos-clkout.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-pll.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-pll.h clk: samsung: add support for 145xx and 1460x PLLs 2014-10-31 10:45:35 +01:00
clk-s3c64xx.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s3c2410-dclk.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s3c2410.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s3c2412.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s3c2443.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s5pv210-audss.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk-s5pv210.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk.c clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
clk.h clk: samsung: Properly include clk.h and clkdev.h 2015-07-20 11:11:11 -07:00
Kconfig ARM: S3C24XX: move S3C24XX clock Kconfig options to Samsung clock Kconfig file 2014-05-14 19:41:15 +02:00
Makefile clk: samsung: add infrastructure to register cpu clocks 2015-06-20 12:17:42 -07:00