diff options
Diffstat (limited to 'drivers/input/serio/i8042.c')
-rw-r--r-- | drivers/input/serio/i8042.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index cbe83bf294c9..1f73cf72a7c5 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c | |||
@@ -63,6 +63,12 @@ static unsigned int i8042_blink_frequency = 500; | |||
63 | module_param_named(panicblink, i8042_blink_frequency, uint, 0600); | 63 | module_param_named(panicblink, i8042_blink_frequency, uint, 0600); |
64 | MODULE_PARM_DESC(panicblink, "Frequency with which keyboard LEDs should blink when kernel panics"); | 64 | MODULE_PARM_DESC(panicblink, "Frequency with which keyboard LEDs should blink when kernel panics"); |
65 | 65 | ||
66 | #ifdef CONFIG_X86 | ||
67 | static unsigned int i8042_dritek; | ||
68 | module_param_named(dritek, i8042_dritek, bool, 0); | ||
69 | MODULE_PARM_DESC(dritek, "Force enable the Dritek keyboard extension"); | ||
70 | #endif | ||
71 | |||
66 | #ifdef CONFIG_PNP | 72 | #ifdef CONFIG_PNP |
67 | static int i8042_nopnp; | 73 | static int i8042_nopnp; |
68 | module_param_named(nopnp, i8042_nopnp, bool, 0); | 74 | module_param_named(nopnp, i8042_nopnp, bool, 0); |
@@ -1145,6 +1151,7 @@ static int __devinit i8042_setup_kbd(void) | |||
1145 | static int __devinit i8042_probe(struct platform_device *dev) | 1151 | static int __devinit i8042_probe(struct platform_device *dev) |
1146 | { | 1152 | { |
1147 | int error; | 1153 | int error; |
1154 | char param; | ||
1148 | 1155 | ||
1149 | error = i8042_controller_selftest(); | 1156 | error = i8042_controller_selftest(); |
1150 | if (error) | 1157 | if (error) |
@@ -1166,6 +1173,13 @@ static int __devinit i8042_probe(struct platform_device *dev) | |||
1166 | goto out_fail; | 1173 | goto out_fail; |
1167 | } | 1174 | } |
1168 | 1175 | ||
1176 | if (i8042_dritek) { | ||
1177 | param = 0x90; | ||
1178 | error = i8042_command(¶m, 0x1059); | ||
1179 | if (error) | ||
1180 | goto out_fail; | ||
1181 | } | ||
1182 | |||
1169 | /* | 1183 | /* |
1170 | * Ok, everything is ready, let's register all serio ports | 1184 | * Ok, everything is ready, let's register all serio ports |
1171 | */ | 1185 | */ |