Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/allwinner_pinctrl.h
Show All 22 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _ALLWINNER_PINCTRL_H_ | #ifndef _ALLWINNER_PINCTRL_H_ | ||||
#define _ALLWINNER_PINCTRL_H_ | #define _ALLWINNER_PINCTRL_H_ | ||||
#define AW_MAX_FUNC_BY_PIN 8 | #define AW_MAX_FUNC_BY_PIN 15 | ||||
struct allwinner_pins { | struct allwinner_pins { | ||||
const char *name; | const char *name; | ||||
uint8_t port; | uint8_t port; | ||||
uint8_t pin; | uint8_t pin; | ||||
const char *functions[8]; | const char *functions[AW_MAX_FUNC_BY_PIN]; | ||||
uint8_t eint_func; | uint8_t eint_func; | ||||
uint8_t eint_num; | uint8_t eint_num; | ||||
uint8_t eint_bank; | uint8_t eint_bank; | ||||
}; | }; | ||||
struct allwinner_padconf { | struct allwinner_padconf { | ||||
uint32_t npins; | uint32_t npins; | ||||
const struct allwinner_pins * pins; | const struct allwinner_pins * pins; | ||||
}; | }; | ||||
#endif /* _ALLWINNER_PINCTRL_H_ */ | #endif /* _ALLWINNER_PINCTRL_H_ */ |