Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

void mxc_iomux_set_pad ( iomux_pin_name_t  pin,
u32  config 
)

This function configures the pad value for a IOMUX pin.

Parameters:
pin a pin number as defined in iomux_pin_name_t
config the ORed value of elements defined in iomux_pad_config_t
This function configures the pad value for a IOMUX pin.

Parameters:
pin a pin number as defined in iomux_pin_name_t
config the ORed value of elements defined in iomux_pad_config_t
This function configures the pad value for a IOMUX pin.

Parameters:
pin a pin number as defined in iomux_pin_name_t
config the ORed value of elements defined in iomux_pad_config_t

Definition at line 149 of file iomux.c.

References IOMUXGPR, IOMUXSW_PAD_CTL, and IOMUXSW_PAD_END.

Referenced by gpio_activate_audio_ports(), gpio_activate_bt_audio_port(), gpio_activate_esai_ports(), gpio_ata_active(), gpio_ata_inactive(), gpio_can_active(), gpio_fec_active(), gpio_gps_active(), gpio_i2c_active(), gpio_keypad_active(), gpio_lcdc_active(), gpio_pmic_active(), gpio_sdhc_active(), gpio_sdhc_inactive(), gpio_sensor_active(), gpio_spdif_active(), gpio_spi_active(), gpio_tsc_active(), gpio_uart_active(), mx25_3stack_gpio_init(), mx35_3stack_gpio_init(), and mxc_init_power_key().

{
      void *pad_reg = IOMUXGPR + PIN_TO_IOMUX_PAD(pin);

      BUG_ON((pad_reg > IOMUXSW_PAD_END) || (pad_reg < IOMUXSW_PAD_CTL));

      __raw_writel(config, pad_reg);
}


Generated by  Doxygen 1.6.0   Back to index