Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tx4939.h File Reference
#include <asm/txx9/tx4938.h>

Go to the source code of this file.

Data Structures

struct  tx4939_le_reg
 
struct  tx4939_ddrc_reg
 
struct  tx4939_ccfg_reg
 
struct  tx4939_irc_reg
 
struct  tx4939_rtc_reg
 
struct  tx4939_crypto_reg
 
struct  tx4939_crypto_desc
 
struct  tx4939_vpc_reg
 
struct  tx4939_vpc_desc
 

Macros

#define TX4939_REG_BASE   0xff1f0000UL /* == TX4938_REG_BASE */
 
#define TX4939_REG_SIZE   0x00010000 /* == TX4938_REG_SIZE */
 
#define TX4939_ATA_REG(ch)   (TX4939_REG_BASE + 0x3000 + (ch) * 0x1000)
 
#define TX4939_NDFMC_REG   (TX4939_REG_BASE + 0x5000)
 
#define TX4939_SRAMC_REG   (TX4939_REG_BASE + 0x6000)
 
#define TX4939_CRYPTO_REG   (TX4939_REG_BASE + 0x6800)
 
#define TX4939_PCIC1_REG   (TX4939_REG_BASE + 0x7000)
 
#define TX4939_DDRC_REG   (TX4939_REG_BASE + 0x8000)
 
#define TX4939_EBUSC_REG   (TX4939_REG_BASE + 0x9000)
 
#define TX4939_VPC_REG   (TX4939_REG_BASE + 0xa000)
 
#define TX4939_DMA_REG(ch)   (TX4939_REG_BASE + 0xb000 + (ch) * 0x800)
 
#define TX4939_PCIC_REG   (TX4939_REG_BASE + 0xd000)
 
#define TX4939_CCFG_REG   (TX4939_REG_BASE + 0xe000)
 
#define TX4939_IRC_REG   (TX4939_REG_BASE + 0xe800)
 
#define TX4939_NR_TMR   6 /* 0xf000,0xf100,0xf200,0xfd00,0xfe00,0xff00 */
 
#define TX4939_TMR_REG(ch)   (TX4939_REG_BASE + 0xf000 + ((ch) + ((ch) >= 3) * 10) * 0x100)
 
#define TX4939_NR_SIO   4 /* 0xf300, 0xf400, 0xf380, 0xf480 */
 
#define TX4939_SIO_REG(ch)   (TX4939_REG_BASE + 0xf300 + (((ch) & 1) << 8) + (((ch) & 2) << 6))
 
#define TX4939_ACLC_REG   (TX4939_REG_BASE + 0xf700)
 
#define TX4939_SPI_REG   (TX4939_REG_BASE + 0xf800)
 
#define TX4939_I2C_REG   (TX4939_REG_BASE + 0xf900)
 
#define TX4939_I2S_REG   (TX4939_REG_BASE + 0xfa00)
 
#define TX4939_RTC_REG   (TX4939_REG_BASE + 0xfb00)
 
#define TX4939_CIR_REG   (TX4939_REG_BASE + 0xfc00)
 
#define TX4939_RNG_REG   (TX4939_CRYPTO_REG + 0xb0)
 
#define TX4939_IR_NONE   0
 
#define TX4939_IR_DDR   1
 
#define TX4939_IR_WTOERR   2
 
#define TX4939_NUM_IR_INT   3
 
#define TX4939_IR_INT(n)   (3 + (n))
 
#define TX4939_NUM_IR_ETH   2
 
#define TX4939_IR_ETH(n)   ((n) ? 43 : 6)
 
#define TX4939_IR_VIDEO   7
 
#define TX4939_IR_CIR   8
 
#define TX4939_NUM_IR_SIO   4
 
#define TX4939_IR_SIO(n)   ((n) ? 43 + (n) : 9) /* 9,44-46 */
 
#define TX4939_NUM_IR_DMA   4
 
#define TX4939_IR_DMA(ch, n)   (((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */
 
#define TX4939_IR_IRC   14
 
#define TX4939_IR_PDMAC   15
 
#define TX4939_NUM_IR_TMR   6
 
#define TX4939_IR_TMR(n)   (((n) >= 3 ? 45 : 16) + (n)) /* 16-18,48-50 */
 
#define TX4939_NUM_IR_ATA   2
 
#define TX4939_IR_ATA(n)   (19 + (n))
 
#define TX4939_IR_ACLC   21
 
#define TX4939_IR_CIPHER   26
 
#define TX4939_IR_INTA   27
 
#define TX4939_IR_INTB   28
 
#define TX4939_IR_INTC   29
 
#define TX4939_IR_INTD   30
 
#define TX4939_IR_I2C   33
 
#define TX4939_IR_SPI   34
 
#define TX4939_IR_PCIC   35
 
#define TX4939_IR_PCIC1   36
 
#define TX4939_IR_PCIERR   37
 
#define TX4939_IR_PCIPME   38
 
#define TX4939_IR_NDFMC   39
 
#define TX4939_IR_ACLCPME   40
 
#define TX4939_IR_RTC   41
 
#define TX4939_IR_RND   42
 
#define TX4939_IR_I2S   47
 
#define TX4939_NUM_IR   64
 
#define TX4939_IRC_INT   2 /* IP[2] in Status register */
 
#define TX4939_CCFG_PCIBOOT   0x0000040000000000ULL
 
#define TX4939_CCFG_WDRST   0x0000020000000000ULL
 
#define TX4939_CCFG_WDREXEN   0x0000010000000000ULL
 
#define TX4939_CCFG_BCFG_MASK   0x000000ff00000000ULL
 
#define TX4939_CCFG_GTOT_MASK   0x06000000
 
#define TX4939_CCFG_GTOT_4096   0x06000000
 
#define TX4939_CCFG_GTOT_2048   0x04000000
 
#define TX4939_CCFG_GTOT_1024   0x02000000
 
#define TX4939_CCFG_GTOT_512   0x00000000
 
#define TX4939_CCFG_TINTDIS   0x01000000
 
#define TX4939_CCFG_PCI66   0x00800000
 
#define TX4939_CCFG_PCIMODE   0x00400000
 
#define TX4939_CCFG_SSCG   0x00100000
 
#define TX4939_CCFG_MULCLK_MASK   0x000e0000
 
#define TX4939_CCFG_MULCLK_8   (0x7 << 17)
 
#define TX4939_CCFG_MULCLK_9   (0x0 << 17)
 
#define TX4939_CCFG_MULCLK_10   (0x1 << 17)
 
#define TX4939_CCFG_MULCLK_11   (0x2 << 17)
 
#define TX4939_CCFG_MULCLK_12   (0x3 << 17)
 
#define TX4939_CCFG_MULCLK_13   (0x4 << 17)
 
#define TX4939_CCFG_MULCLK_14   (0x5 << 17)
 
#define TX4939_CCFG_MULCLK_15   (0x6 << 17)
 
#define TX4939_CCFG_BEOW   0x00010000
 
#define TX4939_CCFG_WR   0x00008000
 
#define TX4939_CCFG_TOE   0x00004000
 
#define TX4939_CCFG_PCIARB   0x00002000
 
#define TX4939_CCFG_YDIVMODE_MASK   0x00001c00
 
#define TX4939_CCFG_YDIVMODE_2   (0x0 << 10)
 
#define TX4939_CCFG_YDIVMODE_3   (0x1 << 10)
 
#define TX4939_CCFG_YDIVMODE_5   (0x6 << 10)
 
#define TX4939_CCFG_YDIVMODE_6   (0x7 << 10)
 
#define TX4939_CCFG_PTSEL   0x00000200
 
#define TX4939_CCFG_BESEL   0x00000100
 
#define TX4939_CCFG_SYSSP_MASK   0x000000c0
 
#define TX4939_CCFG_ACKSEL   0x00000020
 
#define TX4939_CCFG_ROMW   0x00000010
 
#define TX4939_CCFG_ENDIAN   0x00000004
 
#define TX4939_CCFG_ARMODE   0x00000002
 
#define TX4939_CCFG_ACEHOLD   0x00000001
 
#define TX4939_PCFG_SIO2MODE_MASK   0xc000000000000000ULL
 
#define TX4939_PCFG_SIO2MODE_GPIO   0x8000000000000000ULL
 
#define TX4939_PCFG_SIO2MODE_SIO2   0x4000000000000000ULL
 
