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 <nian.jing@amlogic.com>
This commit is contained in:
Nian Jing
2018-10-12 10:47:01 +08:00
committed by Dongjin Kim
parent 6d61f0ca5f
commit 932a8ec2af
2 changed files with 17 additions and 0 deletions

View File

@@ -1031,6 +1031,11 @@
interrupts = <0 3 1>;
interrupt-names = "vsync";
};
vdac {
compatible = "amlogic, vdac-tl1";
status = "okay";
};
}; /* end of / */
&pinctrl_aobus {

View File

@@ -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,
},
{},
};