From: Nian Jing Date: Fri, 12 Oct 2018 02:47:01 +0000 (+0800) Subject: vdac: vdac: add vdac support for tl1 [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~1213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aab5676adab46643c62dcb67576af0152b36deb;p=platform%2Fkernel%2Flinux-amlogic.git vdac: vdac: add vdac support for tl1 [1/1] PD#172587 Problem: do not suppoert for tl1 Solution: add vdac support for fl1 Verify: test pass on local Change-Id: I7b3da34289dfe0638a24b812658db7e462ebdd4c Signed-off-by: Nian Jing --- diff --git a/arch/arm/boot/dts/amlogic/mesontl1.dtsi b/arch/arm/boot/dts/amlogic/mesontl1.dtsi index b76711b..3e98475 100644 --- a/arch/arm/boot/dts/amlogic/mesontl1.dtsi +++ b/arch/arm/boot/dts/amlogic/mesontl1.dtsi @@ -1031,6 +1031,11 @@ interrupts = <0 3 1>; interrupt-names = "vsync"; }; + + vdac { + compatible = "amlogic, vdac-tl1"; + status = "okay"; + }; }; /* end of / */ &pinctrl_aobus { diff --git a/drivers/amlogic/media/vout/vdac/vdac_dev.c b/drivers/amlogic/media/vout/vdac/vdac_dev.c index c103380..587cdae 100644 --- a/drivers/amlogic/media/vout/vdac/vdac_dev.c +++ b/drivers/amlogic/media/vout/vdac/vdac_dev.c @@ -128,6 +128,10 @@ void ana_ref_cntl0_bit9(bool on, unsigned int module_sel) { bool enable = 0; + /*tl1:bandgap en, bc[7] default:0 opened*/ + if (s_vdac_data->cpu_id == VDAC_CPU_TL1) + return; + switch (module_sel & 0x1f) { case VDAC_MODULE_ATV_DEMOD: /* dtv demod */ if (on) @@ -564,6 +568,11 @@ struct meson_vdac_data meson_g12ab_vdac_data = { .name = "meson-g12ab-vdac", }; +struct meson_vdac_data meson_tl1_vdac_data = { + .cpu_id = VDAC_CPU_TL1, + .name = "meson-tl1-vdac", +}; + static const struct of_device_id meson_vdac_dt_match[] = { { .compatible = "amlogic, vdac-gxtvbb", @@ -592,6 +601,9 @@ static const struct of_device_id meson_vdac_dt_match[] = { }, { .compatible = "amlogic, vdac-g12b", .data = &meson_g12ab_vdac_data, + }, { + .compatible = "amlogic, vdac-tl1", + .data = &meson_tl1_vdac_data, }, {}, };