#define TX4939_PCFG_SIO2MODE_SIO0   0x0000000000000000ULL
 
#define TX4939_PCFG_SPIMODE   0x2000000000000000ULL
 
#define TX4939_PCFG_I2CMODE   0x1000000000000000ULL
 
#define TX4939_PCFG_I2SMODE_MASK   0x0c00000000000000ULL
 
#define TX4939_PCFG_I2SMODE_GPIO   0x0c00000000000000ULL
 
#define TX4939_PCFG_I2SMODE_I2S   0x0800000000000000ULL
 
#define TX4939_PCFG_I2SMODE_I2S_ALT   0x0400000000000000ULL
 
#define TX4939_PCFG_I2SMODE_ACLC   0x0000000000000000ULL
 
#define TX4939_PCFG_SIO3MODE   0x0200000000000000ULL
 
#define TX4939_PCFG_DMASEL3   0x0004000000000000ULL
 
#define TX4939_PCFG_DMASEL3_SIO0   0x0004000000000000ULL
 
#define TX4939_PCFG_DMASEL3_NDFC   0x0000000000000000ULL
 
#define TX4939_PCFG_VSSMODE   0x0000200000000000ULL
 
#define TX4939_PCFG_VPSMODE   0x0000100000000000ULL
 
#define TX4939_PCFG_ET1MODE   0x0000080000000000ULL
 
#define TX4939_PCFG_ET0MODE   0x0000040000000000ULL
 
#define TX4939_PCFG_ATA1MODE   0x0000020000000000ULL
 
#define TX4939_PCFG_ATA0MODE   0x0000010000000000ULL
 
#define TX4939_PCFG_BP_PLL   0x0000000100000000ULL
 
#define TX4939_PCFG_SYSCLKEN   0x08000000
 
#define TX4939_PCFG_PCICLKEN_ALL   0x000f0000
 
#define TX4939_PCFG_PCICLKEN(ch)   (0x00010000<<(ch))
 
#define TX4939_PCFG_SPEED1   0x00002000
 
#define TX4939_PCFG_SPEED0   0x00001000
 
#define TX4939_PCFG_ITMODE   0x00000300
 
#define TX4939_PCFG_DMASEL_ALL   (0x00000007 | TX4939_PCFG_DMASEL3)
 
#define TX4939_PCFG_DMASEL2   0x00000004
 
#define TX4939_PCFG_DMASEL2_DRQ2   0x00000000
 
#define TX4939_PCFG_DMASEL2_SIO0   0x00000004
 
#define TX4939_PCFG_DMASEL1   0x00000002
 
#define TX4939_PCFG_DMASEL1_DRQ1   0x00000000
 
#define TX4939_PCFG_DMASEL0   0x00000001
 
#define TX4939_PCFG_DMASEL0_DRQ0   0x00000000
 
#define TX4939_CLKCTR_IOSCKD   0x8000000000000000ULL
 
#define TX4939_CLKCTR_SYSCKD   0x4000000000000000ULL
 
#define TX4939_CLKCTR_TM5CKD   0x2000000000000000ULL
 
#define TX4939_CLKCTR_TM4CKD   0x1000000000000000ULL
 
#define TX4939_CLKCTR_TM3CKD   0x0800000000000000ULL
 
#define TX4939_CLKCTR_CIRCKD   0x0400000000000000ULL
 
#define TX4939_CLKCTR_SIO3CKD   0x0200000000000000ULL
 
#define TX4939_CLKCTR_SIO2CKD   0x0100000000000000ULL
 
#define TX4939_CLKCTR_SIO1CKD   0x0080000000000000ULL
 
#define TX4939_CLKCTR_VPCCKD   0x0040000000000000ULL
 
#define TX4939_CLKCTR_EPCICKD   0x0020000000000000ULL
 
#define TX4939_CLKCTR_ETH1CKD   0x0008000000000000ULL
 
#define TX4939_CLKCTR_ATA1CKD   0x0004000000000000ULL
 
#define TX4939_CLKCTR_BROMCKD   0x0002000000000000ULL
 
#define TX4939_CLKCTR_NDCCKD   0x0001000000000000ULL
 
#define TX4939_CLKCTR_I2CCKD   0x0000800000000000ULL
 
#define TX4939_CLKCTR_ETH0CKD   0x0000400000000000ULL
 
#define TX4939_CLKCTR_SPICKD   0x0000200000000000ULL
 
#define TX4939_CLKCTR_SRAMCKD   0x0000100000000000ULL
 
#define TX4939_CLKCTR_PCI1CKD   0x0000080000000000ULL
 
#define TX4939_CLKCTR_DMA1CKD   0x0000040000000000ULL
 
#define TX4939_CLKCTR_ACLCKD   0x0000020000000000ULL
 
#define TX4939_CLKCTR_ATA0CKD   0x0000010000000000ULL
 
#define TX4939_CLKCTR_DMA0CKD   0x0000008000000000ULL
 
#define TX4939_CLKCTR_PCICCKD   0x0000004000000000ULL
 
#define TX4939_CLKCTR_I2SCKD   0x0000002000000000ULL
 
#define TX4939_CLKCTR_TM0CKD   0x0000001000000000ULL
 
#define TX4939_CLKCTR_TM1CKD   0x0000000800000000ULL
 
#define TX4939_CLKCTR_TM2CKD   0x0000000400000000ULL
 
#define TX4939_CLKCTR_SIO0CKD   0x0000000200000000ULL
 
#define TX4939_CLKCTR_CYPCKD   0x0000000100000000ULL
 
#define TX4939_CLKCTR_IOSRST   0x80000000
 
#define TX4939_CLKCTR_SYSRST   0x40000000
 
#define TX4939_CLKCTR_TM5RST   0x20000000
 
#define TX4939_CLKCTR_TM4RST   0x10000000
 
#define TX4939_CLKCTR_TM3RST   0x08000000
 
#define TX4939_CLKCTR_CIRRST   0x04000000
 
#define TX4939_CLKCTR_SIO3RST   0x02000000
 
#define TX4939_CLKCTR_SIO2RST   0x01000000
 
#define TX4939_CLKCTR_SIO1RST   0x00800000
 
#define TX4939_CLKCTR_VPCRST   0x00400000
 
#define TX4939_CLKCTR_EPCIRST   0x00200000
 
#define TX4939_CLKCTR_ETH1RST   0x00080000
 
#define TX4939_CLKCTR_ATA1RST   0x00040000
 
#define TX4939_CLKCTR_BROMRST   0x00020000
 
#define TX4939_CLKCTR_NDCRST   0x00010000
 
#define TX4939_CLKCTR_I2CRST   0x00008000
 
#define TX4939_CLKCTR_ETH0RST   0x00004000
 
#define TX4939_CLKCTR_SPIRST   0x00002000
 
#define TX4939_CLKCTR_SRAMRST   0x00001000
 
#define TX4939_CLKCTR_PCI1RST   0x00000800
 
#define TX4939_CLKCTR_DMA1RST   0x00000400
 
#define TX4939_CLKCTR_ACLRST   0x00000200
 
#define TX4939_CLKCTR_ATA0RST   0x00000100
 
#define TX4939_CLKCTR_DMA0RST   0x00000080
 
#define TX4939_CLKCTR_PCICRST   0x00000040
 
#define TX4939_CLKCTR_I2SRST   0x00000020
 
#define TX4939_CLKCTR_TM0RST   0x00000010
 
#define TX4939_CLKCTR_TM1RST   0x00000008
 
#define TX4939_CLKCTR_TM2RST   0x00000004
 
#define TX4939_CLKCTR_SIO0RST   0x00000002
 
#define TX4939_CLKCTR_CYPRST   0x00000001
 
#define TX4939_RTCCTL_ALME   0x00000080
 
#define TX4939_RTCCTL_ALMD   0x00000040
 
#define TX4939_RTCCTL_BUSY   0x00000020
 
#define TX4939_RTCCTL_COMMAND   0x00000007
 
#define TX4939_RTCCTL_COMMAND_NOP   0x00000000
 
#define TX4939_RTCCTL_COMMAND_GETTIME   0x00000001
 
#define TX4939_RTCCTL_COMMAND_SETTIME   0x00000002
 
#define TX4939_RTCCTL_COMMAND_GETALARM   0x00000003
 
