]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: crtc: Add function to compute FIFO level bits
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Sep 2020 08:00:48 +0000 (10:00 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Sep 2020 16:03:01 +0000 (18:03 +0200)
commit165b0b225cb78fb536b0896a7fdbffbab22c994e
tree9ce3f436f04099f7a3d113f140493aaa3b447aa3
parent030742bf2257c5596cfd9e28d29cde723e38be89
drm/vc4: crtc: Add function to compute FIFO level bits

The longer FIFOs in vc5 pixelvalves means that the FIFO full level
doesn't fit in the original register field and that we also have a
secondary field. In order to prepare for this, let's move the registers
fill part to a helper function.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/e46a3823128af50c1c833de8fa9b95e9b86c2f66.1599120059.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c