gpio-davinci.h 451 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * DaVinci GPIO Platform Related Defines
  4. *
  5. * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
  6. */
  7. #ifndef __DAVINCI_GPIO_PLATFORM_H
  8. #define __DAVINCI_GPIO_PLATFORM_H
  9. struct davinci_gpio_platform_data {
  10. bool no_auto_base;
  11. u32 base;
  12. u32 ngpio;
  13. u32 gpio_unbanked;
  14. };
  15. /* Convert GPIO signal to GPIO pin number */
  16. #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))
  17. #endif