2 * Focaltech TouchPad PS/2 mouse driver
4 * Copyright (c) 2014 Red Hat Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
13 * Hans de Goede <hdegoede@redhat.com>
17 * The Focaltech PS/2 touchpad protocol is unknown. This drivers deals with
18 * detection only, to avoid further detection attempts confusing the touchpad
19 * this way it at least works in PS/2 mouse compatibility mode.
22 #include <linux/device.h>
23 #include <linux/libps2.h>
26 static const char * const focaltech_pnp_ids[] = {
33 int focaltech_detect(struct psmouse *psmouse, bool set_properties)
35 if (!psmouse_matches_pnp_id(psmouse, focaltech_pnp_ids))
39 psmouse->vendor = "FocalTech";
40 psmouse->name = "FocalTech Touchpad in mouse emulation mode";
46 int focaltech_init(struct psmouse *psmouse)
48 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS);
49 psmouse_reset(psmouse);