|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
/*
|
|
|
|
|
* $Id$
|
|
|
|
|
*
|
|
|
|
|
* XScale PXA250/PXA210 SSP Registers
|
|
|
|
|
* XScale PXA26x/PXA250/PXA210 SSP/NSSP/ASSP Registers
|
|
|
|
|
* Copyright (C) 2002 ETC s.r.o.
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
@ -33,6 +33,8 @@
|
|
|
|
|
* Documentation:
|
|
|
|
|
* [1] Intel Corporation, "Intel PXA250 and PXA210 Application Processors
|
|
|
|
|
* Developer's Manual", February 2002, Order Number: 278522-001
|
|
|
|
|
* [2] Intel Corporation, "Intel PXA26x Processor Family Developer's Manual",
|
|
|
|
|
* October 2002, Order Number: 278638-001
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -45,28 +47,77 @@
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(PXA2X0_NOPXA250) && !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
#define PXA2X0_NOPXA26X
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* SSP Registers */
|
|
|
|
|
|
|
|
|
|
#define SSP_BASE 0x41000000
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
#define NSSP_BASE 0x41400000
|
|
|
|
|
#define ASSP_BASE 0x41500000
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
|
|
|
|
|
#if LANGUAGE == C
|
|
|
|
|
/* see Table 8-7 in [1] */
|
|
|
|
|
/* see Table 8-7 in [1], Table 8-7 in [2], Table 16-10 in [2], Table 16-11 in [2] */
|
|
|
|
|
typedef volatile struct SSP_registers {
|
|
|
|
|
uint32_t sscr0;
|
|
|
|
|
uint32_t sscr1;
|
|
|
|
|
uint32_t sssr;
|
|
|
|
|
#if defined(PXA2X0_NOPXA26X)
|
|
|
|
|
uint32_t __reserved;
|
|
|
|
|
#else /* PXA26x only */
|
|
|
|
|
uint32_t xssitr; /* only for NSSP/ASSP */
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
uint32_t ssdr;
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
uint32_t __reserved[5];
|
|
|
|
|
uint32_t xssto; /* only for NSSP/ASSP */
|
|
|
|
|
uint32_t xsspsp; /* only for NSSP/ASSP */
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
} SSP_registers_t;
|
|
|
|
|
|
|
|
|
|
#ifdef PXA2X0_UNMAPPED
|
|
|
|
|
#define SSP_pointer ((SSP_registers_t*) SSP_BASE)
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
#define NSSP_pointer ((SSP_registers_t*) NSSP_BASE)
|
|
|
|
|
#define ASSP_pointer ((SSP_registers_t*) ASSP_BASE)
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define SSCR0 SSP_pointer->sscr0
|
|
|
|
|
#define SSCR1 SSP_pointer->sscr1
|
|
|
|
|
#define SSSR SSP_pointer->sssr
|
|
|
|
|
#define SSDR SSP_pointer->ssdr
|
|
|
|
|
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
#define NSSCR0 NSSP_pointer->sscr0
|
|
|
|
|
#define NSSCR1 NSSP_pointer->sscr1
|
|
|
|
|
#define NSSSR NSSP_pointer->sssr
|
|
|
|
|
#define NSSITR NSSP_pointer->xssitr
|
|
|
|
|
#define NSSDR NSSP_pointer->ssdr
|
|
|
|
|
#define NSSPTO NSSP_pointer->xsspto
|
|
|
|
|
#define NSSPSP NSSP_pointer->xsspsp
|
|
|
|
|
|
|
|
|
|
#define ASSCR0 ASSP_pointer->sscr0
|
|
|
|
|
#define ASSCR1 ASSP_pointer->sscr1
|
|
|
|
|
#define ASSSR ASSP_pointer->sssr
|
|
|
|
|
#define ASSITR ASSP_pointer->xssitr
|
|
|
|
|
#define ASSDR ASSP_pointer->ssdr
|
|
|
|
|
#define ASSPTO ASSP_pointer->xsspto
|
|
|
|
|
#define ASSPSP ASSP_pointer->xsspsp
|
|
|
|
|
|
|
|
|
|
/* common for NSSP/ASSP */
|
|
|
|
|
|
|
|
|
|
#define XSSCR0 XSSP_pointer->sscr0
|
|
|
|
|
#define XSSCR1 XSSP_pointer->sscr1
|
|
|
|
|
#define XSSSR XSSP_pointer->sssr
|
|
|
|
|
#define XSSITR XSSP_pointer->xssitr
|
|
|
|
|
#define XSSDR XSSP_pointer->ssdr
|
|
|
|
|
#define XSSPTO XSSP_pointer->xsspto
|
|
|
|
|
#define XSSPSP XSSP_pointer->xsspsp
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
#endif /* LANGUAGE == C */
|
|
|
|
|
|
|
|
|
|
#define SSCR0_OFFSET 0x00
|
|
|
|
@ -74,7 +125,35 @@ typedef volatile struct SSP_registers {
|
|
|
|
|
#define SSSR_OFFSET 0x08
|
|
|
|
|
#define SSDR_OFFSET 0x10
|
|
|
|
|
|
|
|
|
|
/* SSCR0 bits - see Table 8-2 in [1] */
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
#define NSSCR0_OFFSET 0x00
|
|
|
|
|
#define NSSCR1_OFFSET 0x04
|
|
|
|
|
#define NSSSR_OFFSET 0x08
|
|
|
|
|
#define NSSITR_OFFSET 0x0C
|
|
|
|
|
#define NSSDR_OFFSET 0x10
|
|
|
|
|
#define NSSTO_OFFSET 0x28
|
|
|
|
|
#define NSSPSP_OFFSET 0x2C
|
|
|
|
|
|
|
|
|
|
#define ASSCR0_OFFSET 0x00
|
|
|
|
|
#define ASSCR1_OFFSET 0x04
|
|
|
|
|
#define ASSSR_OFFSET 0x08
|
|
|
|
|
#define ASSITR_OFFSET 0x0C
|
|
|
|
|
#define ASSDR_OFFSET 0x10
|
|
|
|
|
#define ASSTO_OFFSET 0x28
|
|
|
|
|
#define ASSPSP_OFFSET 0x2C
|
|
|
|
|
|
|
|
|
|
/* common for NSSP/ASSP */
|
|
|
|
|
|
|
|
|
|
#define XSSCR0_OFFSET 0x00
|
|
|
|
|
#define XSSCR1_OFFSET 0x04
|
|
|
|
|
#define XSSSR_OFFSET 0x08
|
|
|
|
|
#define XSSITR_OFFSET 0x0C
|
|
|
|
|
#define XSSDR_OFFSET 0x10
|
|
|
|
|
#define XSSTO_OFFSET 0x28
|
|
|
|
|
#define XSSPSP_OFFSET 0x2C
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
|
|
|
|
|
/* SSCR0 bits - see Table 8-2 in [1], Table 8-2 in [2] */
|
|
|
|
|
|
|
|
|
|
#define SSCR0_SCR_MASK bits(15,8)
|
|
|
|
|
#define SSCR0_SCR(x) bits_val(15,8,x)
|
|
|
|
@ -85,7 +164,7 @@ typedef volatile struct SSP_registers {
|
|
|
|
|
#define SSCR0_DSS_MASK bits(3,0)
|
|
|
|
|
#define SSCR0_DSS(x) bits_val(3,0,x)
|
|
|
|
|
|
|
|
|
|
/* SSCR1 bits - see Table 8-3 in [1] */
|
|
|
|
|
/* SSCR1 bits - see Table 8-3 in [1], Table 8-3 in [2] */
|
|
|
|
|
|
|
|
|
|
#define SSCR1_RFT_MASK bits(13,10)
|
|
|
|
|
#define SSCR1_RFT(x) bits_val(13,10,x)
|
|
|
|
@ -98,7 +177,7 @@ typedef volatile struct SSP_registers {
|
|
|
|
|
#define SSCR1_TIE bit(1)
|
|
|
|
|
#define SSCR1_RIE bit(0)
|
|
|
|
|
|
|
|
|
|
/* SSSR bits - see Table 8-6 in [1] */
|
|
|
|
|
/* SSSR bits - see Table 8-6 in [1], Table 8-6 in [2] */
|
|
|
|
|
|
|
|
|
|
#define SSSR_RFL_MASK bits(15,12)
|
|
|
|
|
#define SSSR_RFL(x) bits_val(15,12,x)
|
|
|
|
@ -111,4 +190,225 @@ typedef volatile struct SSP_registers {
|
|
|
|
|
#define SSSR_RNE bit(3)
|
|
|
|
|
#define SSSR_TNF bit(2)
|
|
|
|
|
|
|
|
|
|
#if !defined(PXA2X0_NOPXA26X)
|
|
|
|
|
/* NSSCR0/ASSCR0 bits - see Table 16-3 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSCR0_EDSS bit(20)
|
|
|
|
|
#define NSSCR0_SCR_MASK bits(19,8)
|
|
|
|
|
#define NSSCR0_SCR(x) bits_val(19,8,x)
|
|
|
|
|
#define NSSCR0_SSE bit(7)
|
|
|
|
|
#define NSSCR0_FRF_MASK bits(5,4)
|
|
|
|
|
#define NSSCR0_FRF(x) bits_val(5,4,x)
|
|
|
|
|
#define NSSCR0_DSS_MASK bits(3,0)
|
|
|
|
|
#define NSSCR0_DSS(x) bits_val(3,0,x)
|
|
|
|
|
|
|
|
|
|
#define ASSCR0_EDSS bit(20)
|
|
|
|
|
#define ASSCR0_SCR_MASK bits(19,8)
|
|
|
|
|
#define ASSCR0_SCR(x) bits_val(19,8,x)
|
|
|
|
|
#define ASSCR0_SSE bit(7)
|
|
|
|
|
#define ASSCR0_FRF_MASK bits(5,4)
|
|
|
|
|
#define ASSCR0_FRF(x) bits_val(5,4,x)
|
|
|
|
|
#define ASSCR0_DSS_MASK bits(3,0)
|
|
|
|
|
#define ASSCR0_DSS(x) bits_val(3,0,x)
|
|
|
|
|
|
|
|
|
|
#define XSSCR0_EDSS bit(20)
|
|
|
|
|
#define XSSCR0_SCR_MASK bits(19,8)
|
|
|
|
|
#define XSSCR0_SCR(x) bits_val(19,8,x)
|
|
|
|
|
#define XSSCR0_SSE bit(7)
|
|
|
|
|
#define XSSCR0_FRF_MASK bits(5,4)
|
|
|
|
|
#define XSSCR0_FRF(x) bits_val(5,4,x)
|
|
|
|
|
#define XSSCR0_DSS_MASK bits(3,0)
|
|
|
|
|
#define XSSCR0_DSS(x) bits_val(3,0,x)
|
|
|
|
|
|
|
|
|
|
/* NSSCR1/ASSCR1 bits - see Table 16-4 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSCR1_TTELP bit(31)
|
|
|
|
|
#define NSSCR1_TTE bit(30)
|
|
|
|
|
#define NSSCR1_EBCEI bit(29)
|
|
|
|
|
#define NSSCR1_SCFR bit(28)
|
|
|
|
|
#define NSSCR1_SCLKDIR bit(25)
|
|
|
|
|
#define NSSCR1_SFRMDIR bit(24)
|
|
|
|
|
#define NSSCR1_RWOT bit(23)
|
|
|
|
|
#define NSSCR1_TSRE bit(21)
|
|
|
|
|
#define NSSCR1_RSRE bit(20)
|
|
|
|
|
#define NSSCR1_TINTE bit(19)
|
|
|
|
|
#define NSSCR1_STRF bit(15)
|
|
|
|
|
#define NSSCR1_EFWR bit(14)
|
|
|
|
|
#define NSSCR1_RFT_MASK bits(13,10)
|
|
|
|
|
#define NSSCR1_RFT(x) bits_val(13,10,x)
|
|
|
|
|
#define NSSCR1_TFT_MASK bits(9,6)
|
|
|
|
|
#define NSSCR1_TFT(x) bits_val(9,6,x)
|
|
|
|
|
#define NSSCR1_MWDS bit(5)
|
|
|
|
|
#define NSSCR1_SPH bit(4)
|
|
|
|
|
#define NSSCR1_SPO bit(3)
|
|
|
|
|
#define NSSCR1_LBM bit(2)
|
|
|
|
|
#define NSSCR1_TIE bit(1)
|
|
|
|
|
#define NSSCR1_RIE bit(0)
|
|
|
|
|
|
|
|
|
|
#define ASSCR1_TTELP bit(31)
|
|
|
|
|
#define ASSCR1_TTE bit(30)
|
|
|
|
|
#define ASSCR1_EBCEI bit(29)
|
|
|
|
|
#define ASSCR1_SCFR bit(28)
|
|
|
|
|
#define ASSCR1_SCLKDIR bit(25)
|
|
|
|
|
#define ASSCR1_SFRMDIR bit(24)
|
|
|
|
|
#define ASSCR1_RWOT bit(23)
|
|
|
|
|
#define ASSCR1_TSRE bit(21)
|
|
|
|
|
#define ASSCR1_RSRE bit(20)
|
|
|
|
|
#define ASSCR1_TINTE bit(19)
|
|
|
|
|
#define ASSCR1_STRF bit(15)
|
|
|
|
|
#define ASSCR1_EFWR bit(14)
|
|
|
|
|
#define ASSCR1_RFT_MASK bits(13,10)
|
|
|
|
|
#define ASSCR1_RFT(x) bits_val(13,10,x)
|
|
|
|
|
#define ASSCR1_TFT_MASK bits(9,6)
|
|
|
|
|
#define ASSCR1_TFT(x) bits_val(9,6,x)
|
|
|
|
|
#define ASSCR1_MWDS bit(5)
|
|
|
|
|
#define ASSCR1_SPH bit(4)
|
|
|
|
|
#define ASSCR1_SPO bit(3)
|
|
|
|
|
#define ASSCR1_LBM bit(2)
|
|
|
|
|
#define ASSCR1_TIE bit(1)
|
|
|
|
|
#define ASSCR1_RIE bit(0)
|
|
|
|
|
|
|
|
|
|
#define XSSCR1_TTELP bit(31)
|
|
|
|
|
#define XSSCR1_TTE bit(30)
|
|
|
|
|
#define XSSCR1_EBCEI bit(29)
|
|
|
|
|
#define XSSCR1_SCFR bit(28)
|
|
|
|
|
#define XSSCR1_SCLKDIR bit(25)
|
|
|
|
|
#define XSSCR1_SFRMDIR bit(24)
|
|
|
|
|
#define XSSCR1_RWOT bit(23)
|
|
|
|
|
#define XSSCR1_TSRE bit(21)
|
|
|
|
|
#define XSSCR1_RSRE bit(20)
|
|
|
|
|
#define XSSCR1_TINTE bit(19)
|
|
|
|
|
#define XSSCR1_STRF bit(15)
|
|
|
|
|
#define XSSCR1_EFWR bit(14)
|
|
|
|
|
#define XSSCR1_RFT_MASK bits(13,10)
|
|
|
|
|
#define XSSCR1_RFT(x) bits_val(13,10,x)
|
|
|
|
|
#define XSSCR1_TFT_MASK bits(9,6)
|
|
|
|
|
#define XSSCR1_TFT(x) bits_val(9,6,x)
|
|
|
|
|
#define XSSCR1_MWDS bit(5)
|
|
|
|
|
#define XSSCR1_SPH bit(4)
|
|
|
|
|
#define XSSCR1_SPO bit(3)
|
|
|
|
|
#define XSSCR1_LBM bit(2)
|
|
|
|
|
#define XSSCR1_TIE bit(1)
|
|
|
|
|
#define XSSCR1_RIE bit(0)
|
|
|
|
|
|
|
|
|
|
/* NSSITR/ASSITR bits - see Table 16-7 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSITR_TROR bit(7)
|
|
|
|
|
#define NSSITR_TRFS bit(6)
|
|
|
|
|
#define NSSITR_TTFS bit(5)
|
|
|
|
|
|
|
|
|
|
#define ASSITR_TROR bit(7)
|
|
|
|
|
#define ASSITR_TRFS bit(6)
|
|
|
|
|
#define ASSITR_TTFS bit(5)
|
|
|
|
|
|
|
|
|
|
#define XSSITR_TROR bit(7)
|
|
|
|
|
#define XSSITR_TRFS bit(6)
|
|
|
|
|
#define XSSITR_TTFS bit(5)
|
|
|
|
|
|
|
|
|
|
/* NSSSR/ASSSR bits - see Table 16-8 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSSR_BCE bit(23)
|
|
|
|
|
#define NSSSR_CSS bit(22)
|
|
|
|
|
#define NSSSR_TUR bit(21)
|
|
|
|
|
#define NSSSR_TINT bit(19)
|
|
|
|
|
#define NSSSR_RFL_MASK bits(15,12)
|
|
|
|
|
#define NSSSR_RFL(x) bits_val(15,12,x)
|
|
|
|
|
#define NSSSR_TFL_MASK bits(11,8)
|
|
|
|
|
#define NSSSR_TFL(x) bits_val(11,8,x)
|
|
|
|
|
#define NSSSR_ROR bit(7)
|
|
|
|
|
#define NSSSR_RFS bit(6)
|
|
|
|
|
#define NSSSR_TFS bit(5)
|
|
|
|
|
#define NSSSR_BSY bit(4)
|
|
|
|
|
#define NSSSR_RNE bit(3)
|
|
|
|
|
#define NSSSR_TNF bit(2)
|
|
|
|
|
|
|
|
|
|
#define ASSSR_BCE bit(23)
|
|
|
|
|
#define ASSSR_CSS bit(22)
|
|
|
|
|
#define ASSSR_TUR bit(21)
|
|
|
|
|
#define ASSSR_TINT bit(19)
|
|
|
|
|
#define ASSSR_RFL_MASK bits(15,12)
|
|
|
|
|
#define ASSSR_RFL(x) bits_val(15,12,x)
|
|
|
|
|
#define ASSSR_TFL_MASK bits(11,8)
|
|
|
|
|
#define ASSSR_TFL(x) bits_val(11,8,x)
|
|
|
|
|
#define ASSSR_ROR bit(7)
|
|
|
|
|
#define ASSSR_RFS bit(6)
|
|
|
|
|
#define ASSSR_TFS bit(5)
|
|
|
|
|
#define ASSSR_BSY bit(4)
|
|
|
|
|
#define ASSSR_RNE bit(3)
|
|
|
|
|
#define ASSSR_TNF bit(2)
|
|
|
|
|
|
|
|
|
|
#define XSSSR_BCE bit(23)
|
|
|
|
|
#define XSSSR_CSS bit(22)
|
|
|
|
|
#define XSSSR_TUR bit(21)
|
|
|
|
|
#define XSSSR_TINT bit(19)
|
|
|
|
|
#define XSSSR_RFL_MASK bits(15,12)
|
|
|
|
|
#define XSSSR_RFL(x) bits_val(15,12,x)
|
|
|
|
|
#define XSSSR_TFL_MASK bits(11,8)
|
|
|
|
|
#define XSSSR_TFL(x) bits_val(11,8,x)
|
|
|
|
|
#define XSSSR_ROR bit(7)
|
|
|
|
|
#define XSSSR_RFS bit(6)
|
|
|
|
|
#define XSSSR_TFS bit(5)
|
|
|
|
|
#define XSSSR_BSY bit(4)
|
|
|
|
|
#define XSSSR_RNE bit(3)
|
|
|
|
|
#define XSSSR_TNF bit(2)
|
|
|
|
|
|
|
|
|
|
/* NSSTO/ASSTO bits - see Table 16-6 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSTO_TIMEOUT_MASK bits(23,0)
|
|
|
|
|
#define NSSTO_TIMEOUT(x) bits_val(23,0,x)
|
|
|
|
|
|
|
|
|
|
#define ASSTO_TIMEOUT_MASK bits(23,0)
|
|
|
|
|
#define ASSTO_TIMEOUT(x) bits_val(23,0,x)
|
|
|
|
|
|
|
|
|
|
#define XSSTO_TIMEOUT_MASK bits(23,0)
|
|
|
|
|
#define XSSTO_TIMEOUT(x) bits_val(23,0,x)
|
|
|
|
|
|
|
|
|
|
/* NSSPSP/ASSPSP bits - see Table 16-5 in [2] */
|
|
|
|
|
|
|
|
|
|
#define NSSPSP_DMYSTOP_MASK bits(24,23)
|
|
|
|
|
#define NSSPSP_DMYSTOP(x) bits_val(24,23,x)
|
|
|
|
|
#define NSSPSP_SFRMWDTH_MASK bits(21,16)
|
|
|
|
|
#define NSSPSP_SFRMWDTH(x) bits_val(21,16,x)
|
|
|
|
|
#define NSSPSP_SFRMDLY_MASK bits(15,9)
|
|
|
|
|
#define NSSPSP_SFRMDLY(x) bits_val(15,9,x)
|
|
|
|
|
#define NSSPSP_DMYSTRT_MASK bits(8,7)
|
|
|
|
|
#define NSSPSP_DMYSTRT(x) bits_val(8,7,x)
|
|
|
|
|
#define NSSPSP_STRTDLY_MASK bits(6,4)
|
|
|
|
|
#define NSSPSP_STRTDLY(x) bits_val(6,4,x)
|
|
|
|
|
#define NSSPSP_ETDS bit(3)
|
|
|
|
|
#define NSSPSP_SFRMP bit(2)
|
|
|
|
|
#define NSSPSP_SCMODE_MASK bits(1,0)
|
|
|
|
|
#define NSSPSP_SCMODE(x) bits_val(1,0,x)
|
|
|
|
|
|
|
|
|
|
#define ASSPSP_DMYSTOP_MASK bits(24,23)
|
|
|
|
|
#define ASSPSP_DMYSTOP(x) bits_val(24,23,x)
|
|
|
|
|
#define ASSPSP_SFRMWDTH_MASK bits(21,16)
|
|
|
|
|
#define ASSPSP_SFRMWDTH(x) bits_val(21,16,x)
|
|
|
|
|
#define ASSPSP_SFRMDLY_MASK bits(15,9)
|
|
|
|
|
#define ASSPSP_SFRMDLY(x) bits_val(15,9,x)
|
|
|
|
|
#define ASSPSP_DMYSTRT_MASK bits(8,7)
|
|
|
|
|
#define ASSPSP_DMYSTRT(x) bits_val(8,7,x)
|
|
|
|
|
#define ASSPSP_STRTDLY_MASK bits(6,4)
|
|
|
|
|
#define ASSPSP_STRTDLY(x) bits_val(6,4,x)
|
|
|
|
|
#define ASSPSP_ETDS bit(3)
|
|
|
|
|
#define ASSPSP_SFRMP bit(2)
|
|
|
|
|
#define ASSPSP_SCMODE_MASK bits(1,0)
|
|
|
|
|
#define ASSPSP_SCMODE(x) bits_val(1,0,x)
|
|
|
|
|
|
|
|
|
|
#define XSSPSP_DMYSTOP_MASK bits(24,23)
|
|
|
|
|
#define XSSPSP_DMYSTOP(x) bits_val(24,23,x)
|
|
|
|
|
#define XSSPSP_SFRMWDTH_MASK bits(21,16)
|
|
|
|
|
#define XSSPSP_SFRMWDTH(x) bits_val(21,16,x)
|
|
|
|
|
#define XSSPSP_SFRMDLY_MASK bits(15,9)
|
|
|
|
|
#define XSSPSP_SFRMDLY(x) bits_val(15,9,x)
|
|
|
|
|
#define XSSPSP_DMYSTRT_MASK bits(8,7)
|
|
|
|
|
#define XSSPSP_DMYSTRT(x) bits_val(8,7,x)
|
|
|
|
|
#define XSSPSP_STRTDLY_MASK bits(6,4)
|
|
|
|
|
#define XSSPSP_STRTDLY(x) bits_val(6,4,x)
|
|
|
|
|
#define XSSPSP_ETDS bit(3)
|
|
|
|
|
#define XSSPSP_SFRMP bit(2)
|
|
|
|
|
#define XSSPSP_SCMODE_MASK bits(1,0)
|
|
|
|
|
#define XSSPSP_SCMODE(x) bits_val(1,0,x)
|
|
|
|
|
#endif /* PXA26x only */
|
|
|
|
|
|
|
|
|
|
#endif /* PXA2X0_SSP_H */
|
|
|
|
|