Lines Matching refs:ulBase
83 static void I2SGBLEnable(unsigned long ulBase, unsigned long ulFlag) in I2SGBLEnable() argument
90 ulReg = HWREG(ulBase + MCASP_O_GBLCTL); in I2SGBLEnable()
100 HWREG(ulBase + MCASP_O_GBLCTL) = ulReg; in I2SGBLEnable()
105 while(HWREG(ulBase + MCASP_O_GBLCTL) != ulReg) in I2SGBLEnable()
128 void I2SEnable(unsigned long ulBase, unsigned long ulMode) in I2SEnable() argument
133 if( HWREG(ulBase + MCASP_O_ACLKXCTL) & 0x20) in I2SEnable()
138 HWREG(ulBase + MCASP_O_PDIR) |= 0x14000000; in I2SEnable()
147 I2SGBLEnable(ulBase, MCASP_GBL_RHCLK); in I2SEnable()
152 I2SGBLEnable(ulBase, MCASP_GBL_RCLK); in I2SEnable()
157 I2SGBLEnable(ulBase, MCASP_GBL_RSER); in I2SEnable()
162 I2SGBLEnable(ulBase, MCASP_GBL_RSM); in I2SEnable()
167 I2SGBLEnable(ulBase, MCASP_GBL_RFSYNC); in I2SEnable()
174 I2SGBLEnable(ulBase, MCASP_GBL_XHCLK); in I2SEnable()
179 I2SGBLEnable(ulBase, MCASP_GBL_XCLK); in I2SEnable()
187 I2SGBLEnable(ulBase, MCASP_GBL_XSER); in I2SEnable()
192 I2SGBLEnable(ulBase, MCASP_GBL_XSM); in I2SEnable()
198 I2SGBLEnable(ulBase, MCASP_GBL_XFSYNC); in I2SEnable()
212 void I2SDisable(unsigned long ulBase) in I2SDisable() argument
217 HWREG(ulBase + MCASP_O_GBLCTL) = 0; in I2SDisable()
222 while( HWREG(ulBase + MCASP_O_GBLCTL) != 0) in I2SDisable()
243 void I2SDataPut(unsigned long ulBase, unsigned long ulDataLine, in I2SDataPut() argument
254 while(!( HWREG(ulBase + MCASP_O_TXSTAT) & MCASP_TXSTAT_XDATA)) in I2SDataPut()
262 HWREG(ulBase + MCASP_O_TXBUF0 + ulDataLine) = ulData; in I2SDataPut()
281 long I2SDataPutNonBlocking(unsigned long ulBase, unsigned long ulDataLine, in I2SDataPutNonBlocking() argument
293 if( HWREG(ulBase + MCASP_O_TXSTAT) & MCASP_TXSTAT_XDATA) in I2SDataPutNonBlocking()
298 HWREG(ulBase + MCASP_O_TXBUF0 + ulDataLine) = ulData; in I2SDataPutNonBlocking()
323 void I2SDataGet(unsigned long ulBase, unsigned long ulDataLine, in I2SDataGet() argument
335 while(!(HWREG(ulBase + MCASP_O_RXSTAT) & MCASP_RXSTAT_RDATA)) in I2SDataGet()
343 *pulData = HWREG(ulBase + MCASP_O_RXBUF0 + ulDataLine); in I2SDataGet()
362 long I2SDataGetNonBlocking(unsigned long ulBase, unsigned long ulDataLine, in I2SDataGetNonBlocking() argument
374 if(HWREG(ulBase + MCASP_O_RXSTAT) & MCASP_RXSTAT_RDATA) in I2SDataGetNonBlocking()
379 *pulData = HWREG(ulBase + MCASP_O_RXBUF0 + ulDataLine); in I2SDataGetNonBlocking()
421 void I2SConfigSetExpClk(unsigned long ulBase, unsigned long ulI2SClk, in I2SConfigSetExpClk() argument
453 HWREG(ulBase + MCASP_O_ACLKXCTL) = ulClkDiv; in I2SConfigSetExpClk()
455 HWREG(ulBase + MCASP_O_AHCLKXCTL) = (0x8000|ulHClkDiv); in I2SConfigSetExpClk()
460 HWREG(ulBase + MCASP_O_TXFMT) = (0x18000 | (ulConfig & 0x7FFF)); in I2SConfigSetExpClk()
465 HWREG(ulBase + MCASP_O_RXFMT) = (0x18000 | ((ulConfig >> 16) &0x7FFF)); in I2SConfigSetExpClk()
475 HWREG(ulBase + MCASP_O_TXFMCTL) = 0x111; in I2SConfigSetExpClk()
480 HWREG(ulBase + MCASP_O_RXFMCTL) = 0x111; in I2SConfigSetExpClk()
487 HWREG(ulBase + MCASP_O_TXFMCTL) = 0x113; in I2SConfigSetExpClk()
492 HWREG(ulBase + MCASP_O_RXFMCTL) = 0x113; in I2SConfigSetExpClk()
508 HWREG(ulBase + MCASP_O_TXMASK) = ulBitMask; in I2SConfigSetExpClk()
513 HWREG(ulBase + MCASP_O_RXMASK) = ulBitMask; in I2SConfigSetExpClk()
518 HWREG(ulBase + MCASP_O_TXTDM) = 0x3; in I2SConfigSetExpClk()
523 HWREG(ulBase + MCASP_O_RXTDM) = 0x3; in I2SConfigSetExpClk()
547 void I2STxFIFOEnable(unsigned long ulBase, unsigned long ulTxLevel, in I2STxFIFOEnable() argument
554 HWREG(ulBase + MCASP_0_WFIFOCTL) = ((1 <<16) | ((ulTxLevel & 0xFF) << 8) in I2STxFIFOEnable()
570 void I2STxFIFODisable(unsigned long ulBase) in I2STxFIFODisable() argument
575 HWREG(ulBase + MCASP_0_WFIFOCTL) = 0; in I2STxFIFODisable()
599 void I2SRxFIFOEnable(unsigned long ulBase, unsigned long ulRxLevel, in I2SRxFIFOEnable() argument
605 HWREG(ulBase + MCASP_0_RFIFOCTL) = ( (1 <<16) | ((ulRxLevel & 0xFF) << 8) in I2SRxFIFOEnable()
621 void I2SRxFIFODisable(unsigned long ulBase) in I2SRxFIFODisable() argument
626 HWREG(ulBase + MCASP_0_RFIFOCTL) = 0; in I2SRxFIFODisable()
641 unsigned long I2STxFIFOStatusGet(unsigned long ulBase) in I2STxFIFOStatusGet() argument
646 return HWREG(ulBase + MCASP_0_WFIFOSTS); in I2STxFIFOStatusGet()
661 unsigned long I2SRxFIFOStatusGet(unsigned long ulBase) in I2SRxFIFOStatusGet() argument
666 return HWREG(ulBase + MCASP_0_RFIFOSTS); in I2SRxFIFOStatusGet()
699 void I2SSerializerConfig(unsigned long ulBase, unsigned long ulDataLine, in I2SSerializerConfig() argument
707 HWREG(ulBase + MCASP_O_PDIR) |= ulDataLine; in I2SSerializerConfig()
714 HWREG(ulBase + MCASP_O_PDIR) &= ~ulDataLine; in I2SSerializerConfig()
720 HWREG(ulBase + MCASP_O_XRSRCTL0 + ((ulDataLine-1) << 2)) in I2SSerializerConfig()
753 void I2SIntEnable(unsigned long ulBase, unsigned long ulIntFlags) in I2SIntEnable() argument
765 HWREG(ulBase + MCASP_O_EVTCTLX) |= (ulIntFlags & 0xFF); in I2SIntEnable()
770 HWREG(ulBase + MCASP_O_EVTCTLR) |= ((ulIntFlags >> 16) & 0xFF); in I2SIntEnable()
790 void I2SIntDisable(unsigned long ulBase, unsigned long ulIntFlags) in I2SIntDisable() argument
801 HWREG(ulBase + MCASP_O_EVTCTLX) &= ~(ulIntFlags & 0xFF); in I2SIntDisable()
806 HWREG(ulBase + MCASP_O_EVTCTLR) &= ~((ulIntFlags >> 16) & 0xFF); in I2SIntDisable()
839 unsigned long I2SIntStatus(unsigned long ulBase) in I2SIntStatus() argument
854 ulStatus |= HWREG(ulBase + MCASP_O_TXSTAT); in I2SIntStatus()
859 ulStatus |= HWREG(ulBase + MCASP_O_RXSTAT) << 16; in I2SIntStatus()
884 void I2SIntClear(unsigned long ulBase, unsigned long ulStatFlags) in I2SIntClear() argument
895 HWREG(ulBase + MCASP_O_TXSTAT) = ulStatFlags & 0x1FF ; in I2SIntClear()
900 HWREG(ulBase + MCASP_O_RXSTAT) = (ulStatFlags >> 16) & 0x1FF; in I2SIntClear()
922 void I2SIntRegister(unsigned long ulBase, void (*pfnHandler)(void)) in I2SIntRegister() argument
952 void I2SIntUnregister(unsigned long ulBase) in I2SIntUnregister() argument
982 void I2STxActiveSlotSet(unsigned long ulBase, unsigned long ulActSlot) in I2STxActiveSlotSet() argument
984 HWREG(ulBase + MCASP_O_TXTDM) = ulActSlot; in I2STxActiveSlotSet()
1003 void I2SRxActiveSlotSet(unsigned long ulBase, unsigned long ulActSlot) in I2SRxActiveSlotSet() argument
1005 HWREG(ulBase + MCASP_O_RXTDM) = ulActSlot; in I2SRxActiveSlotSet()