blob: b4823a309fced747f0cabb3d02ca96e41ae6f571 [file] [log] [blame]
Robert Markoe7a34f12020-07-06 10:37:54 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Qualcomm Pin control
4 *
5 * (C) Copyright 2018 Ramon Fried <ramon.fried@gmail.com>
6 *
7 */
8#ifndef _PINCTRL_SNAPDRAGON_H
9#define _PINCTRL_SNAPDRAGON_H
10
Robert Markoe7a34f12020-07-06 10:37:54 +020011struct msm_pinctrl_data {
12 int pin_count;
13 int functions_count;
14 const char *(*get_function_name)(struct udevice *dev,
15 unsigned int selector);
16 unsigned int (*get_function_mux)(unsigned int selector);
17 const char *(*get_pin_name)(struct udevice *dev,
18 unsigned int selector);
19};
20
21struct pinctrl_function {
22 const char *name;
23 int val;
24};
25
26extern struct msm_pinctrl_data ipq4019_data;
27
28#endif