Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip rkdrm: Implement atomic disable for pl...
details: https://anonhg.NetBSD.org/src/rev/f8909e07c547
branches: trunk
changeset: 1029030:f8909e07c547
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:45:27 2021 +0000
description:
rkdrm: Implement atomic disable for planes.
diffstat:
sys/arch/arm/rockchip/rk_vop.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 6f8fd90f477b -r f8909e07c547 sys/arch/arm/rockchip/rk_vop.c
--- a/sys/arch/arm/rockchip/rk_vop.c Sun Dec 19 12:45:19 2021 +0000
+++ b/sys/arch/arm/rockchip/rk_vop.c Sun Dec 19 12:45:27 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_vop.c,v 1.14 2021/12/19 12:45:12 riastradh Exp $ */
+/* $NetBSD: rk_vop.c,v 1.15 2021/12/19 12:45:27 riastradh Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_vop.c,v 1.14 2021/12/19 12:45:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_vop.c,v 1.15 2021/12/19 12:45:27 riastradh Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -344,9 +344,13 @@
}
static void
-rk_vop_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *state)
+rk_vop_plane_atomic_disable(struct drm_plane *plane,
+ struct drm_plane_state *state)
{
- DRM_DEBUG_KMS("[PLANE:%s] disable TODO\n", plane->name);
+ struct rk_vop_plane *vop_plane = to_rk_vop_plane(plane);
+ struct rk_vop_softc * const sc = vop_plane->sc;
+
+ WR4(sc, VOP_WIN0_CTRL, 0); /* clear WIN0_EN */
}
static const struct drm_plane_helper_funcs rk_vop_plane_helper_funcs = {
Home |
Main Index |
Thread Index |
Old Index