2019-05-29 00:57:21 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2010-10-05 13:32:48 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
|
|
* Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BU21013_H
|
|
|
|
#define _BU21013_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* struct bu21013_platform_device - Handle the platform data
|
|
|
|
* @touch_x_max: touch x max
|
|
|
|
* @touch_y_max: touch y max
|
|
|
|
* @cs_pin: chip select pin
|
2012-09-28 17:29:07 +08:00
|
|
|
* @touch_pin: touch gpio pin
|
2010-10-05 13:32:48 +08:00
|
|
|
* @ext_clk: external clock flag
|
|
|
|
* @x_flip: x flip flag
|
|
|
|
* @y_flip: y flip flag
|
|
|
|
* @wakeup: wakeup flag
|
|
|
|
*
|
|
|
|
* This is used to handle the platform data
|
|
|
|
*/
|
|
|
|
struct bu21013_platform_device {
|
|
|
|
int touch_x_max;
|
|
|
|
int touch_y_max;
|
|
|
|
unsigned int cs_pin;
|
2012-09-28 17:29:07 +08:00
|
|
|
unsigned int touch_pin;
|
2010-10-05 13:32:48 +08:00
|
|
|
bool ext_clk;
|
|
|
|
bool x_flip;
|
|
|
|
bool y_flip;
|
|
|
|
bool wakeup;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|