Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* include/linux/tpa2018d1.h - tpa2018d1 speaker amplifier driver |
| 2 | * |
| 3 | * Copyright (C) 2009 HTC Corporation. |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | |
| 17 | #ifndef __ASM_ARM_ARCH_TPA2018D1_H |
| 18 | #define __ASM_ARM_ARCH_TPA2018D1_H |
| 19 | |
| 20 | #define TPA2018D1_I2C_NAME "tpa2018d1" |
| 21 | #define TPA2018D1_CMD_LEN 8 |
| 22 | |
| 23 | struct tpa2018d1_platform_data { |
| 24 | uint32_t gpio_tpa2018_spk_en; |
| 25 | }; |
| 26 | |
| 27 | struct tpa2018d1_config_data { |
| 28 | unsigned char *cmd_data; /* [mode][cmd_len][cmds..] */ |
| 29 | unsigned int mode_num; |
| 30 | unsigned int data_len; |
| 31 | }; |
| 32 | |
| 33 | extern void tpa2018d1_set_speaker_amp(int on); |
| 34 | |
| 35 | #endif /* __ASM_ARM_ARCH_TPA2018D1_H */ |