qcom-pinctrl.h 678 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __LINUX_PINCTRL_MSM_H__
  6. #define __LINUX_PINCTRL_MSM_H__
  7. #include <linux/types.h>
  8. /* APIS to access qup_i3c registers */
  9. int msm_qup_write(u32 mode, u32 val);
  10. int msm_qup_read(u32 mode);
  11. /* API to write to mpm_wakeup registers */
  12. int msm_gpio_mpm_wake_set(unsigned int gpio, bool enable);
  13. /* API to get gpio pin address */
  14. bool msm_gpio_get_pin_address(unsigned int gpio, struct resource *res);
  15. /* APIS to TLMM Spare registers */
  16. int msm_spare_write(int spare_reg, u32 val);
  17. int msm_spare_read(int spare_reg);
  18. #endif /* __LINUX_PINCTRL_MSM_H__ */