diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2023-10-12 11:57:30 +0200 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2023-10-16 15:21:06 +0000 |
commit | af0e042e162a5899f11996abc17d648a2c82f7cd (patch) | |
tree | df5b08ac05b4ddce6fe83902192879d6c7df706c /drivers/fpga/fpga-mgr.c | |
parent | 4708b01a49171ad6d88499bd9c437629ec4a92d1 (diff) |
drm/mediatek: gamma: Add support for 12-bit LUT
New SoCs, like MT8195, not only may support bigger lookup tables, but
have got a different register layout to support bigger precision:
support specifying the number of `lut_bits` for each SoC and use it
in mtk_gamma_set_common() to perform the right calculations and add
support for 12-bit gamma lookup tables.
While at it, also reorder the variables in mtk_gamma_set_common()
and rename `lut_base` to `lut0_base` to improve readability.
Reviewed-by: Jason-JH.Lin <[email protected]>
Reviewed-by: Alexandre Mergnat <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions