Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
941 B
C
40 lines
941 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Goodix Touchscreen Driver
|
|
* Copyright (C) 2020 - 2021 Goodix, Inc.
|
|
* Copyright (C) 2023 Linaro Ltd.
|
|
*
|
|
* Based on goodix_berlin_berlin driver.
|
|
*/
|
|
|
|
#ifndef __GOODIX_BERLIN_H_
|
|
#define __GOODIX_BERLIN_H_
|
|
|
|
#include <linux/pm.h>
|
|
|
|
#define GOODIX_BERLIN_FW_VERSION_INFO_ADDR_A 0x1000C
|
|
#define GOODIX_BERLIN_FW_VERSION_INFO_ADDR_D 0x10014
|
|
|
|
#define GOODIX_BERLIN_IC_INFO_ADDR_A 0x10068
|
|
#define GOODIX_BERLIN_IC_INFO_ADDR_D 0x10070
|
|
|
|
struct goodix_berlin_ic_data {
|
|
int fw_version_info_addr;
|
|
int ic_info_addr;
|
|
ssize_t read_dummy_len;
|
|
ssize_t read_prefix_len;
|
|
};
|
|
|
|
struct device;
|
|
struct input_id;
|
|
struct regmap;
|
|
|
|
int goodix_berlin_probe(struct device *dev, int irq, const struct input_id *id,
|
|
struct regmap *regmap,
|
|
const struct goodix_berlin_ic_data *ic_data);
|
|
|
|
extern const struct dev_pm_ops goodix_berlin_pm_ops;
|
|
extern const struct attribute_group *goodix_berlin_groups[];
|
|
|
|
#endif
|