2013-07-23 18:55:43 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-07-25 17:02:29 +00:00
|
|
|
* Id: stk3x1x.h
|
2013-07-23 18:55:43 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Lex Hsieh <lex_hsieh@sitronix.com.tw>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file COPYING in the main directory of this archive for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef __STK3X1X_H__
|
|
|
|
#define __STK3X1X_H__
|
|
|
|
|
|
|
|
/* platform data */
|
2013-07-25 17:02:29 +00:00
|
|
|
struct stk3x1x_platform_data {
|
2013-07-23 18:55:43 +00:00
|
|
|
uint8_t state_reg;
|
|
|
|
uint8_t psctrl_reg;
|
|
|
|
uint8_t alsctrl_reg;
|
|
|
|
uint8_t ledctrl_reg;
|
2013-07-25 17:02:29 +00:00
|
|
|
uint8_t wait_reg;
|
2013-07-23 18:55:43 +00:00
|
|
|
uint16_t ps_thd_h;
|
|
|
|
uint16_t ps_thd_l;
|
|
|
|
int int_pin;
|
|
|
|
uint32_t transmittance;
|
2013-07-25 17:31:19 +00:00
|
|
|
uint32_t int_flags;
|
2013-08-23 05:51:56 +00:00
|
|
|
bool use_fir;
|
2013-07-23 18:55:43 +00:00
|
|
|
};
|
|
|
|
|
2013-07-25 17:02:29 +00:00
|
|
|
#endif /* __STK3X1X_H__ */
|