Merge tag 'xilinx-for-v2022.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / include / dt-bindings / pinctrl / sandbox-pinmux.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
4  */
5
6 #ifndef SANDBOX_PINMUX_H
7 #define SANDBOX_PINMUX_H
8
9 #define SANDBOX_PINMUX_UART 0
10 #define SANDBOX_PINMUX_I2C  1
11 #define SANDBOX_PINMUX_SPI  2
12 #define SANDBOX_PINMUX_I2S  3
13 #define SANDBOX_PINMUX_GPIO 4
14 #define SANDBOX_PINMUX_CS   5
15 #define SANDBOX_PINMUX_PWM  6
16
17 #define SANDBOX_PINMUX(pin, func) ((func) << 16 | (pin))
18
19 #endif /* SANDBOX_PINMUX_H */