]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - include/linux/platform_data/omap-twl4030.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336
[mirror_ubuntu-focal-kernel.git] / include / linux / platform_data / omap-twl4030.h
CommitLineData
2b27bdcc 1/* SPDX-License-Identifier: GPL-2.0-only */
fff8491c
PU
2/**
3 * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030
4 * codec, header.
5 *
6 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com
7 * All rights reserved.
8 *
9 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
fff8491c
PU
10 */
11
12#ifndef _OMAP_TWL4030_H_
13#define _OMAP_TWL4030_H_
14
eb044c48
PU
15/* To select if only one channel is connected in a stereo port */
16#define OMAP_TWL4030_LEFT (1 << 0)
17#define OMAP_TWL4030_RIGHT (1 << 1)
18
fff8491c
PU
19struct omap_tw4030_pdata {
20 const char *card_name;
eb044c48
PU
21 /* Voice port is connected to McBSP3 */
22 bool voice_connected;
23
24 /* The driver will parse the connection flags if this flag is set */
25 bool custom_routing;
26 /* Flags to indicate connected audio ports. */
27 u8 has_hs;
28 u8 has_hf;
29 u8 has_predriv;
30 u8 has_carkit;
31 bool has_ear;
32
33 bool has_mainmic;
34 bool has_submic;
35 bool has_hsmic;
36 bool has_carkitmic;
37 bool has_digimic0;
38 bool has_digimic1;
39 u8 has_linein;
40
41 /* Jack detect GPIO or <= 0 if it is not implemented */
42 int jack_detect;
fff8491c
PU
43};
44
45#endif /* _OMAP_TWL4030_H_ */