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

static int pphw_enable ( int  flag  )  [static]

Enable or disable PP.

Parameters:
flag Zero to disable PP, others to enable PP
Returns:
Zero on success, others on failure

Definition at line 682 of file mx27_pp.c.

References pphw_reset().

Referenced by pp_enable(), pp_exit(), and pp_init().

{
      int ret = 0;

      if (flag)
            __raw_writel(__raw_readl(PP_CNTL) | 1, PP_CNTL);
      else
            ret = pphw_reset();

      return ret;
}


Generated by  Doxygen 1.6.0   Back to index