Lines Matching +full:gce +full:- +full:events

1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/soc/mediatek/mtk-cmdq.h>
29 * struct mtk_disp_aal - DISP_AAL driver structure
30 * @ddp_comp - structure containing type enum and hardware resources
31 * @crtc - associated crtc to report irq events to
44 return clk_prepare_enable(aal->clk); in mtk_aal_clk_enable()
51 clk_disable_unprepare(aal->clk); in mtk_aal_clk_disable()
60 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_SIZE); in mtk_aal_config()
61 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_OUTPUT_SIZE); in mtk_aal_config()
68 if (aal->data && aal->data->has_gamma) in mtk_aal_gamma_set()
69 mtk_gamma_set_common(aal->regs, state, false); in mtk_aal_gamma_set()
76 writel(AAL_EN, aal->regs + DISP_AAL_EN); in mtk_aal_start()
83 writel_relaxed(0x0, aal->regs + DISP_AAL_EN); in mtk_aal_stop()
104 struct device *dev = &pdev->dev; in mtk_disp_aal_probe()
111 return -ENOMEM; in mtk_disp_aal_probe()
113 priv->clk = devm_clk_get(dev, NULL); in mtk_disp_aal_probe()
114 if (IS_ERR(priv->clk)) { in mtk_disp_aal_probe()
116 return PTR_ERR(priv->clk); in mtk_disp_aal_probe()
120 priv->regs = devm_ioremap_resource(dev, res); in mtk_disp_aal_probe()
121 if (IS_ERR(priv->regs)) { in mtk_disp_aal_probe()
123 return PTR_ERR(priv->regs); in mtk_disp_aal_probe()
127 ret = cmdq_dev_get_client_reg(dev, &priv->cmdq_reg, 0); in mtk_disp_aal_probe()
129 dev_dbg(dev, "get mediatek,gce-client-reg fail!\n"); in mtk_disp_aal_probe()
132 priv->data = of_device_get_match_data(dev); in mtk_disp_aal_probe()
144 component_del(&pdev->dev, &mtk_disp_aal_component_ops); in mtk_disp_aal_remove()
154 { .compatible = "mediatek,mt8173-disp-aal",
156 { .compatible = "mediatek,mt8183-disp-aal"},
165 .name = "mediatek-disp-aal",