mt65xx.h 815 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2014 MediaTek Inc.
  4. * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com>
  5. */
  6. #ifndef _DT_BINDINGS_PINCTRL_MT65XX_H
  7. #define _DT_BINDINGS_PINCTRL_MT65XX_H
  8. #define MTK_PIN_NO(x) ((x) << 8)
  9. #define MTK_GET_PIN_NO(x) ((x) >> 8)
  10. #define MTK_GET_PIN_FUNC(x) ((x) & 0xf)
  11. #define MTK_PUPD_SET_R1R0_00 100
  12. #define MTK_PUPD_SET_R1R0_01 101
  13. #define MTK_PUPD_SET_R1R0_10 102
  14. #define MTK_PUPD_SET_R1R0_11 103
  15. #define MTK_DRIVE_2mA 2
  16. #define MTK_DRIVE_4mA 4
  17. #define MTK_DRIVE_6mA 6
  18. #define MTK_DRIVE_8mA 8
  19. #define MTK_DRIVE_10mA 10
  20. #define MTK_DRIVE_12mA 12
  21. #define MTK_DRIVE_14mA 14
  22. #define MTK_DRIVE_16mA 16
  23. #define MTK_DRIVE_20mA 20
  24. #define MTK_DRIVE_24mA 24
  25. #define MTK_DRIVE_28mA 28
  26. #define MTK_DRIVE_32mA 32
  27. #endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */