diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r600d.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r600d.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600d.h b/drivers/gpu/drm/radeon/r600d.h index c89cfa8e0c05..a5d898b4bad2 100644 --- a/drivers/gpu/drm/radeon/r600d.h +++ b/drivers/gpu/drm/radeon/r600d.h | |||
@@ -737,6 +737,45 @@ | |||
737 | # define DxGRPH_PFLIP_INT_MASK (1 << 0) | 737 | # define DxGRPH_PFLIP_INT_MASK (1 << 0) |
738 | # define DxGRPH_PFLIP_INT_TYPE (1 << 8) | 738 | # define DxGRPH_PFLIP_INT_TYPE (1 << 8) |
739 | 739 | ||
740 | /* PCIE link stuff */ | ||
741 | #define PCIE_LC_TRAINING_CNTL 0xa1 /* PCIE_P */ | ||
742 | # define LC_POINT_7_PLUS_EN (1 << 6) | ||
743 | #define PCIE_LC_LINK_WIDTH_CNTL 0xa2 /* PCIE_P */ | ||
744 | # define LC_LINK_WIDTH_SHIFT 0 | ||
745 | # define LC_LINK_WIDTH_MASK 0x7 | ||
746 | # define LC_LINK_WIDTH_X0 0 | ||
747 | # define LC_LINK_WIDTH_X1 1 | ||
748 | # define LC_LINK_WIDTH_X2 2 | ||
749 | # define LC_LINK_WIDTH_X4 3 | ||
750 | # define LC_LINK_WIDTH_X8 4 | ||
751 | # define LC_LINK_WIDTH_X16 6 | ||
752 | # define LC_LINK_WIDTH_RD_SHIFT 4 | ||
753 | # define LC_LINK_WIDTH_RD_MASK 0x70 | ||
754 | # define LC_RECONFIG_ARC_MISSING_ESCAPE (1 << 7) | ||
755 | # define LC_RECONFIG_NOW (1 << 8) | ||
756 | # define LC_RENEGOTIATION_SUPPORT (1 << 9) | ||
757 | # define LC_RENEGOTIATE_EN (1 << 10) | ||
758 | # define LC_SHORT_RECONFIG_EN (1 << 11) | ||
759 | # define LC_UPCONFIGURE_SUPPORT (1 << 12) | ||
760 | # define LC_UPCONFIGURE_DIS (1 << 13) | ||
761 | #define PCIE_LC_SPEED_CNTL 0xa4 /* PCIE_P */ | ||
762 | # define LC_GEN2_EN_STRAP (1 << 0) | ||
763 | # define LC_TARGET_LINK_SPEED_OVERRIDE_EN (1 << 1) | ||
764 | # define LC_FORCE_EN_HW_SPEED_CHANGE (1 << 5) | ||
765 | # define LC_FORCE_DIS_HW_SPEED_CHANGE (1 << 6) | ||
766 | # define LC_SPEED_CHANGE_ATTEMPTS_ALLOWED_MASK (0x3 << 8) | ||
767 | # define LC_SPEED_CHANGE_ATTEMPTS_ALLOWED_SHIFT 3 | ||
768 | # define LC_CURRENT_DATA_RATE (1 << 11) | ||
769 | # define LC_VOLTAGE_TIMER_SEL_MASK (0xf << 14) | ||
770 | # define LC_CLR_FAILED_SPD_CHANGE_CNT (1 << 21) | ||
771 | # define LC_OTHER_SIDE_EVER_SENT_GEN2 (1 << 23) | ||
772 | # define LC_OTHER_SIDE_SUPPORTS_GEN2 (1 << 24) | ||
773 | #define MM_CFGREGS_CNTL 0x544c | ||
774 | # define MM_WR_TO_CFG_EN (1 << 3) | ||
775 | #define LINK_CNTL2 0x88 /* F0 */ | ||
776 | # define TARGET_LINK_SPEED_MASK (0xf << 0) | ||
777 | # define SELECTABLE_DEEMPHASIS (1 << 6) | ||
778 | |||
740 | /* | 779 | /* |
741 | * PM4 | 780 | * PM4 |
742 | */ | 781 | */ |