#define TX4939_RTCCTL_COMMAND_SETALARM   0x00000004
 
#define TX4939_RTCTBC_PM   0x00000080
 
#define TX4939_RTCTBC_COMP   0x0000007f
 
#define TX4939_RTC_REG_RAMSIZE   0x00000100
 
#define TX4939_RTC_REG_RWBSIZE   0x00000006
 
#define TX4939_CRYPTO_CSR_SAESO   0x08000000
 
#define TX4939_CRYPTO_CSR_SAESI   0x04000000
 
#define TX4939_CRYPTO_CSR_SDESO   0x02000000
 
#define TX4939_CRYPTO_CSR_SDESI   0x01000000
 
#define TX4939_CRYPTO_CSR_INDXBST_MASK   0x00700000
 
#define TX4939_CRYPTO_CSR_INDXBST(n)   ((n) << 20)
 
#define TX4939_CRYPTO_CSR_TOINT   0x00080000
 
#define TX4939_CRYPTO_CSR_DCINT   0x00040000
 
#define TX4939_CRYPTO_CSR_GBINT   0x00010000
 
#define TX4939_CRYPTO_CSR_INDXAST_MASK   0x0000e000
 
#define TX4939_CRYPTO_CSR_INDXAST(n)   ((n) << 13)
 
#define TX4939_CRYPTO_CSR_CSWAP_MASK   0x00001800
 
#define TX4939_CRYPTO_CSR_CSWAP_NONE   0x00000000
 
#define TX4939_CRYPTO_CSR_CSWAP_IN   0x00000800
 
#define TX4939_CRYPTO_CSR_CSWAP_OUT   0x00001000
 
#define TX4939_CRYPTO_CSR_CSWAP_BOTH   0x00001800
 
#define TX4939_CRYPTO_CSR_CDIV_MASK   0x00000600
 
#define TX4939_CRYPTO_CSR_CDIV_DIV2   0x00000000
 
#define TX4939_CRYPTO_CSR_CDIV_DIV1   0x00000200
 
#define TX4939_CRYPTO_CSR_CDIV_DIV2ALT   0x00000400
 
#define TX4939_CRYPTO_CSR_CDIV_DIV1ALT   0x00000600
 
#define TX4939_CRYPTO_CSR_PDINT_MASK   0x000000c0
 
#define TX4939_CRYPTO_CSR_PDINT_ALL   0x00000000
 
#define TX4939_CRYPTO_CSR_PDINT_END   0x00000040
 
#define TX4939_CRYPTO_CSR_PDINT_NEXT   0x00000080
 
#define TX4939_CRYPTO_CSR_PDINT_NONE   0x000000c0
 
#define TX4939_CRYPTO_CSR_GINTE   0x00000008
 
#define TX4939_CRYPTO_CSR_RSTD   0x00000004
 
#define TX4939_CRYPTO_CSR_RSTC   0x00000002
 
#define TX4939_CRYPTO_CSR_ENCR   0x00000001
 
#define TX4939_CRYPTO_CTX_ENGINE_MASK   0x00000003
 
#define TX4939_CRYPTO_CTX_ENGINE_DES   0x00000000
 
#define TX4939_CRYPTO_CTX_ENGINE_AES   0x00000001
 
#define TX4939_CRYPTO_CTX_ENGINE_MD5   0x00000002
 
#define TX4939_CRYPTO_CTX_ENGINE_SHA1   0x00000003
 
#define TX4939_CRYPTO_CTX_TDMS   0x00000010
 
#define TX4939_CRYPTO_CTX_CMS   0x00000020
 
#define TX4939_CRYPTO_CTX_DMS   0x00000040
 
#define TX4939_CRYPTO_CTX_UPDATE   0x00000080
 
#define TX4939_CRYPTO_DESC_OB_CNT_MASK   0xffe00000
 
#define TX4939_CRYPTO_DESC_OB_CNT(cnt)   ((cnt) << 21)
 
#define TX4939_CRYPTO_DESC_IB_CNT_MASK   0x001ffc00
 
#define TX4939_CRYPTO_DESC_IB_CNT(cnt)   ((cnt) << 10)
 
#define TX4939_CRYPTO_DESC_START   0x00000200
 
#define TX4939_CRYPTO_DESC_END   0x00000100
 
#define TX4939_CRYPTO_DESC_XOR   0x00000010
 
#define TX4939_CRYPTO_DESC_LAST   0x00000008
 
#define TX4939_CRYPTO_DESC_ERR_MASK   0x00000006
 
#define TX4939_CRYPTO_DESC_ERR_NONE   0x00000000
 
#define TX4939_CRYPTO_DESC_ERR_TOUT   0x00000002
 
#define TX4939_CRYPTO_DESC_ERR_DIGEST   0x00000004
 
#define TX4939_CRYPTO_DESC_OWN   0x00000001
 
#define TX4939_CRYPTO_DESC_HASH_IDX_MASK   0x00000070
 
#define TX4939_CRYPTO_DESC_HASH_IDX(idx)   ((idx) << 4)
 
#define TX4939_CRYPTO_DESC_ENCRYPT_IDX_MASK   0x00000007
 
#define TX4939_CRYPTO_DESC_ENCRYPT_IDX(idx)   ((idx) << 0)
 
#define TX4939_CRYPTO_NR_SET   6
 
#define TX4939_CRYPTO_RCSR_INTE   0x00000008
 
#define TX4939_CRYPTO_RCSR_RST   0x00000004
 
#define TX4939_CRYPTO_RCSR_FIN   0x00000002
 
#define TX4939_CRYPTO_RCSR_ST   0x00000001
 
#define TX4939_VPC_CSR_GBINT   0x00010000
 
#define TX4939_VPC_CSR_SWAPO   0x00000020
 
#define TX4939_VPC_CSR_SWAPI   0x00000010
 
#define TX4939_VPC_CSR_GINTE   0x00000008
 
#define TX4939_VPC_CSR_RSTD   0x00000004
 
#define TX4939_VPC_CSR_RSTVPC   0x00000002
 
#define TX4939_VPC_CTRLA_VDPSN   0x00000200
 
#define TX4939_VPC_CTRLA_PBUSY   0x00000100
 
#define TX4939_VPC_CTRLA_DCINT   0x00000080
 
#define TX4939_VPC_CTRLA_UOINT   0x00000040
 
#define TX4939_VPC_CTRLA_PDINT_MASK   0x00000030
 
#define TX4939_VPC_CTRLA_PDINT_ALL   0x00000000
 
#define TX4939_VPC_CTRLA_PDINT_NEXT   0x00000010
 
#define TX4939_VPC_CTRLA_PDINT_NONE   0x00000030
 
#define TX4939_VPC_CTRLA_VDVLDP   0x00000008
 
#define TX4939_VPC_CTRLA_VDMODE   0x00000004
 
#define TX4939_VPC_CTRLA_VDFOR   0x00000002
 
#define TX4939_VPC_CTRLA_ENVPC   0x00000001
 
#define TX4939_VPC_DESC_CTRL1_ERR_MASK   0x00000006
 
#define TX4939_VPC_DESC_CTRL1_OWN   0x00000001
 
#define tx4939_ddrcptr   ((struct tx4939_ddrc_reg __iomem *)TX4939_DDRC_REG)
 
#define tx4939_ebuscptr   tx4938_ebuscptr
 
#define tx4939_ircptr   ((struct tx4939_irc_reg __iomem *)TX4939_IRC_REG)
 
#define tx4939_pcicptr   tx4938_pcicptr
 
#define tx4939_pcic1ptr   tx4938_pcic1ptr
 
#define tx4939_ccfgptr   ((struct tx4939_ccfg_reg __iomem *)TX4939_CCFG_REG)
 
#define tx4939_sramcptr   tx4938_sramcptr
 
#define tx4939_rtcptr   ((struct tx4939_rtc_reg __iomem *)TX4939_RTC_REG)
 
#define tx4939_cryptoptr   ((struct tx4939_crypto_reg __iomem *)TX4939_CRYPTO_REG)
 
#define tx4939_vpcptr   ((struct tx4939_vpc_reg __iomem *)TX4939_VPC_REG)
 
#define TX4939_REV_MAJ_MIN()   ((__u32)__raw_readq(&tx4939_ccfgptr->crir) & 0x00ff)
 
