pinctrl-cv18xx.h 475 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
  2. /*
  3. * Copyright (C) 2023 Sophgo Ltd.
  4. *
  5. * Author: Inochi Amaoto <inochiama@outlook.com>
  6. */
  7. #ifndef _DT_BINDINGS_PINCTRL_CV18XX_H
  8. #define _DT_BINDINGS_PINCTRL_CV18XX_H
  9. #define PIN_MUX_INVALD 0xff
  10. #define PINMUX2(pin, mux, mux2) \
  11. (((pin) & 0xffff) | (((mux) & 0xff) << 16) | (((mux2) & 0xff) << 24))
  12. #define PINMUX(pin, mux) \
  13. PINMUX2(pin, mux, PIN_MUX_INVALD)
  14. #endif /* _DT_BINDINGS_PINCTRL_CV18XX_H */