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

static void send_addr ( u16  addr,
bool  useirq 
) [static]

This function sends an address (or partial address) to the NAND device. The address is used to select the source/destination for a NAND command.

addr address to be written to NFC.
useirq True if IRQ should be used rather than polling

Definition at line 398 of file mxc_nd2.c.

References NFC_ADDR, and wait_op_done().

      DEBUG(MTD_DEBUG_LEVEL3, "send_addr(0x%x %d)\n", addr, useirq);

      /* fill address */
      raw_write((addr << NFC_FLASH_ADDR_SHIFT), REG_NFC_FLASH_ADDR);

      /* send out address */
      raw_write(NFC_ADDR, REG_NFC_OPS);

      /* Wait for operation to complete */
      wait_op_done(TROP_US_DELAY, useirq);

Generated by  Doxygen 1.6.0   Back to index