typedef enum iomux_gp_func iomux_gp_func_t |
IOMUX general purpose functions IOMUXC_GPR1
typedef enum iomux_input_config iomux_input_cfg_t |
IOMUX input functions SW_SELECT_INPUT bits 2-0
typedef enum iomux_input_select iomux_input_select_t |
IOMUX SELECT_INPUT register index Base register is IOMUXSW_INPUT_CTL in iomux.c
typedef enum iomux_pad_config iomux_pad_config_t |
IOMUX pad functions SW_PAD_CTL
typedef enum iomux_pin_config iomux_pin_cfg_t |
IOMUX functions SW_MUX_CTL
enum iomux_gp_func |
IOMUX general purpose functions IOMUXC_GPR1
enum iomux_input_config |
enum iomux_input_select |
IOMUX SELECT_INPUT register index Base register is IOMUXSW_INPUT_CTL in iomux.c
enum iomux_pad_config |
IOMUX pad functions SW_PAD_CTL
enum iomux_pin_config |
IOMUX functions SW_MUX_CTL
void mxc_free_iomux | ( | iomux_pin_name_t | pin, | |
iomux_pin_cfg_t | cfg | |||
) |
Release ownership for an IO pin
pin | a name defined by iomux_pin_name_t | |
cfg | an input function as defined in iomux_pin_cfg_t |
void mxc_iomux_set_gpr | ( | iomux_gp_func_t | gp, | |
bool | en | |||
) |
This function enables/disables the general purpose function for a particular signal.
gp | one signal as defined in iomux_gp_func_t | |
en | true to enable; false to disable |
void mxc_iomux_set_input | ( | iomux_input_select_t | input, | |
u32 | config | |||
) |
This function configures input path.
input | index of input select register as defined in iomux_input_select_t | |
config | the binary value of elements defined in iomux_input_cfg_t |
void mxc_iomux_set_pad | ( | iomux_pin_name_t | pin, | |
u32 | config | |||
) |
This function configures the pad value for a IOMUX pin.
pin | a pin number as defined in iomux_pin_name_t | |
config | the ORed value of elements defined in iomux_pad_config_t |
int mxc_request_iomux | ( | iomux_pin_name_t | pin, | |
iomux_pin_cfg_t | cfg | |||
) |
Request ownership for an IO pin. This function has to be the first one being called before that pin is used. The caller has to check the return value to make sure it returns 0.
pin | a name defined by iomux_pin_name_t | |
cfg | an input function as defined in iomux_pin_cfg_t |
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |