Skip to contentSkip to conversation

drm/radeon: fix UPLL_REF_DIV_MASK definition

PATCH Applied Christian König 3 participants 3 messages Apr 29, 2013 – May 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: fix UPLL_REF_DIV_MASK definition

From: Christian König <[email protected]>

Stupid copy & paste error over all generations.

---
 drivers/gpu/drm/radeon/evergreend.h |    2 +-
 drivers/gpu/drm/radeon/rv770d.h     |    2 +-
 drivers/gpu/drm/radeon/sid.h        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/evergreend.h +1 -1
index d9a0054..75c0563 100644
@@ -59,7 +59,7 @@
 #	define UPLL_SLEEP_MASK				0x00000002
 #	define UPLL_BYPASS_EN_MASK			0x00000004
 #	define UPLL_CTLREQ_MASK				0x00000008
-#	define UPLL_REF_DIV_MASK			0x001F0000
+#	define UPLL_REF_DIV_MASK			0x003F0000
 #	define UPLL_VCO_MODE_MASK			0x00000200
 #	define UPLL_CTLACK_MASK				0x40000000
 #	define UPLL_CTLACK2_MASK			0x80000000
drivers/gpu/drm/radeon/rv770d.h +1 -1
index 6a52b20..85b1626 100644
@@ -45,7 +45,7 @@
 #	define UPLL_BYPASS_EN_MASK			0x00000004
 #	define UPLL_CTLREQ_MASK				0x00000008
 #	define UPLL_REF_DIV(x)				((x) << 16)
-#	define UPLL_REF_DIV_MASK			0x001F0000
+#	define UPLL_REF_DIV_MASK			0x003F0000
 #	define UPLL_CTLACK_MASK				0x40000000
 #	define UPLL_CTLACK2_MASK			0x80000000
 #define CG_UPLL_FUNC_CNTL_2				0x71c
drivers/gpu/drm/radeon/sid.h +1 -1
index 042b91d..222877b 100644
@@ -36,7 +36,7 @@
 #	define UPLL_BYPASS_EN_MASK			0x00000004
 #	define UPLL_CTLREQ_MASK				0x00000008
 #	define UPLL_VCO_MODE_MASK			0x00000600
-#	define UPLL_REF_DIV_MASK			0x001F0000
+#	define UPLL_REF_DIV_MASK			0x003F0000
 #	define UPLL_CTLACK_MASK				0x40000000
 #	define UPLL_CTLACK2_MASK			0x80000000
 #define	CG_UPLL_FUNC_CNTL_2				0x638
Signature · 6 lines
1.7.10.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw
Quoted 3 lines · Christian König

From: Christian König <[email protected]>

Stupid copy & paste error over all generations.

Applied to my tree.

Alex

Quoted 50 lines
---
 drivers/gpu/drm/radeon/evergreend.h |    2 +-
 drivers/gpu/drm/radeon/rv770d.h     |    2 +-
 drivers/gpu/drm/radeon/sid.h        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/evergreend.h +1 -1
index d9a0054..75c0563 100644
@@ -59,7 +59,7 @@
 #      define UPLL_SLEEP_MASK                          0x00000002
 #      define UPLL_BYPASS_EN_MASK                      0x00000004
 #      define UPLL_CTLREQ_MASK                         0x00000008
-#      define UPLL_REF_DIV_MASK                        0x001F0000
+#      define UPLL_REF_DIV_MASK                        0x003F0000
 #      define UPLL_VCO_MODE_MASK                       0x00000200
 #      define UPLL_CTLACK_MASK                         0x40000000
 #      define UPLL_CTLACK2_MASK                        0x80000000
drivers/gpu/drm/radeon/rv770d.h +1 -1
index 6a52b20..85b1626 100644
@@ -45,7 +45,7 @@
 #      define UPLL_BYPASS_EN_MASK                      0x00000004
 #      define UPLL_CTLREQ_MASK                         0x00000008
 #      define UPLL_REF_DIV(x)                          ((x) << 16)
-#      define UPLL_REF_DIV_MASK                        0x001F0000
+#      define UPLL_REF_DIV_MASK                        0x003F0000
 #      define UPLL_CTLACK_MASK                         0x40000000
 #      define UPLL_CTLACK2_MASK                        0x80000000
 #define CG_UPLL_FUNC_CNTL_2                            0x71c
drivers/gpu/drm/radeon/sid.h +1 -2
index 042b91d..222877b 100644
@@ -36,7 +36,7 @@
 #      define UPLL_BYPASS_EN_MASK                      0x00000004
 #      define UPLL_CTLREQ_MASK                         0x00000008
 #      define UPLL_VCO_MODE_MASK                       0x00000600
-#      define UPLL_REF_DIV_MASK                        0x001F0000
+#      define UPLL_REF_DIV_MASK                        0x003F0000
 #      define UPLL_CTLACK_MASK                         0x40000000
 #      define UPLL_CTLACK2_MASK                        0x80000000
 #define        CG_UPLL_FUNC_CNTL_2                             0x638
--

1.7.10.4

#2 lore raw
In reply to Christian König

Dear Christian,

Am Montag, den 29.04.2013, 10:20 +0200 schrieb Christian König:

Quoted 3 lines

From: Christian König <[email protected]>

Stupid copy & paste error over all generations.

does this fix an error or was this found just by reading the code? Could please you add such information to commit message in the future? That would be awesome.

[…]

Thanks,

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel