1d7ef69052
Add a new driver to create a device named /dev/iomux, which allows userland to set or get iomux by bank index and pin index. For now the /dev/iomux supports two commands: - IOMUX_IOC_MUX_SET - IOMUX_IOC_MUX_GET Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Change-Id: I0467af6885863f5dc69d513601f597fca2cc6948
21 lines
437 B
C
21 lines
437 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
|
|
#ifndef _UAPI_LINUX_RK_IOMUX_H
|
|
#define _UAPI_LINUX_RK_IOMUX_H
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
struct iomux_ioctl_data {
|
|
__u32 bank;
|
|
__u32 pin;
|
|
__u32 mux;
|
|
};
|
|
|
|
#define IOMUX_IOC_MAGIC 'P'
|
|
|
|
#define IOMUX_IOC_MUX_SET _IOWR(IOMUX_IOC_MAGIC, 0, struct iomux_ioctl_data)
|
|
#define IOMUX_IOC_MUX_GET _IOWR(IOMUX_IOC_MAGIC, 1, struct iomux_ioctl_data)
|
|
|
|
#endif
|