#define TX4939_REV_PCODE()   ((__u32)__raw_readq(&tx4939_ccfgptr->crir) >> 16)
 
#define TX4939_CCFG_BCFG()
 
#define tx4939_ccfg_clear(bits)   tx4938_ccfg_clear(bits)
 
#define tx4939_ccfg_set(bits)   tx4938_ccfg_set(bits)
 
#define tx4939_ccfg_change(change, new)   tx4938_ccfg_change(change, new)
 
#define TX4939_EBUSC_CR(ch)   TX4927_EBUSC_CR(ch)
 
#define TX4939_EBUSC_BA(ch)   TX4927_EBUSC_BA(ch)
 
#define TX4939_EBUSC_SIZE(ch)   TX4927_EBUSC_SIZE(ch)
 
#define TX4939_EBUSC_WIDTH(ch)   (16 >> ((__u32)(TX4939_EBUSC_CR(ch) >> 20) & 0x1))
 
#define TX4939_SCLK0(mst)   ((((mst) + 245/2) / 245UL * 429 * 16 + 19) / 19 / 2)
 

Functions

void tx4939_wdt_init (void)
 
void tx4939_add_memory_regions (void)
 
void tx4939_setup (void)
 
void tx4939_time_init (unsigned int tmrnr)
 
void tx4939_sio_init (unsigned int sclk, unsigned int cts_mask)
 
void tx4939_spi_init (int busid)
 
void tx4939_ethaddr_init (unsigned char *addr0, unsigned char *addr1)
 
int tx4939_report_pciclk (void)
 
void tx4939_report_pci1clk (void)
 
int tx4939_pcic1_map_irq (const struct pci_dev *dev, u8 slot)
 
int tx4939_pci_map_irq (const struct pci_dev *dev, u8 slot, u8 pin)
 
void tx4939_setup_pcierr_irq (void)
 
void tx4939_irq_init (void)
 
int tx4939_irq (void)
 
void tx4939_mtd_init (int ch)
 
void tx4939_ata_init (void)
 
void tx4939_rtc_init (void)
 
void tx4939_ndfmc_init (unsigned int hold, unsigned int spw, unsigned char ch_mask, unsigned char wide_mask)
 
void tx4939_dmac_init (int memcpy_chan0, int memcpy_chan1)
 
void tx4939_aclc_init (void)
 
void tx4939_sramc_init (void)
 
void tx4939_rng_init (void)
 

Macro Definition Documentation

#define TX4939_ACLC_REG   (TX4939_REG_BASE + 0xf700)

Definition at line 41 of file tx4939.h.

#define TX4939_ATA_REG (   ch)    (TX4939_REG_BASE + 0x3000 + (ch) * 0x1000)

Definition at line 23 of file tx4939.h.

#define TX4939_CCFG_ACEHOLD   0x00000001

Definition at line 267 of file tx4939.h.

#define TX4939_CCFG_ACKSEL   0x00000020

Definition at line 263 of file tx4939.h.

#define TX4939_CCFG_ARMODE   0x00000002

Definition at line 266 of file tx4939.h.

#define TX4939_CCFG_BCFG ( )
Value:

Definition at line 511 of file tx4939.h.

#define TX4939_CCFG_BCFG_MASK   0x000000ff00000000ULL

Definition at line 232 of file tx4939.h.

#define TX4939_CCFG_BEOW   0x00010000

Definition at line 251 of file tx4939.h.

#define TX4939_CCFG_BESEL   0x00000100

Definition at line 261 of file tx4939.h.

#define tx4939_ccfg_change (   change,
  new 
)    tx4938_ccfg_change(change, new)

Definition at line 517 of file tx4939.h.

#define tx4939_ccfg_clear (   bits)    tx4938_ccfg_clear(bits)

Definition at line 515 of file tx4939.h.

#define TX4939_CCFG_ENDIAN   0x00000004

Definition at line 265 of file tx4939.h.

#define TX4939_CCFG_GTOT_1024   0x02000000

Definition at line 236 of file tx4939.h.

#define TX4939_CCFG_GTOT_2048   0x04000000

Definition at line 235 of file tx4939.h.

#define TX4939_CCFG_GTOT_4096   0x06000000

Definition at line 234 of file tx4939.h.

#define TX4939_CCFG_GTOT_512   0x00000000

Definition at line 237 of file tx4939.h.

#define TX4939_CCFG_GTOT_MASK   0x06000000

Definition at line 233 of file tx4939.h.

#define TX4939_CCFG_MULCLK_10   (0x1 << 17)

Definition at line 245 of file tx4939.h.

#define TX4939_CCFG_MULCLK_11   (0x2 << 17)

Definition at line 246 of file tx4939.h.

#define TX4939_CCFG_MULCLK_12   (0x3 << 17)

Definition at line 247 of file tx4939.h.

#define TX4939_CCFG_MULCLK_13   (0x4 << 17)

Definition at line 248 of file tx4939.h.

#define TX4939_CCFG_MULCLK_14   (0x5 << 17)

Definition at line 249 of file tx4939.h.

#define TX4939_CCFG_MULCLK_15   (0x6 << 17)

Definition at line 250 of file tx4939.h.

#define TX4939_CCFG_MULCLK_8   (0x7 << 17)

Definition at line 243 of file tx4939.h.

#define TX4939_CCFG_MULCLK_9   (0x0 << 17)

Definition at line 244 of file tx4939.h.

#define TX4939_CCFG_MULCLK_MASK   0x000e0000

Definition at line 242 of file tx4939.h.

#define TX4939_CCFG_PCI66   0x00800000

Definition at line 239 of file tx4939.h.

#define TX4939_CCFG_PCIARB   0x00002000

Definition at line 254 of file tx4939.h.

#define TX4939_CCFG_PCIBOOT   0x0000040000000000ULL

Definition at line 229 of file tx4939.h.

#define TX4939_CCFG_PCIMODE   0x00400000

Definition at line 240 of file tx4939.h.

#define TX4939_CCFG_PTSEL   0x00000200

Definition at line 260 of file tx4939.h.

#define TX4939_CCFG_REG   (TX4939_REG_BASE + 0xe000)

Definition at line 33 of file tx4939.h.

#define TX4939_CCFG_ROMW   0x00000010

Definition at line 264 of file tx4939.h.

#define tx4939_ccfg_set (   bits)    tx4938_ccfg_set(bits)

Definition at line 516 of file tx4939.h.

#define TX4939_CCFG_SSCG   0x00100000

Definition at line 241 of file tx4939.h.

#define TX4939_CCFG_SYSSP_MASK   0x000000c0

Definition at line 262 of file tx4939.h.

#define TX4939_CCFG_TINTDIS   0x01000000

Definition at line 238 of file tx4939.h.

#define TX4939_CCFG_TOE   0x00004000

Definition at line 253 of file tx4939.h.

#define TX4939_CCFG_WDREXEN   0x0000010000000000ULL

Definition at line 231 of file tx4939.h.

#define TX4939_CCFG_WDRST   0x0000020000000000ULL

Definition at line 230 of file tx4939.h.

#define TX4939_CCFG_WR   0x00008000

Definition at line 252 of file tx4939.h.

#define TX4939_CCFG_YDIVMODE_2   (0x0 << 10)

Definition at line 256 of file tx4939.h.

#define TX4939_CCFG_YDIVMODE_3   (0x1 << 10)

Definition at line 257 of file tx4939.h.

#define TX4939_CCFG_YDIVMODE_5   (0x6 << 10)

Definition at line 258 of file tx4939.h.

#define TX4939_CCFG_YDIVMODE_6   (0x7 << 10)

Definition at line 259 of file tx4939.h.

#define TX4939_CCFG_YDIVMODE_MASK   0x00001c00

Definition at line 255 of file tx4939.h.

#define tx4939_ccfgptr   ((struct tx4939_ccfg_reg __iomem *)TX4939_CCFG_REG)

Definition at line 498 of file tx4939.h.

#define TX4939_CIR_REG   (TX4939_REG_BASE + 0xfc00)

Definition at line 46 of file tx4939.h.

#define TX4939_CLKCTR_ACLCKD   0x0000020000000000ULL

Definition at line 330 of file tx4939.h.

#define TX4939_CLKCTR_ACLRST   0x00000200

Definition at line 361 of file tx4939.h.

#define TX4939_CLKCTR_ATA0CKD   0x0000010000000000ULL

