typedef enum iomux_gp_func iomux_gp_func_t |
various IOMUX general purpose functions
typedef enum iomux_pad_config iomux_pad_config_t |
various IOMUX pad functions
typedef enum iomux_input_config iomux_pin_icfg_t |
various IOMUX input functions
typedef enum iomux_output_config iomux_pin_ocfg_t |
various IOMUX output functions
enum iomux_gp_func |
various IOMUX general purpose functions
enum iomux_input_config |
enum iomux_output_config |
various IOMUX output functions
enum iomux_pad_config |
various IOMUX pad functions
void iomux_config_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 |
int iomux_config_mux | ( | iomux_pin_name_t | pin, | |
iomux_pin_ocfg_t | out, | |||
iomux_pin_icfg_t | in | |||
) |
This function is used to configure a pin through the IOMUX module.
pin | a pin number as defined in iomux_pin_name_t | |
out | an output function as defined in iomux_pin_ocfg_t | |
in | an input function as defined in iomux_pin_icfg_t |
void iomux_config_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_pins | |
config | ORed value of elements defined in iomux_pad_config_t |
void mxc_free_iomux | ( | iomux_pin_name_t | pin, | |
iomux_pin_ocfg_t | out, | |||
iomux_pin_icfg_t | in | |||
) |
Release ownership for an IO pin
pin | a name defined by iomux_pin_name_t | |
out | an output function as defined in iomux_pin_ocfg_t | |
in | an input function as defined in iomux_pin_icfg_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_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_ocfg_t | out, | |||
iomux_pin_icfg_t | in | |||
) |
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 | |
out | an output function as defined in iomux_pin_ocfg_t | |
in | an input function as defined in iomux_pin_icfg_t |
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |