@@ -2094,34 +2094,34 @@ static void radeon_identify_vram(struct radeonfb_info *rinfo)
2094
2094
u32 tmp ;
2095
2095
2096
2096
/* framebuffer size */
2097
- if ((rinfo -> family == CHIP_FAMILY_RS100 ) ||
2097
+ if ((rinfo -> family == CHIP_FAMILY_RS100 ) ||
2098
2098
(rinfo -> family == CHIP_FAMILY_RS200 ) ||
2099
2099
(rinfo -> family == CHIP_FAMILY_RS300 ) ||
2100
2100
(rinfo -> family == CHIP_FAMILY_RC410 ) ||
2101
2101
(rinfo -> family == CHIP_FAMILY_RS400 ) ||
2102
2102
(rinfo -> family == CHIP_FAMILY_RS480 ) ) {
2103
- u32 tom = INREG (NB_TOM );
2104
- tmp = (((( tom >> 16 ) - ( tom & 0xffff ) + 1 ) << 6 ) * 1024 );
2105
-
2106
- radeon_fifo_wait (6 );
2107
- OUTREG (MC_FB_LOCATION , tom );
2108
- OUTREG (DISPLAY_BASE_ADDR , (tom & 0xffff ) << 16 );
2109
- OUTREG (CRTC2_DISPLAY_BASE_ADDR , (tom & 0xffff ) << 16 );
2110
- OUTREG (OV0_BASE_ADDR , (tom & 0xffff ) << 16 );
2111
-
2112
- /* This is supposed to fix the crtc2 noise problem. */
2113
- OUTREG (GRPH2_BUFFER_CNTL , INREG (GRPH2_BUFFER_CNTL ) & ~0x7f0000 );
2114
-
2115
- if ((rinfo -> family == CHIP_FAMILY_RS100 ) ||
2116
- (rinfo -> family == CHIP_FAMILY_RS200 )) {
2117
- /* This is to workaround the asic bug for RMX, some versions
2118
- of BIOS doesn't have this register initialized correctly.
2119
- */
2120
- OUTREGP (CRTC_MORE_CNTL , CRTC_H_CUTOFF_ACTIVE_EN ,
2121
- ~CRTC_H_CUTOFF_ACTIVE_EN );
2122
- }
2123
- } else {
2124
- tmp = INREG (CNFG_MEMSIZE );
2103
+ u32 tom = INREG (NB_TOM );
2104
+
2105
+ tmp = (((( tom >> 16 ) - ( tom & 0xffff ) + 1 ) << 6 ) * 1024 );
2106
+ radeon_fifo_wait (6 );
2107
+ OUTREG (MC_FB_LOCATION , tom );
2108
+ OUTREG (DISPLAY_BASE_ADDR , (tom & 0xffff ) << 16 );
2109
+ OUTREG (CRTC2_DISPLAY_BASE_ADDR , (tom & 0xffff ) << 16 );
2110
+ OUTREG (OV0_BASE_ADDR , (tom & 0xffff ) << 16 );
2111
+
2112
+ /* This is supposed to fix the crtc2 noise problem. */
2113
+ OUTREG (GRPH2_BUFFER_CNTL , INREG (GRPH2_BUFFER_CNTL ) & ~0x7f0000 );
2114
+
2115
+ if ((rinfo -> family == CHIP_FAMILY_RS100 ) ||
2116
+ (rinfo -> family == CHIP_FAMILY_RS200 )) {
2117
+ /* This is to workaround the asic bug for RMX, some versions
2118
+ * of BIOS doesn't have this register initialized correctly.
2119
+ */
2120
+ OUTREGP (CRTC_MORE_CNTL , CRTC_H_CUTOFF_ACTIVE_EN ,
2121
+ ~CRTC_H_CUTOFF_ACTIVE_EN );
2122
+ }
2123
+ } else {
2124
+ tmp = INREG (CNFG_MEMSIZE );
2125
2125
}
2126
2126
2127
2127
/* mem size is bits [28:0], mask off the rest */
0 commit comments