Sound Open Firmware
Loading...
Searching...
No Matches
iomux.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2019 Intel Corporation. All rights reserved.
4 *
5 * Author: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
6 */
7
8#ifndef __SOF_DRIVERS_IOMUX_H__
9#define __SOF_DRIVERS_IOMUX_H__
10
11#include <stdint.h>
12
13#define IOMUX_PIN_NUM 32
14
15struct iomux {
16 uint32_t base;
17 /* 0 -- unconfigured; > 0 -- configured for function (state - 1) */
19};
20
22 unsigned int bit;
23 uint32_t mask;
24 uint32_t fn;
25};
26
27extern struct iomux iomux_data[];
28extern const int n_iomux;
29
30int iomux_configure(struct iomux *iomux, const struct iomux_pin_config *cfg);
31struct iomux *iomux_get(unsigned int id);
32int iomux_probe(struct iomux *iomux);
33
34#endif /* __SOF_DRIVERS_IOMUX_H__ */
struct iomux iomux_data[]
const int n_iomux
struct iomux * iomux_get(unsigned int id)
int iomux_configure(struct iomux *iomux, const struct iomux_pin_config *cfg)
#define IOMUX_PIN_NUM
Definition iomux.h:13
int iomux_probe(struct iomux *iomux)
Definition iomux.h:21
uint32_t fn
Definition iomux.h:24
unsigned int bit
Definition iomux.h:22
uint32_t mask
Definition iomux.h:23
Definition iomux.h:15
uint8_t pin_state[IOMUX_PIN_NUM]
Definition iomux.h:18
uint32_t base
Definition iomux.h:16