Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 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 */ |