Lines Matching full:aal
55 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_clk_enable() local
57 return clk_prepare_enable(aal->clk); in mtk_aal_clk_enable()
62 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_clk_disable() local
64 clk_disable_unprepare(aal->clk); in mtk_aal_clk_disable()
71 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_config() local
77 mtk_ddp_write(cmdq_pkt, sz, &aal->cmdq_reg, aal->regs, DISP_AAL_SIZE); in mtk_aal_config()
78 mtk_ddp_write(cmdq_pkt, sz, &aal->cmdq_reg, aal->regs, DISP_AAL_OUTPUT_SIZE); in mtk_aal_config()
82 * mtk_aal_gamma_get_lut_size() - Get gamma LUT size for AAL
85 * Return: 0 if gamma control not supported in AAL or gamma LUT size
89 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_gamma_get_lut_size() local
91 if (aal->data && aal->data->has_gamma) in mtk_aal_gamma_get_lut_size()
98 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_gamma_set() local
103 /* If gamma is not supported in AAL, go out immediately */ in mtk_aal_gamma_set()
104 if (!(aal->data && aal->data->has_gamma)) in mtk_aal_gamma_set()
123 writel(word, aal->regs + DISP_AAL_GAMMA_LUT + i * 4); in mtk_aal_gamma_set()
126 cfg_val = readl(aal->regs + DISP_AAL_CFG); in mtk_aal_gamma_set()
134 writel(cfg_val, aal->regs + DISP_AAL_CFG); in mtk_aal_gamma_set()
139 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_start() local
141 writel(AAL_EN, aal->regs + DISP_AAL_EN); in mtk_aal_start()
146 struct mtk_disp_aal *aal = dev_get_drvdata(dev); in mtk_aal_stop() local
148 writel_relaxed(0x0, aal->regs + DISP_AAL_EN); in mtk_aal_stop()
180 "failed to get aal clk\n"); in mtk_disp_aal_probe()
185 "failed to ioremap aal\n"); in mtk_disp_aal_probe()
213 { .compatible = "mediatek,mt8173-disp-aal", .data = &mt8173_aal_driver_data },
214 { .compatible = "mediatek,mt8183-disp-aal" },
223 .name = "mediatek-disp-aal",