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

void _ipu_smfc_set_burst_size ( ipu_channel_t  channel,
uint32_t  bs 
)

_ipu_smfc_set_burst_size

Parameters:
channel IDMAC channel 0-3
bs burst size of IDMAC channel, the value programmed here shoud be BURST_SIZE-1

Definition at line 641 of file ipu_capture.c.

{
      uint32_t temp;
      unsigned long lock_flags;

      spin_lock_irqsave(&ipu_lock, lock_flags);

      temp = __raw_readl(SMFC_BS);

      switch (channel) {
      case CSI_MEM0:
            temp &= ~SMFC_BS0_MASK;
            temp |= bs << SMFC_BS0_SHIFT;
            break;
      case CSI_MEM1:
            temp &= ~SMFC_BS1_MASK;
            temp |= bs << SMFC_BS1_SHIFT;
            break;
      case CSI_MEM2:
            temp &= ~SMFC_BS2_MASK;
            temp |= bs << SMFC_BS2_SHIFT;
            break;
      case CSI_MEM3:
            temp &= ~SMFC_BS3_MASK;
            temp |= bs << SMFC_BS3_SHIFT;
            break;
      default:
            return;
      }

      __raw_writel(temp, SMFC_BS);

      spin_unlock_irqrestore(&ipu_lock, lock_flags);
}


Generated by  Doxygen 1.6.0   Back to index