Definition at line 331 of file tx4939.h.

#define TX4939_CLKCTR_ATA0RST   0x00000100

Definition at line 362 of file tx4939.h.

#define TX4939_CLKCTR_ATA1CKD   0x0004000000000000ULL

Definition at line 321 of file tx4939.h.

#define TX4939_CLKCTR_ATA1RST   0x00040000

Definition at line 352 of file tx4939.h.

#define TX4939_CLKCTR_BROMCKD   0x0002000000000000ULL

Definition at line 322 of file tx4939.h.

#define TX4939_CLKCTR_BROMRST   0x00020000

Definition at line 353 of file tx4939.h.

#define TX4939_CLKCTR_CIRCKD   0x0400000000000000ULL

Definition at line 314 of file tx4939.h.

#define TX4939_CLKCTR_CIRRST   0x04000000

Definition at line 345 of file tx4939.h.

#define TX4939_CLKCTR_CYPCKD   0x0000000100000000ULL

Definition at line 339 of file tx4939.h.

#define TX4939_CLKCTR_CYPRST   0x00000001

Definition at line 370 of file tx4939.h.

#define TX4939_CLKCTR_DMA0CKD   0x0000008000000000ULL

Definition at line 332 of file tx4939.h.

#define TX4939_CLKCTR_DMA0RST   0x00000080

Definition at line 363 of file tx4939.h.

#define TX4939_CLKCTR_DMA1CKD   0x0000040000000000ULL

Definition at line 329 of file tx4939.h.

#define TX4939_CLKCTR_DMA1RST   0x00000400

Definition at line 360 of file tx4939.h.

#define TX4939_CLKCTR_EPCICKD   0x0020000000000000ULL

Definition at line 319 of file tx4939.h.

#define TX4939_CLKCTR_EPCIRST   0x00200000

Definition at line 350 of file tx4939.h.

#define TX4939_CLKCTR_ETH0CKD   0x0000400000000000ULL

Definition at line 325 of file tx4939.h.

#define TX4939_CLKCTR_ETH0RST   0x00004000

Definition at line 356 of file tx4939.h.

#define TX4939_CLKCTR_ETH1CKD   0x0008000000000000ULL

Definition at line 320 of file tx4939.h.

#define TX4939_CLKCTR_ETH1RST   0x00080000

Definition at line 351 of file tx4939.h.

#define TX4939_CLKCTR_I2CCKD   0x0000800000000000ULL

Definition at line 324 of file tx4939.h.

#define TX4939_CLKCTR_I2CRST   0x00008000

Definition at line 355 of file tx4939.h.

#define TX4939_CLKCTR_I2SCKD   0x0000002000000000ULL

Definition at line 334 of file tx4939.h.

#define TX4939_CLKCTR_I2SRST   0x00000020

Definition at line 365 of file tx4939.h.

#define TX4939_CLKCTR_IOSCKD   0x8000000000000000ULL

Definition at line 309 of file tx4939.h.

#define TX4939_CLKCTR_IOSRST   0x80000000

Definition at line 340 of file tx4939.h.

#define TX4939_CLKCTR_NDCCKD   0x0001000000000000ULL

Definition at line 323 of file tx4939.h.

#define TX4939_CLKCTR_NDCRST   0x00010000

Definition at line 354 of file tx4939.h.

#define TX4939_CLKCTR_PCI1CKD   0x0000080000000000ULL

Definition at line 328 of file tx4939.h.

#define TX4939_CLKCTR_PCI1RST   0x00000800

Definition at line 359 of file tx4939.h.

#define TX4939_CLKCTR_PCICCKD   0x0000004000000000ULL

Definition at line 333 of file tx4939.h.

#define TX4939_CLKCTR_PCICRST   0x00000040

Definition at line 364 of file tx4939.h.

#define TX4939_CLKCTR_SIO0CKD   0x0000000200000000ULL

Definition at line 338 of file tx4939.h.

#define TX4939_CLKCTR_SIO0RST   0x00000002

Definition at line 369 of file tx4939.h.

#define TX4939_CLKCTR_SIO1CKD   0x0080000000000000ULL

Definition at line 317 of file tx4939.h.

#define TX4939_CLKCTR_SIO1RST   0x00800000

Definition at line 348 of file tx4939.h.

#define TX4939_CLKCTR_SIO2CKD   0x0100000000000000ULL

Definition at line 316 of file tx4939.h.

#define TX4939_CLKCTR_SIO2RST   0x01000000

Definition at line 347 of file tx4939.h.

#define TX4939_CLKCTR_SIO3CKD   0x0200000000000000ULL

Definition at line 315 of file tx4939.h.

#define TX4939_CLKCTR_SIO3RST   0x02000000

Definition at line 346 of file tx4939.h.

#define TX4939_CLKCTR_SPICKD   0x0000200000000000ULL

Definition at line 326 of file tx4939.h.

#define TX4939_CLKCTR_SPIRST   0x00002000

Definition at line 357 of file tx4939.h.

#define TX4939_CLKCTR_SRAMCKD   0x0000100000000000ULL

Definition at line 327 of file tx4939.h.

#define TX4939_CLKCTR_SRAMRST   0x00001000

Definition at line 358 of file tx4939.h.

#define TX4939_CLKCTR_SYSCKD   0x4000000000000000ULL

Definition at line 310 of file tx4939.h.

#define TX4939_CLKCTR_SYSRST   0x40000000

Definition at line 341 of file tx4939.h.

#define TX4939_CLKCTR_TM0CKD   0x0000001000000000ULL

Definition at line 335 of file tx4939.h.

#define TX4939_CLKCTR_TM0RST   0x00000010

Definition at line 366 of file tx4939.h.

#define TX4939_CLKCTR_TM1CKD   0x0000000800000000ULL

Definition at line 336 of file tx4939.h.

#define TX4939_CLKCTR_TM1RST   0x00000008

Definition at line 367 of file tx4939.h.

#define TX4939_CLKCTR_TM2CKD   0x0000000400000000ULL

Definition at line 337 of file tx4939.h.

#define TX4939_CLKCTR_TM2RST   0x00000004

Definition at line 368 of file tx4939.h.

#define TX4939_CLKCTR_TM3CKD   0x0800000000000000ULL

Definition at line 313 of file tx4939.h.

#define TX4939_CLKCTR_TM3RST   0x08000000

Definition at line 344 of file tx4939.h.

#define TX4939_CLKCTR_TM4CKD   0x1000000000000000ULL

Definition at line 312 of file tx4939.h.

#define TX4939_CLKCTR_TM4RST   0x10000000

Definition at line 343 of file tx4939.h.

#define TX4939_CLKCTR_TM5CKD   0x2000000000000000ULL

Definition at line 311 of file tx4939.h.

#define TX4939_CLKCTR_TM5RST   0x20000000

Definition at line 342 of file tx4939.h.

#define TX4939_CLKCTR_VPCCKD   0x0040000000000000ULL

Definition at line 318 of file tx4939.h.

#define TX4939_CLKCTR_VPCRST   0x00400000

Definition at line 349 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CDIV_DIV1   0x00000200

Definition at line 413 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CDIV_DIV1ALT   0x00000600

Definition at line 415 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CDIV_DIV2   0x00000000

Definition at line 412 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CDIV_DIV2ALT   0x00000400

Definition at line 414 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CDIV_MASK   0x00000600

Definition at line 411 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CSWAP_BOTH   0x00001800

Definition at line 410 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CSWAP_IN   0x00000800

Definition at line 408 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CSWAP_MASK   0x00001800

Definition at line 406 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CSWAP_NONE   0x00000000

Definition at line 407 of file tx4939.h.

#define TX4939_CRYPTO_CSR_CSWAP_OUT   0x00001000

Definition at line 409 of file tx4939.h.

#define TX4939_CRYPTO_CSR_DCINT   0x00040000

Definition at line 402 of file tx4939.h.

#define TX4939_CRYPTO_CSR_ENCR   0x00000001

Definition at line 424 of file tx4939.h.

#define TX4939_CRYPTO_CSR_GBINT   0x00010000

Definition at line 403 of file tx4939.h.

#define TX4939_CRYPTO_CSR_GINTE   0x00000008

Definition at line 421 of file tx4939.h.

#define TX4939_CRYPTO_CSR_INDXAST (   n)    ((n) << 13)

Definition at line 405 of file tx4939.h.

