2015-09-25 01:57:06 +08:00
|
|
|
/* pinmux.h - the private pinmux driver header */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-09-25 01:57:06 +08:00
|
|
|
*/
|
|
|
|
#ifndef __DRIVERS_PINMUX_H
|
|
|
|
#define __DRIVERS_PINMUX_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <device.h>
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-09-25 01:57:06 +08:00
|
|
|
struct pin_config {
|
|
|
|
uint8_t pin_num;
|
2015-11-21 02:17:55 +08:00
|
|
|
uint32_t mode;
|
2015-09-25 01:57:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct pinmux_config {
|
|
|
|
uint32_t base_address;
|
|
|
|
};
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-09-25 01:57:06 +08:00
|
|
|
#endif /* __DRIVERS_PINMUX_H */
|