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

void mxc_iomux_set_gpr ( iomux_gp_func_t  gp,
bool  en,
u8  index 
)

This function enables/disables the general purpose function for a particular signal.

Parameters:
gp one signal as defined in iomux_gp_func_t
en true to enable; false to disable
index 0 for GPR0 and 1 for GPR1
This function enables/disables the general purpose function for a particular signal.

Parameters:
gp one signal as defined in iomux_gp_func_t
en true to enable; false to disable
index 0 for GPR0 and 1 for GPR1

Definition at line 169 of file iomux.c.

References IOMUXGPR0.

{
      volatile u32 l;

      spin_lock(&gpio_mux_lock);
      l = __raw_readl(IOMUXGPR0 + (index << 2));
      if (en) {
            l |= gp;
      } else {
            l &= ~gp;
      }
      __raw_writel(l, IOMUXGPR0 + (index << 2));
      spin_unlock(&gpio_mux_lock);
}


Generated by  Doxygen 1.6.0   Back to index