#define TX4939_CRYPTO_CSR_INDXAST_MASK   0x0000e000

Definition at line 404 of file tx4939.h.

#define TX4939_CRYPTO_CSR_INDXBST (   n)    ((n) << 20)

Definition at line 400 of file tx4939.h.

#define TX4939_CRYPTO_CSR_INDXBST_MASK   0x00700000

Definition at line 399 of file tx4939.h.

#define TX4939_CRYPTO_CSR_PDINT_ALL   0x00000000

Definition at line 417 of file tx4939.h.

#define TX4939_CRYPTO_CSR_PDINT_END   0x00000040

Definition at line 418 of file tx4939.h.

#define TX4939_CRYPTO_CSR_PDINT_MASK   0x000000c0

Definition at line 416 of file tx4939.h.

#define TX4939_CRYPTO_CSR_PDINT_NEXT   0x00000080

Definition at line 419 of file tx4939.h.

#define TX4939_CRYPTO_CSR_PDINT_NONE   0x000000c0

Definition at line 420 of file tx4939.h.

#define TX4939_CRYPTO_CSR_RSTC   0x00000002

Definition at line 423 of file tx4939.h.

#define TX4939_CRYPTO_CSR_RSTD   0x00000004

Definition at line 422 of file tx4939.h.

#define TX4939_CRYPTO_CSR_SAESI   0x04000000

Definition at line 396 of file tx4939.h.

#define TX4939_CRYPTO_CSR_SAESO   0x08000000

Definition at line 395 of file tx4939.h.

#define TX4939_CRYPTO_CSR_SDESI   0x01000000

Definition at line 398 of file tx4939.h.

#define TX4939_CRYPTO_CSR_SDESO   0x02000000

Definition at line 397 of file tx4939.h.

#define TX4939_CRYPTO_CSR_TOINT   0x00080000

Definition at line 401 of file tx4939.h.

#define TX4939_CRYPTO_CTX_CMS   0x00000020

Definition at line 433 of file tx4939.h.

#define TX4939_CRYPTO_CTX_DMS   0x00000040

Definition at line 434 of file tx4939.h.

#define TX4939_CRYPTO_CTX_ENGINE_AES   0x00000001

Definition at line 429 of file tx4939.h.

#define TX4939_CRYPTO_CTX_ENGINE_DES   0x00000000

Definition at line 428 of file tx4939.h.

#define TX4939_CRYPTO_CTX_ENGINE_MASK   0x00000003

Definition at line 427 of file tx4939.h.

#define TX4939_CRYPTO_CTX_ENGINE_MD5   0x00000002

Definition at line 430 of file tx4939.h.

#define TX4939_CRYPTO_CTX_ENGINE_SHA1   0x00000003

Definition at line 431 of file tx4939.h.

#define TX4939_CRYPTO_CTX_TDMS   0x00000010

Definition at line 432 of file tx4939.h.

#define TX4939_CRYPTO_CTX_UPDATE   0x00000080

Definition at line 435 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ENCRYPT_IDX (   idx)    ((idx) << 0)

Definition at line 456 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ENCRYPT_IDX_MASK   0x00000007

Definition at line 455 of file tx4939.h.

#define TX4939_CRYPTO_DESC_END   0x00000100

Definition at line 443 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ERR_DIGEST   0x00000004

Definition at line 449 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ERR_MASK   0x00000006

Definition at line 446 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ERR_NONE   0x00000000

Definition at line 447 of file tx4939.h.

#define TX4939_CRYPTO_DESC_ERR_TOUT   0x00000002

Definition at line 448 of file tx4939.h.

#define TX4939_CRYPTO_DESC_HASH_IDX (   idx)    ((idx) << 4)

Definition at line 454 of file tx4939.h.

#define TX4939_CRYPTO_DESC_HASH_IDX_MASK   0x00000070

Definition at line 453 of file tx4939.h.

#define TX4939_CRYPTO_DESC_IB_CNT (   cnt)    ((cnt) << 10)

Definition at line 441 of file tx4939.h.

#define TX4939_CRYPTO_DESC_IB_CNT_MASK   0x001ffc00

Definition at line 440 of file tx4939.h.

#define TX4939_CRYPTO_DESC_LAST   0x00000008

Definition at line 445 of file tx4939.h.

#define TX4939_CRYPTO_DESC_OB_CNT (   cnt)    ((cnt) << 21)

Definition at line 439 of file tx4939.h.

#define TX4939_CRYPTO_DESC_OB_CNT_MASK   0xffe00000

Definition at line 438 of file tx4939.h.

#define TX4939_CRYPTO_DESC_OWN   0x00000001

Definition at line 450 of file tx4939.h.

#define TX4939_CRYPTO_DESC_START   0x00000200

Definition at line 442 of file tx4939.h.

#define TX4939_CRYPTO_DESC_XOR   0x00000010

Definition at line 444 of file tx4939.h.

#define TX4939_CRYPTO_NR_SET   6

Definition at line 458 of file tx4939.h.

#define TX4939_CRYPTO_RCSR_FIN   0x00000002

Definition at line 462 of file tx4939.h.

#define TX4939_CRYPTO_RCSR_INTE   0x00000008

Definition at line 460 of file tx4939.h.

#define TX4939_CRYPTO_RCSR_RST   0x00000004

Definition at line 461 of file tx4939.h.

#define TX4939_CRYPTO_RCSR_ST   0x00000001

Definition at line 463 of file tx4939.h.

#define TX4939_CRYPTO_REG   (TX4939_REG_BASE + 0x6800)

Definition at line 26 of file tx4939.h.

#define tx4939_cryptoptr   ((struct tx4939_crypto_reg __iomem *)TX4939_CRYPTO_REG)

Definition at line 503 of file tx4939.h.

#define TX4939_DDRC_REG   (TX4939_REG_BASE + 0x8000)

Definition at line 28 of file tx4939.h.

#define tx4939_ddrcptr   ((struct tx4939_ddrc_reg __iomem *)TX4939_DDRC_REG)

Definition at line 492 of file tx4939.h.

#define TX4939_DMA_REG (   ch)    (TX4939_REG_BASE + 0xb000 + (ch) * 0x800)

Definition at line 31 of file tx4939.h.

#define TX4939_EBUSC_BA (   ch)    TX4927_EBUSC_BA(ch)

Definition at line 520 of file tx4939.h.

#define TX4939_EBUSC_CR (   ch)    TX4927_EBUSC_CR(ch)

Definition at line 519 of file tx4939.h.

#define TX4939_EBUSC_REG   (TX4939_REG_BASE + 0x9000)

Definition at line 29 of file tx4939.h.

#define TX4939_EBUSC_SIZE (   ch)    TX4927_EBUSC_SIZE(ch)

Definition at line 521 of file tx4939.h.

#define TX4939_EBUSC_WIDTH (   ch)    (16 >> ((__u32)(TX4939_EBUSC_CR(ch) >> 20) & 0x1))

Definition at line 522 of file tx4939.h.

#define tx4939_ebuscptr   tx4938_ebuscptr

Definition at line 493 of file tx4939.h.

#define TX4939_I2C_REG   (TX4939_REG_BASE + 0xf900)

Definition at line 43 of file tx4939.h.

#define TX4939_I2S_REG   (TX4939_REG_BASE + 0xfa00)

Definition at line 44 of file tx4939.h.

#define TX4939_IR_ACLC   21

Definition at line 204 of file tx4939.h.

#define TX4939_IR_ACLCPME   40

Definition at line 217 of file tx4939.h.

#define TX4939_IR_ATA (   n)    (19 + (n))

Definition at line 203 of file tx4939.h.

#define TX4939_IR_CIPHER   26

Definition at line 205 of file tx4939.h.

#define TX4939_IR_CIR   8

Definition at line 193 of file tx4939.h.

#define TX4939_IR_DDR   1

Definition at line 186 of file tx4939.h.

