aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mfd/spk-id.h
blob: 3e99afd0300714e21facfce997b8c0399fe3d11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Copyright (c) 2016, The Linux Foundation. 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 and
 * only 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.
 */

#ifndef __SPK_ID_H_
#define __SPK_ID_H_

#include <linux/types.h>
#include <linux/of.h>

#define PIN_PULL_DOWN		0
#define PIN_PULL_UP		1
#define PIN_FLOAT		2

#define VENDOR_ID_NONE		0
#define VENDOR_ID_AAC		1
#define VENDOR_ID_SSI		2
#define VENDOR_ID_GOER		3

#define VENDOR_ID_UNKNOWN	4

extern int spk_id_get_pin_3state(struct device_node *np);

#endif