12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /*
- * Copyright (C) 2011 Samsung Electronics. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- */
- #ifndef _SSP_PLATFORMDATA_H_
- #define _SSP_PLATFORMDATA_H_
- /* Change revision */
- #define SSP_MCU_L0 0
- #define SSP_MCU_L5 1
- /* POSITION VALUES */
- /* K330 */
- #define K330_TOP_LEFT_UPPER 3
- #define K330_TOP_RIGHT_UPPER 0
- #define K330_TOP_RIGHT_LOWER 1
- #define K330_TOP_LEFT_LOWER 2
- #define K330_BOTTOM_LEFT_UPPER 5
- #define K330_BOTTOM_RIGHT_UPPER 4
- #define K330_BOTTOM_RIGHT_LOWER 7
- #define K330_BOTTOM_LEFT_LOWER 6
- /* MPU6500 */
- #define MPU6500_TOP_LEFT_UPPER 0
- #define MPU6500_TOP_RIGHT_UPPER 1
- #define MPU6500_TOP_RIGHT_LOWER 2
- #define MPU6500_TOP_LEFT_LOWER 3
- #define MPU6500_BOTTOM_LEFT_UPPER 4
- #define MPU6500_BOTTOM_RIGHT_UPPER 7
- #define MPU6500_BOTTOM_RIGHT_LOWER 6
- #define MPU6500_BOTTOM_LEFT_LOWER 5
- /* YAS532 */
- #define YAS532_TOP_LEFT_UPPER 1
- #define YAS532_TOP_RIGHT_UPPER 2
- #define YAS532_TOP_RIGHT_LOWER 3
- #define YAS532_TOP_LEFT_LOWER 0
- #define YAS532_BOTTOM_LEFT_UPPER 7
- #define YAS532_BOTTOM_RIGHT_UPPER 6
- #define YAS532_BOTTOM_RIGHT_LOWER 5
- #define YAS532_BOTTOM_LEFT_LOWER 4
- #ifdef CONFIG_SENSORS_SSP_SHTC1
- /**
- * struct cp_thm_adc_table - adc to temperature table for PAM thermistor
- * driver
- * @adc: adc value
- * @temperature: temperature(C) * 10
- */
- struct cp_thm_adc_table {
- unsigned int adc;
- int temperature;
- };
- #endif
- struct ssp_platform_data {
- int (*wakeup_mcu)(void);
- int (*check_mcu_ready)(void);
- int (*check_mcu_busy)(void);
- int (*set_mcu_reset)(int);
- int (*check_ap_rev)(void);
- int (*read_chg)(void);
- int (*check_changes)(void);
- void (*get_positions)(int *, int *);
- };
- #endif
|