#define TX4939_IR_DMA (   ch,
  n 
)    (((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */

Definition at line 197 of file tx4939.h.

#define TX4939_IR_ETH (   n)    ((n) ? 43 : 6)

Definition at line 191 of file tx4939.h.

#define TX4939_IR_I2C   33

Definition at line 210 of file tx4939.h.

#define TX4939_IR_I2S   47

Definition at line 220 of file tx4939.h.

#define TX4939_IR_INT (   n)    (3 + (n))

Definition at line 189 of file tx4939.h.

#define TX4939_IR_INTA   27

Definition at line 206 of file tx4939.h.

#define TX4939_IR_INTB   28

Definition at line 207 of file tx4939.h.

#define TX4939_IR_INTC   29

Definition at line 208 of file tx4939.h.

#define TX4939_IR_INTD   30

Definition at line 209 of file tx4939.h.

#define TX4939_IR_IRC   14

Definition at line 198 of file tx4939.h.

#define TX4939_IR_NDFMC   39

Definition at line 216 of file tx4939.h.

#define TX4939_IR_NONE   0

Definition at line 185 of file tx4939.h.

#define TX4939_IR_PCIC   35

Definition at line 212 of file tx4939.h.

#define TX4939_IR_PCIC1   36

Definition at line 213 of file tx4939.h.

#define TX4939_IR_PCIERR   37

Definition at line 214 of file tx4939.h.

#define TX4939_IR_PCIPME   38

Definition at line 215 of file tx4939.h.

#define TX4939_IR_PDMAC   15

Definition at line 199 of file tx4939.h.

#define TX4939_IR_RND   42

Definition at line 219 of file tx4939.h.

#define TX4939_IR_RTC   41

Definition at line 218 of file tx4939.h.

#define TX4939_IR_SIO (   n)    ((n) ? 43 + (n) : 9) /* 9,44-46 */

Definition at line 195 of file tx4939.h.

#define TX4939_IR_SPI   34

Definition at line 211 of file tx4939.h.

#define TX4939_IR_TMR (   n)    (((n) >= 3 ? 45 : 16) + (n)) /* 16-18,48-50 */

Definition at line 201 of file tx4939.h.

#define TX4939_IR_VIDEO   7

Definition at line 192 of file tx4939.h.

#define TX4939_IR_WTOERR   2

Definition at line 187 of file tx4939.h.

#define TX4939_IRC_INT   2 /* IP[2] in Status register */

Definition at line 223 of file tx4939.h.

#define TX4939_IRC_REG   (TX4939_REG_BASE + 0xe800)

Definition at line 34 of file tx4939.h.

#define tx4939_ircptr   ((struct tx4939_irc_reg __iomem *)TX4939_IRC_REG)

Definition at line 494 of file tx4939.h.

#define TX4939_NDFMC_REG   (TX4939_REG_BASE + 0x5000)

Definition at line 24 of file tx4939.h.

#define TX4939_NR_SIO   4 /* 0xf300, 0xf400, 0xf380, 0xf480 */

Definition at line 38 of file tx4939.h.

#define TX4939_NR_TMR   6 /* 0xf000,0xf100,0xf200,0xfd00,0xfe00,0xff00 */

Definition at line 35 of file tx4939.h.

#define TX4939_NUM_IR   64

Definition at line 221 of file tx4939.h.

#define TX4939_NUM_IR_ATA   2

Definition at line 202 of file tx4939.h.

#define TX4939_NUM_IR_DMA   4

Definition at line 196 of file tx4939.h.

#define TX4939_NUM_IR_ETH   2

Definition at line 190 of file tx4939.h.

#define TX4939_NUM_IR_INT   3

Definition at line 188 of file tx4939.h.

#define TX4939_NUM_IR_SIO   4

Definition at line 194 of file tx4939.h.

#define TX4939_NUM_IR_TMR   6

Definition at line 200 of file tx4939.h.

#define TX4939_PCFG_ATA0MODE   0x0000010000000000ULL

Definition at line 290 of file tx4939.h.

#define TX4939_PCFG_ATA1MODE   0x0000020000000000ULL

Definition at line 289 of file tx4939.h.

#define TX4939_PCFG_BP_PLL   0x0000000100000000ULL

Definition at line 291 of file tx4939.h.

#define TX4939_PCFG_DMASEL0   0x00000001

Definition at line 305 of file tx4939.h.

#define TX4939_PCFG_DMASEL0_DRQ0   0x00000000

Definition at line 306 of file tx4939.h.

#define TX4939_PCFG_DMASEL1   0x00000002

Definition at line 303 of file tx4939.h.

#define TX4939_PCFG_DMASEL1_DRQ1   0x00000000

Definition at line 304 of file tx4939.h.

#define TX4939_PCFG_DMASEL2   0x00000004

Definition at line 300 of file tx4939.h.

#define TX4939_PCFG_DMASEL2_DRQ2   0x00000000

Definition at line 301 of file tx4939.h.

#define TX4939_PCFG_DMASEL2_SIO0   0x00000004

Definition at line 302 of file tx4939.h.

#define TX4939_PCFG_DMASEL3   0x0004000000000000ULL

Definition at line 282 of file tx4939.h.

#define TX4939_PCFG_DMASEL3_NDFC   0x0000000000000000ULL

Definition at line 284 of file tx4939.h.

#define TX4939_PCFG_DMASEL3_SIO0   0x0004000000000000ULL

Definition at line 283 of file tx4939.h.

#define TX4939_PCFG_DMASEL_ALL   (0x00000007 | TX4939_PCFG_DMASEL3)

Definition at line 299 of file tx4939.h.

#define TX4939_PCFG_ET0MODE   0x0000040000000000ULL

Definition at line 288 of file tx4939.h.

#define TX4939_PCFG_ET1MODE   0x0000080000000000ULL

Definition at line 287 of file tx4939.h.

#define TX4939_PCFG_I2CMODE   0x1000000000000000ULL

Definition at line 275 of file tx4939.h.

#define TX4939_PCFG_I2SMODE_ACLC   0x0000000000000000ULL

Definition at line 280 of file tx4939.h.

#define TX4939_PCFG_I2SMODE_GPIO   0x0c00000000000000ULL

Definition at line 277 of file tx4939.h.

#define TX4939_PCFG_I2SMODE_I2S   0x0800000000000000ULL

Definition at line 278 of file tx4939.h.

#define TX4939_PCFG_I2SMODE_I2S_ALT   0x0400000000000000ULL

Definition at line 279 of file tx4939.h.

#define TX4939_PCFG_I2SMODE_MASK   0x0c00000000000000ULL

Definition at line 276 of file tx4939.h.

#define TX4939_PCFG_ITMODE   0x00000300

Definition at line 298 of file tx4939.h.

#define TX4939_PCFG_PCICLKEN (   ch)    (0x00010000<<(ch))

Definition at line 295 of file tx4939.h.

#define TX4939_PCFG_PCICLKEN_ALL   0x000f0000

Definition at line 294 of file tx4939.h.

#define TX4939_PCFG_SIO2MODE_GPIO   0x8000000000000000ULL

Definition at line 271 of file tx4939.h.

#define TX4939_PCFG_SIO2MODE_MASK   0xc000000000000000ULL

Definition at line 270 of file tx4939.h.

#define TX4939_PCFG_SIO2MODE_SIO0   0x0000000000000000ULL

Definition at line 273 of file tx4939.h.

#define TX4939_PCFG_SIO2MODE_SIO2   0x4000000000000000ULL

Definition at line 272 of file tx4939.h.

#define TX4939_PCFG_SIO3MODE   0x0200000000000000ULL

Definition at line 281 of file tx4939.h.

#define TX4939_PCFG_SPEED0   0x00001000

Definition at line 297 of file tx4939.h.

#define TX4939_PCFG_SPEED1   0x00002000

Definition at line 296 of file tx4939.h.

#define TX4939_PCFG_SPIMODE   0x2000000000000000ULL

Definition at line 274 of file tx4939.h.

#define TX4939_PCFG_SYSCLKEN   0x08000000

Definition at line 293 of file tx4939.h.

#define TX4939_PCFG_VPSMODE   0x0000100000000000ULL

Definition at line 286 of file tx4939.h.

#define TX4939_PCFG_VSSMODE   0x0000200000000000ULL

Definition at line 285 of file tx4939.h.

#define TX4939_PCIC1_REG   (TX4939_REG_BASE + 0x7000)

Definition at line 27 of file tx4939.h.

#define tx4939_pcic1ptr   tx4938_pcic1ptr

Definition at line 497 of file tx4939.h.

#define TX4939_PCIC_REG   (TX4939_REG_BASE + 0xd000)

Definition at line 32 of file tx4939.h.

#define tx4939_pcicptr   tx4938_pcicptr

Definition at line 496 of file tx4939.h.

#define TX4939_REG_BASE   0xff1f0000UL /* == TX4938_REG_BASE */

Definition at line 19 of file tx4939.h.

#define TX4939_REG_SIZE   0x00010000 /* == TX4938_REG_SIZE */

Definition at line 21 of file tx4939.h.

#define TX4939_REV_MAJ_MIN ( )    ((__u32)__raw_readq(&tx4939_ccfgptr->crir) & 0x00ff)

Definition at line 507 of file tx4939.h.

#define TX4939_REV_PCODE ( )    ((__u32)__raw_readq(&tx4939_ccfgptr->crir) >> 16)

Definition at line 509 of file tx4939.h.

#define TX4939_RNG_REG   (TX4939_CRYPTO_REG + 0xb0)

Definition at line 48 of file tx4939.h.

#define TX4939_RTC_REG   (TX4939_REG_BASE + 0xfb00)

Definition at line 45 of file tx4939.h.

#define TX4939_RTC_REG_RAMSIZE   0x00000100

Definition at line 389 of file tx4939.h.

#define TX4939_RTC_REG_RWBSIZE   0x00000006

Definition at line 390 of file tx4939.h.

#define TX4939_RTCCTL_ALMD   0x00000040

Definition at line 376 of file tx4939.h.

#define TX4939_RTCCTL_ALME   0x00000080

Definition at line 375 of file tx4939.h.

#define TX4939_RTCCTL_BUSY   0x00000020

Definition at line 377 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND   0x00000007

Definition at line 379 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND_GETALARM   0x00000003

Definition at line 383 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND_GETTIME   0x00000001

Definition at line 381 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND_NOP   0x00000000

Definition at line 380 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND_SETALARM   0x00000004

Definition at line 384 of file tx4939.h.

#define TX4939_RTCCTL_COMMAND_SETTIME   0x00000002

Definition at line 382 of file tx4939.h.

#define tx4939_rtcptr   ((struct tx4939_rtc_reg __iomem *)TX4939_RTC_REG)

Definition at line 501 of file tx4939.h.

#define TX4939_RTCTBC_COMP   0x0000007f

Definition at line 387 of file tx4939.h.

#define TX4939_RTCTBC_PM   0x00000080

Definition at line 386 of file tx4939.h.

#define TX4939_SCLK0 (   mst)    ((((mst) + 245/2) / 245UL * 429 * 16 + 19) / 19 / 2)

Definition at line 526 of file tx4939.h.

#define TX4939_SIO_REG (   ch)    (TX4939_REG_BASE + 0xf300 + (((ch) & 1) << 8) + (((ch) & 2) << 6))

Definition at line 39 of file tx4939.h.

#define TX4939_SPI_REG   (TX4939_REG_BASE + 0xf800)

Definition at line 42 of file tx4939.h.

#define TX4939_SRAMC_REG   (TX4939_REG_BASE + 0x6000)

Definition at line 25 of file tx4939.h.

#define tx4939_sramcptr   tx4938_sramcptr

Definition at line 500 of file tx4939.h.

#define TX4939_TMR_REG (   ch)    (TX4939_REG_BASE + 0xf000 + ((ch) + ((ch) >= 3) * 10) * 0x100)

Definition at line 36 of file tx4939.h.

#define TX4939_VPC_CSR_GBINT   0x00010000

Definition at line 468 of file tx4939.h.

#define TX4939_VPC_CSR_GINTE   0x00000008

Definition at line 471 of file tx4939.h.

#define TX4939_VPC_CSR_RSTD   0x00000004

Definition at line 472 of file tx4939.h.

#define TX4939_VPC_CSR_RSTVPC   0x00000002

Definition at line 473 of file tx4939.h.

#define TX4939_VPC_CSR_SWAPI   0x00000010

Definition at line 470 of file tx4939.h.

#define TX4939_VPC_CSR_SWAPO   0x00000020

Definition at line 469 of file tx4939.h.

#define TX4939_VPC_CTRLA_DCINT   0x00000080

Definition at line 477 of file tx4939.h.

#define TX4939_VPC_CTRLA_ENVPC   0x00000001

Definition at line 486 of file tx4939.h.

#define TX4939_VPC_CTRLA_PBUSY   0x00000100

Definition at line 476 of file tx4939.h.

#define TX4939_VPC_CTRLA_PDINT_ALL   0x00000000

Definition at line 480 of file tx4939.h.

#define TX4939_VPC_CTRLA_PDINT_MASK   0x00000030

Definition at line 479 of file tx4939.h.

#define TX4939_VPC_CTRLA_PDINT_NEXT   0x00000010

Definition at line 481 of file tx4939.h.

#define TX4939_VPC_CTRLA_PDINT_NONE   0x00000030

Definition at line 482 of file tx4939.h.

#define TX4939_VPC_CTRLA_UOINT   0x00000040

Definition at line 478 of file tx4939.h.

#define TX4939_VPC_CTRLA_VDFOR   0x00000002

Definition at line 485 of file tx4939.h.

#define TX4939_VPC_CTRLA_VDMODE   0x00000004

Definition at line 484 of file tx4939.h.

#define TX4939_VPC_CTRLA_VDPSN   0x00000200

Definition at line 475 of file tx4939.h.

#define TX4939_VPC_CTRLA_VDVLDP   0x00000008

Definition at line 483 of file tx4939.h.

#define TX4939_VPC_DESC_CTRL1_ERR_MASK   0x00000006

Definition at line 489 of file tx4939.h.

#define TX4939_VPC_DESC_CTRL1_OWN   0x00000001

Definition at line 490 of file tx4939.h.

#define TX4939_VPC_REG   (TX4939_REG_BASE + 0xa000)

Definition at line 30 of file tx4939.h.

#define tx4939_vpcptr   ((struct tx4939_vpc_reg __iomem *)TX4939_VPC_REG)

Definition at line 505 of file tx4939.h.

Function Documentation

void tx4939_aclc_init ( void  )

Definition at line 483 of file setup_tx4939.c.

void tx4939_add_memory_regions ( void  )

Definition at line 97 of file setup_tx4939.c.

void tx4939_ata_init ( void  )

Definition at line 386 of file setup_tx4939.c.

void tx4939_dmac_init ( int  memcpy_chan0,
int  memcpy_chan1 
)

Definition at line 468 of file setup_tx4939.c.

void tx4939_ethaddr_init ( unsigned char addr0,
unsigned char addr1 
)

Definition at line 367 of file setup_tx4939.c.

int tx4939_irq ( void  )

Definition at line 209 of file irq_tx4939.c.

void tx4939_irq_init ( void  )

Definition at line 166 of file irq_tx4939.c.

void tx4939_mtd_init ( int  ch)

Definition at line 372 of file setup_tx4939.c.

void tx4939_ndfmc_init ( unsigned int  hold,
unsigned int  spw,
unsigned char  ch_mask,
unsigned char  wide_mask 
)

Definition at line 452 of file setup_tx4939.c.

int tx4939_pci_map_irq ( const struct pci_dev dev,
u8  slot,
u8  pin 
)

Definition at line 71 of file pci-tx4939.c.

int tx4939_pcic1_map_irq ( const struct pci_dev dev,
u8  slot 
)

Definition at line 51 of file pci-tx4939.c.

void tx4939_report_pci1clk ( void  )

Definition at line 42 of file pci-tx4939.c.

int tx4939_report_pciclk ( void  )

Definition at line 20 of file pci-tx4939.c.

void tx4939_rng_init ( void  )

Definition at line 498 of file setup_tx4939.c.

void tx4939_rtc_init ( void  )

Definition at line 430 of file setup_tx4939.c.

void tx4939_setup ( void  )

Definition at line 113 of file setup_tx4939.c.

void tx4939_setup_pcierr_irq ( void  )

Definition at line 100 of file pci-tx4939.c.

void tx4939_sio_init ( unsigned int  sclk,
unsigned int  cts_mask 
)

Definition at line 298 of file setup_tx4939.c.

void tx4939_spi_init ( int  busid)
void tx4939_sramc_init ( void  )

Definition at line 492 of file setup_tx4939.c.

void tx4939_time_init ( unsigned int  tmrnr)

Definition at line 290 of file setup_tx4939.c.

void tx4939_wdt_init ( void  )

Definition at line 46 of file setup_tx4939.c.