blob: 21c5a1762abef27317c8ce14f91c663c77fc8227 [file] [log] [blame]
Sean Anderson3438e3b2020-09-14 11:01:57 -04001/* 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
Sean Andersonc50d2a02024-08-15 22:38:22 -040016#define SANDBOX_PINMUX_ONEWIRE 7
Sean Anderson3438e3b2020-09-14 11:01:57 -040017
18#define SANDBOX_PINMUX(pin, func) ((func) << 16 | (pin))
19
20#endif /* SANDBOX_PINMUX_H */