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 Fix a few swapped fields



details:   https://anonhg.NetBSD.org/src/rev/ea62a05f61ee
branches:  trunk
changeset: 966765:ea62a05f61ee
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Nov 14 20:31:50 2019 +0000

description:
Fix a few swapped fields

diffstat:

 sys/arch/arm/rockchip/rk_vop.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (48 lines):

diff -r c51aaa36abbf -r ea62a05f61ee sys/arch/arm/rockchip/rk_vop.c
--- a/sys/arch/arm/rockchip/rk_vop.c    Thu Nov 14 19:26:58 2019 +0000
+++ b/sys/arch/arm/rockchip/rk_vop.c    Thu Nov 14 20:31:50 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_vop.c,v 1.1 2019/11/09 23:30:14 jmcneill Exp $ */
+/* $NetBSD: rk_vop.c,v 1.2 2019/11/14 20:31:50 jmcneill 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.1 2019/11/09 23:30:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_vop.c,v 1.2 2019/11/14 20:31:50 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -90,14 +90,14 @@
 #define         DSP_VACT_ST_POST               __BITS(28,16)
 #define         DSP_VACT_END_POST              __BITS(12,0)
 #define        VOP_DSP_HTOTAL_HS_END           0x0188
-#define         DSP_HTOTAL                     __BITS(28,16)
-#define         DSP_HS_END                     __BITS(12,0)
+#define         DSP_HS_END                     __BITS(28,16)
+#define         DSP_HTOTAL                     __BITS(12,0)
 #define        VOP_DSP_HACT_ST_END             0x018c
 #define         DSP_HACT_ST                    __BITS(28,16)
 #define         DSP_HACT_END                   __BITS(12,0)
 #define        VOP_DSP_VTOTAL_VS_END           0x0190
-#define         DSP_VTOTAL                     __BITS(28,16)
-#define         DSP_VS_END                     __BITS(12,0)
+#define         DSP_VS_END                     __BITS(28,16)
+#define         DSP_VTOTAL                     __BITS(12,0)
 #define        VOP_DSP_VACT_ST_END             0x0194
 #define         DSP_VACT_ST                    __BITS(28,16)
 #define         DSP_VACT_END                   __BITS(12,0)
@@ -306,8 +306,8 @@
              __SHIFTIN(vactive - 1, WIN0_DSP_HEIGHT);
        WR4(sc, VOP_WIN0_DSP_INFO, val);
 
-       val = __SHIFTIN(hsync_len + hback_porch, WIN0_DSP_YST) |
-             __SHIFTIN(vsync_len + vback_porch, WIN0_DSP_XST);
+       val = __SHIFTIN(hsync_len + hback_porch, WIN0_DSP_XST) |
+             __SHIFTIN(vsync_len + vback_porch, WIN0_DSP_YST);
        WR4(sc, VOP_WIN0_DSP_ST, val);
 
        WR4(sc, VOP_WIN0_COLOR_KEY, 0);



Home | Main Index | Thread Index | Old Index