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

int dam_select_mode ( dam_port  port,
dam_mode  the_mode 
)

This function selects the operation mode of the port.

Parameters:
port the DAM port to configure
the_mode the operation mode of the port
Returns:
This function returns the result of the operation (0 if successful, -1 otherwise).
This function selects the operation mode of the port.

Parameters:
port the DAM port to configure
the_mode the operation mode of the port
Returns:
This function returns the result of the operation (0 if successful, -1 otherwise).

Definition at line 187 of file dam.c.

References dam_mode_masq, ModifyRegister32, and normal_mode.

Referenced by configure_dam_pmic_master().

{
      int result;
      result = 0;

      ModifyRegister32(dam_mode_masq << dam_mode_shift,
                   the_mode << dam_mode_shift, _reg_DAM_PDCR(port));

      return result;
}


Generated by  Doxygen 1.6.0   Back to index