summaryrefslogtreecommitdiffstats
path: root/src/drivers/intel/touch/elan.h
blob: b1f3ea615d84e4a05022654407290c1e3c81a7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __DRIVERS_TOUCH_DEV_ELAN_H__
#define __DRIVERS_TOUCH_DEV_ELAN_H__

#include "chip.h"

/*
 * BOM36 is used for HID-SPI interface, while BOM37A is used for HID-I2C
 * interface.
 */

static const struct drivers_intel_touch_config elan_touch_config = {
	.sensor_dev_name = "ELAN Touch Sensor Device",
	.dev_hidi2c = {	/* BOM37A */
		.hid				= "ELAN9048",
		.cid				= "PNP0C50",
		.intf.hidi2c.addr		= 0x16,
		.intf.hidi2c.descriptor_address	= 0x1
	},
	.dev_hidspi = { /* BOM36 */
		.hid						= "ELAN904A",
		.cid						= "PNP0C51",
		.intf.hidspi.input_report_header_address	= 0x1000,
		.intf.hidspi.input_report_body_address		= 0x1100,
		.intf.hidspi.output_report_address		= 0x2000,
		.intf.hidspi.read_opcode			= 0xb,
		.intf.hidspi.write_opcode			= 0x2,
	},
};

#endif /* __DRIVERS_TOUCH_DEV_ELAN_H__ */