|
@@ -79,6 +79,7 @@ static int noscale __devinitdata = 0;
|
|
|
static int paneltweak __devinitdata = 0;
|
|
|
static int vram __devinitdata = 0;
|
|
|
static int bpp __devinitdata = 8;
|
|
|
+static int reverse_i2c __devinitdata;
|
|
|
#ifdef CONFIG_MTRR
|
|
|
static int nomtrr __devinitdata = 0;
|
|
|
#endif
|
|
@@ -1305,6 +1306,7 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd,
|
|
|
par->CRTCnumber = forceCRTC;
|
|
|
par->FpScale = (!noscale);
|
|
|
par->paneltweak = paneltweak;
|
|
|
+ par->reverse_i2c = reverse_i2c;
|
|
|
|
|
|
/* enable IO and mem if not already done */
|
|
|
pci_read_config_word(pd, PCI_COMMAND, &cmd);
|
|
@@ -1486,6 +1488,8 @@ static int __devinit nvidiafb_setup(char *options)
|
|
|
noaccel = 1;
|
|
|
} else if (!strncmp(this_opt, "noscale", 7)) {
|
|
|
noscale = 1;
|
|
|
+ } else if (!strncmp(this_opt, "reverse_i2c", 11)) {
|
|
|
+ reverse_i2c = 1;
|
|
|
} else if (!strncmp(this_opt, "paneltweak:", 11)) {
|
|
|
paneltweak = simple_strtoul(this_opt+11, NULL, 0);
|
|
|
} else if (!strncmp(this_opt, "vram:", 5)) {
|
|
@@ -1582,6 +1586,8 @@ MODULE_PARM_DESC(mode_option, "Specify initial video mode");
|
|
|
module_param(bpp, int, 0);
|
|
|
MODULE_PARM_DESC(bpp, "pixel width in bits"
|
|
|
"(default=8)");
|
|
|
+module_param(reverse_i2c, int, 0);
|
|
|
+MODULE_PARM_DESC(reverse_i2c, "reverse port assignment of the i2c bus");
|
|
|
#ifdef CONFIG_MTRR
|
|
|
module_param(nomtrr, bool, 0);
|
|
|
MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) "
|