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

static void mxc_nand_select_chip ( struct mtd_info *  mtd,
int  chip 
) [static]

This function is used by upper layer for select and deselect of the NAND chip

Parameters:
mtd MTD structure for the NAND Flash
chip val indicating select or deselect

Definition at line 778 of file mxc_nd2.c.

{

      switch (chip) {
      case -1:
            /* Disable the NFC clock */
            clk_disable(nfc_clk);
            break;
      case 0 ... 7:
            /* Enable the NFC clock */
            clk_enable(nfc_clk);

            NFC_SET_NFC_ACTIVE_CS(chip);
            break;

      default:
            break;
      }
}


Generated by  Doxygen 1.6.0   Back to index