diff options
Diffstat (limited to 'drivers/video/savage')
-rw-r--r-- | drivers/video/savage/savagefb-i2c.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/savage/savagefb-i2c.c b/drivers/video/savage/savagefb-i2c.c index ed371c868b3a..b16e6138fdd4 100644 --- a/drivers/video/savage/savagefb-i2c.c +++ b/drivers/video/savage/savagefb-i2c.c | |||
@@ -181,6 +181,15 @@ void savagefb_create_i2c_busses(struct fb_info *info) | |||
181 | par->chan.algo.getscl = prosavage_gpio_getscl; | 181 | par->chan.algo.getscl = prosavage_gpio_getscl; |
182 | break; | 182 | break; |
183 | case FB_ACCEL_SAVAGE4: | 183 | case FB_ACCEL_SAVAGE4: |
184 | par->chan.reg = CR_SERIAL1; | ||
185 | if (par->pcidev->revision > 1 && !(VGArCR(0xa6, par) & 0x40)) | ||
186 | par->chan.reg = CR_SERIAL2; | ||
187 | par->chan.ioaddr = par->mmio.vbase; | ||
188 | par->chan.algo.setsda = prosavage_gpio_setsda; | ||
189 | par->chan.algo.setscl = prosavage_gpio_setscl; | ||
190 | par->chan.algo.getsda = prosavage_gpio_getsda; | ||
191 | par->chan.algo.getscl = prosavage_gpio_getscl; | ||
192 | break; | ||
184 | case FB_ACCEL_SAVAGE2000: | 193 | case FB_ACCEL_SAVAGE2000: |
185 | par->chan.reg = 0xff20; | 194 | par->chan.reg = 0xff20; |
186 | par->chan.ioaddr = par->mmio.vbase; | 195 | par->chan.ioaddr = par->mmio.vbase; |