sandbox-pinmux.h 453 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
  4. */
  5. #ifndef SANDBOX_PINMUX_H
  6. #define SANDBOX_PINMUX_H
  7. #define SANDBOX_PINMUX_UART 0
  8. #define SANDBOX_PINMUX_I2C 1
  9. #define SANDBOX_PINMUX_SPI 2
  10. #define SANDBOX_PINMUX_I2S 3
  11. #define SANDBOX_PINMUX_GPIO 4
  12. #define SANDBOX_PINMUX_CS 5
  13. #define SANDBOX_PINMUX_PWM 6
  14. #define SANDBOX_PINMUX(pin, func) ((func) << 16 | (pin))
  15. #endif /* SANDBOX_PINMUX_H */