6b56801274
Add API to get the pin address range. Change-Id: I340f14eed50fa7302ae978477257cd03cbc669cb Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
21 lines
567 B
C
21 lines
567 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019, 2021, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __LINUX_PINCTRL_MSM_H__
|
|
#define __LINUX_PINCTRL_MSM_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* APIS to access qup_i3c registers */
|
|
int msm_qup_write(u32 mode, u32 val);
|
|
int msm_qup_read(u32 mode);
|
|
|
|
/* API to write to mpm_wakeup registers */
|
|
int msm_gpio_mpm_wake_set(unsigned int gpio, bool enable);
|
|
|
|
/* API to get gpio pin address */
|
|
bool msm_gpio_get_pin_address(unsigned int gpio, struct resource *res);
|
|
#endif /* __LINUX_PINCTRL_MSM_H__ */
|