[PATCH v9 20/23] drm/rockchip: Make VOP driver optional
Sascha Hauer
s.hauer at pengutronix.de
Wed Mar 30 06:39:13 UTC 2022
Hi Andy,
On Tue, Mar 29, 2022 at 07:56:27PM +0800, Andy Yan wrote:
> Hi Sascha:
>
> On 3/28/22 23:11, Sascha Hauer wrote:
> > With upcoming VOP2 support VOP won't be the only choice anymore, so make
> > the VOP driver optional.
> >
> > Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> > ---
> > drivers/gpu/drm/rockchip/Kconfig | 8 ++++++++
> > drivers/gpu/drm/rockchip/Makefile | 3 ++-
> > drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +-
> > 3 files changed, 11 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig
> > index fa5cfda4e90e3..7d22e2997a571 100644
> > --- a/drivers/gpu/drm/rockchip/Kconfig
> > +++ b/drivers/gpu/drm/rockchip/Kconfig
> > @@ -23,8 +23,16 @@ config DRM_ROCKCHIP
> > if DRM_ROCKCHIP
> > +config ROCKCHIP_VOP
> > + bool "Rockchip VOP driver"
> > + default y
> > + help
> > + This selects support for the VOP driver. You should enable it
> > + on all older SoCs up to RK3399.
That reminds me that I wanted to rephrase this. Will change in next
round.
> > +
> > config ROCKCHIP_ANALOGIX_DP
> > bool "Rockchip specific extensions for Analogix DP driver"
> > + depends on ROCKCHIP_VOP
>
>
> Aanlogix dp is also on vop2 base soc such as rk356x and rk3588 .
I added the dependency because analogix_dp-rockchip.c calls
rockchip_drm_wait_vact_end() which is implemented in the VOP driver,
so this driver currenty can't work with the VOP2 driver and can't
be linked without the VOP driver being present.
I'll add a few words to the commit message.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the dri-devel
mailing list