Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tx4927.h File Reference
#include <linux/types.h>
#include <linux/io.h>
#include <asm/txx9irq.h>
#include <asm/txx9/tx4927pcic.h>

Go to the source code of this file.

Data Structures

struct  tx4927_sdramc_reg
 
struct  tx4927_ebusc_reg
 
struct  tx4927_ccfg_reg
 

Macros

#define TX4927_REG_BASE   0xff1f0000UL
 
#define TX4927_REG_SIZE   0x00010000
 
#define TX4927_SDRAMC_REG   (TX4927_REG_BASE + 0x8000)
 
#define TX4927_EBUSC_REG   (TX4927_REG_BASE + 0x9000)
 
#define TX4927_DMA_REG   (TX4927_REG_BASE + 0xb000)
 
#define TX4927_PCIC_REG   (TX4927_REG_BASE + 0xd000)
 
#define TX4927_CCFG_REG   (TX4927_REG_BASE + 0xe000)
 
#define TX4927_IRC_REG   (TX4927_REG_BASE + 0xf600)
 
#define TX4927_NR_TMR   3
 
#define TX4927_TMR_REG(ch)   (TX4927_REG_BASE + 0xf000 + (ch) * 0x100)
 
#define TX4927_NR_SIO   2
 
#define TX4927_SIO_REG(ch)   (TX4927_REG_BASE + 0xf300 + (ch) * 0x100)
 
#define TX4927_PIO_REG   (TX4927_REG_BASE + 0xf500)
 
#define TX4927_ACLC_REG   (TX4927_REG_BASE + 0xf700)
 
#define TX4927_IR_ECCERR   0
 
#define TX4927_IR_WTOERR   1
 
#define TX4927_NUM_IR_INT   6
 
#define TX4927_IR_INT(n)   (2 + (n))
 
#define TX4927_NUM_IR_SIO   2
 
#define TX4927_IR_SIO(n)   (8 + (n))
 
#define TX4927_NUM_IR_DMA   4
 
#define TX4927_IR_DMA(n)   (10 + (n))
 
#define TX4927_IR_PIO   14
 
#define TX4927_IR_PDMAC   15
 
#define TX4927_IR_PCIC   16
 
#define TX4927_NUM_IR_TMR   3
 
#define TX4927_IR_TMR(n)   (17 + (n))
 
#define TX4927_IR_PCIERR   22
 
#define TX4927_IR_PCIPME   23
 
#define TX4927_IR_ACLC   24
 
#define TX4927_IR_ACLCPME   25
 
#define TX4927_NUM_IR   32
 
#define TX4927_IRC_INT   2 /* IP[2] in Status register */
 
#define TX4927_NUM_PIO   16
 
#define TX4927_CCFG_WDRST   0x0000020000000000ULL
 
#define TX4927_CCFG_WDREXEN   0x0000010000000000ULL
 
#define TX4927_CCFG_BCFG_MASK   0x000000ff00000000ULL
 
#define TX4927_CCFG_TINTDIS   0x01000000
 
#define TX4927_CCFG_PCI66   0x00800000
 
#define TX4927_CCFG_PCIMODE   0x00400000
 
#define TX4927_CCFG_DIVMODE_MASK   0x000e0000
 
#define TX4927_CCFG_DIVMODE_8   (0x0 << 17)
 
#define TX4927_CCFG_DIVMODE_12   (0x1 << 17)
 
#define TX4927_CCFG_DIVMODE_16   (0x2 << 17)
 
#define TX4927_CCFG_DIVMODE_10   (0x3 << 17)
 
#define TX4927_CCFG_DIVMODE_2   (0x4 << 17)
 
#define TX4927_CCFG_DIVMODE_3   (0x5 << 17)
 
#define TX4927_CCFG_DIVMODE_4   (0x6 << 17)
 
#define TX4927_CCFG_DIVMODE_2_5   (0x7 << 17)
 
#define TX4927_CCFG_BEOW   0x00010000
 
#define TX4927_CCFG_WR   0x00008000
 
#define TX4927_CCFG_TOE   0x00004000
 
#define TX4927_CCFG_PCIARB   0x00002000
 
#define TX4927_CCFG_PCIDIVMODE_MASK   0x00001800
 
#define TX4927_CCFG_PCIDIVMODE_2_5   0x00000000
 
#define TX4927_CCFG_PCIDIVMODE_3   0x00000800
 
#define TX4927_CCFG_PCIDIVMODE_5   0x00001000
 
#define TX4927_CCFG_PCIDIVMODE_6   0x00001800
 
#define TX4927_CCFG_SYSSP_MASK   0x000000c0
 
#define TX4927_CCFG_ENDIAN   0x00000004
 
#define TX4927_CCFG_HALT   0x00000002
 
#define TX4927_CCFG_ACEHOLD   0x00000001
 
#define TX4927_CCFG_W1CBITS   (TX4927_CCFG_WDRST | TX4927_CCFG_BEOW)
 
#define TX4927_PCFG_SDCLKDLY_MASK   0x30000000
 
#define TX4927_PCFG_SDCLKDLY(d)   ((d)<<28)
 
#define TX4927_PCFG_SYSCLKEN   0x08000000
 
#define TX4927_PCFG_SDCLKEN_ALL   0x07800000
 
#define TX4927_PCFG_SDCLKEN(ch)   (0x00800000<<(ch))
 
#define TX4927_PCFG_PCICLKEN_ALL   0x003f0000
 
#define TX4927_PCFG_PCICLKEN(ch)   (0x00010000<<(ch))
 
#define TX4927_PCFG_SEL2   0x00000200
 
#define TX4927_PCFG_SEL1   0x00000100
 
#define TX4927_PCFG_DMASEL_ALL   0x000000ff
 
#define TX4927_PCFG_DMASEL0_MASK   0x00000003
 
#define TX4927_PCFG_DMASEL1_MASK   0x0000000c
 
#define TX4927_PCFG_DMASEL2_MASK   0x00000030
 
#define TX4927_PCFG_DMASEL3_MASK   0x000000c0
 
#define TX4927_PCFG_DMASEL0_DRQ0   0x00000000
 
#define TX4927_PCFG_DMASEL0_SIO1   0x00000001
 
#define TX4927_PCFG_DMASEL0_ACL0   0x00000002
 
#define TX4927_PCFG_DMASEL0_ACL2   0x00000003
 
#define TX4927_PCFG_DMASEL1_DRQ1   0x00000000
 
#define TX4927_PCFG_DMASEL1_SIO1   0x00000004
 
#define TX4927_PCFG_DMASEL1_ACL1   0x00000008
 
#define TX4927_PCFG_DMASEL1_ACL3   0x0000000c
 
#define TX4927_PCFG_DMASEL2_DRQ2   0x00000000 /* SEL2=0 */
 
#define TX4927_PCFG_DMASEL2_SIO0   0x00000010 /* SEL2=0 */
 
#define TX4927_PCFG_DMASEL2_ACL1   0x00000000 /* SEL2=1 */
 
#define TX4927_PCFG_DMASEL2_ACL2   0x00000020 /* SEL2=1 */
 
#define TX4927_PCFG_DMASEL2_ACL0   0x00000030 /* SEL2=1 */
 
#define TX4927_PCFG_DMASEL3_DRQ3   0x00000000
 
#define TX4927_PCFG_DMASEL3_SIO0   0x00000040
 
#define TX4927_PCFG_DMASEL3_ACL3   0x00000080
 
#define TX4927_PCFG_DMASEL3_ACL1   0x000000c0
 
#define TX4927_CLKCTR_ACLCKD   0x02000000
 
#define TX4927_CLKCTR_PIOCKD   0x01000000
 
#define TX4927_CLKCTR_DMACKD   0x00800000
 
#define TX4927_CLKCTR_PCICKD   0x00400000
 
#define TX4927_CLKCTR_TM0CKD   0x00100000
 
#define TX4927_CLKCTR_TM1CKD   0x00080000
 
#define TX4927_CLKCTR_TM2CKD   0x00040000
 
#define TX4927_CLKCTR_SIO0CKD   0x00020000
 
#define TX4927_CLKCTR_SIO1CKD   0x00010000
 
#define TX4927_CLKCTR_ACLRST   0x00000200
 
#define TX4927_CLKCTR_PIORST   0x00000100
 
#define TX4927_CLKCTR_DMARST   0x00000080
 
#define TX4927_CLKCTR_PCIRST   0x00000040
 
#define TX4927_CLKCTR_TM0RST   0x00000010
 
#define TX4927_CLKCTR_TM1RST   0x00000008
 
#define TX4927_CLKCTR_TM2RST   0x00000004
 
#define TX4927_CLKCTR_SIO0RST   0x00000002
 
#define TX4927_CLKCTR_SIO1RST   0x00000001
 
#define tx4927_sdramcptr   ((struct tx4927_sdramc_reg __iomem *)TX4927_SDRAMC_REG)
 
#define tx4927_pcicptr   ((struct tx4927_pcic_reg __iomem *)TX4927_PCIC_REG)
 
#define tx4927_ccfgptr   ((struct tx4927_ccfg_reg __iomem *)TX4927_CCFG_REG)
 
#define tx4927_ebuscptr   ((struct tx4927_ebusc_reg __iomem *)TX4927_EBUSC_REG)
 
#define tx4927_pioptr   ((struct txx9_pio_reg __iomem *)TX4927_PIO_REG)
 
#define TX4927_REV_PCODE()   ((__u32)__raw_readq(&tx4927_ccfgptr->crir) >> 16)
 
#define TX4927_SDRAMC_CR(ch)   __raw_readq(&tx4927_sdramcptr->cr[(ch)])
 
#define TX4927_SDRAMC_BA(ch)   ((TX4927_SDRAMC_CR(ch) >> 49) << 21)
 
#define TX4927_SDRAMC_SIZE(ch)   ((((TX4927_SDRAMC_CR(ch) >> 33) & 0x7fff) + 1) << 21)
 
#define TX4927_EBUSC_CR(ch)   __raw_readq(&tx4927_ebuscptr->cr[(ch)])
 
#define TX4927_EBUSC_BA(ch)   ((TX4927_EBUSC_CR(ch) >> 48) << 20)
 
#define TX4927_EBUSC_SIZE(ch)   (0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf))
 
#define TX4927_EBUSC_WIDTH(ch)   (64 >> ((__u32)(TX4927_EBUSC_CR(ch) >> 20) & 0x3))
 

Functions

unsigned int tx4927_get_mem_size (void)
 
void tx4927_wdt_init (void)
 
void tx4927_setup (void)
 
void tx4927_time_init (unsigned int tmrnr)
 
void tx4927_sio_init (unsigned int sclk, unsigned int cts_mask)
 
int tx4927_report_pciclk (void)
 
int tx4927_pciclk66_setup (void)
 
void tx4927_setup_pcierr_irq (void)
 
void tx4927_irq_init (void)
 
void tx4927_mtd_init (int ch)
 
void tx4927_dmac_init (int memcpy_chan)
 
void tx4927_aclc_init (unsigned int dma_chan_out, unsigned int dma_chan_in)
 

Macro Definition Documentation

#define TX4927_ACLC_REG   (TX4927_REG_BASE + 0xf700)

Definition at line 53 of file tx4927.h.

#define TX4927_CCFG_ACEHOLD   0x00000001

Definition at line 134 of file tx4927.h.

#define TX4927_CCFG_BCFG_MASK   0x000000ff00000000ULL

Definition at line 109 of file tx4927.h.

#define TX4927_CCFG_BEOW   0x00010000

Definition at line 122 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_10   (0x3 << 17)

Definition at line 117 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_12   (0x1 << 17)

Definition at line 115 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_16   (0x2 << 17)

Definition at line 116 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_2   (0x4 << 17)

Definition at line 118 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_2_5   (0x7 << 17)

Definition at line 121 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_3   (0x5 << 17)

Definition at line 119 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_4   (0x6 << 17)

Definition at line 120 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_8   (0x0 << 17)

Definition at line 114 of file tx4927.h.

#define TX4927_CCFG_DIVMODE_MASK   0x000e0000

Definition at line 113 of file tx4927.h.

#define TX4927_CCFG_ENDIAN   0x00000004

Definition at line 132 of file tx4927.h.

#define TX4927_CCFG_HALT   0x00000002

Definition at line 133 of file tx4927.h.

#define TX4927_CCFG_PCI66   0x00800000

Definition at line 111 of file tx4927.h.

#define TX4927_CCFG_PCIARB   0x00002000

Definition at line 125 of file tx4927.h.

#define TX4927_CCFG_PCIDIVMODE_2_5   0x00000000

Definition at line 127 of file tx4927.h.

#define TX4927_CCFG_PCIDIVMODE_3   0x00000800

Definition at line 128 of file tx4927.h.

#define TX4927_CCFG_PCIDIVMODE_5   0x00001000

Definition at line 129 of file tx4927.h.

#define TX4927_CCFG_PCIDIVMODE_6   0x00001800

Definition at line 130 of file tx4927.h.

#define TX4927_CCFG_PCIDIVMODE_MASK   0x00001800

Definition at line 126 of file tx4927.h.

#define TX4927_CCFG_PCIMODE   0x00400000

Definition at line 112 of file tx4927.h.

#define TX4927_CCFG_REG   (TX4927_REG_BASE + 0xe000)

Definition at line 46 of file tx4927.h.

#define TX4927_CCFG_SYSSP_MASK   0x000000c0

Definition at line 131 of file tx4927.h.

#define TX4927_CCFG_TINTDIS   0x01000000

Definition at line 110 of file tx4927.h.

#define TX4927_CCFG_TOE   0x00004000

Definition at line 124 of file tx4927.h.

#define TX4927_CCFG_W1CBITS   (TX4927_CCFG_WDRST | TX4927_CCFG_BEOW)

Definition at line 135 of file tx4927.h.

#define TX4927_CCFG_WDREXEN   0x0000010000000000ULL

Definition at line 108 of file tx4927.h.

#define TX4927_CCFG_WDRST   0x0000020000000000ULL

Definition at line 107 of file tx4927.h.

#define TX4927_CCFG_WR   0x00008000

Definition at line 123 of file tx4927.h.

#define tx4927_ccfgptr   ((struct tx4927_ccfg_reg __iomem *)TX4927_CCFG_REG)

Definition at line 194 of file tx4927.h.

#define TX4927_CLKCTR_ACLCKD   0x02000000

Definition at line 171 of file tx4927.h.

#define TX4927_CLKCTR_ACLRST   0x00000200

Definition at line 180 of file tx4927.h.

#define TX4927_CLKCTR_DMACKD   0x00800000

Definition at line 173 of file tx4927.h.

#define TX4927_CLKCTR_DMARST   0x00000080

Definition at line 182 of file tx4927.h.

#define TX4927_CLKCTR_PCICKD   0x00400000

Definition at line 174 of file tx4927.h.

#define TX4927_CLKCTR_PCIRST   0x00000040

Definition at line 183 of file tx4927.h.

#define TX4927_CLKCTR_PIOCKD   0x01000000

Definition at line 172 of file tx4927.h.

#define TX4927_CLKCTR_PIORST   0x00000100

Definition at line 181 of file tx4927.h.

#define TX4927_CLKCTR_SIO0CKD   0x00020000

Definition at line 178 of file tx4927.h.

#define TX4927_CLKCTR_SIO0RST   0x00000002

Definition at line 187 of file tx4927.h.

#define TX4927_CLKCTR_SIO1CKD   0x00010000

Definition at line 179 of file tx4927.h.

#define TX4927_CLKCTR_SIO1RST   0x00000001

Definition at line 188 of file tx4927.h.

#define TX4927_CLKCTR_TM0CKD   0x00100000

Definition at line 175 of file tx4927.h.

#define TX4927_CLKCTR_TM0RST   0x00000010

Definition at line 184 of file tx4927.h.

#define TX4927_CLKCTR_TM1CKD   0x00080000

Definition at line 176 of file tx4927.h.

#define TX4927_CLKCTR_TM1RST   0x00000008

Definition at line 185 of file tx4927.h.

#define TX4927_CLKCTR_TM2CKD   0x00040000

Definition at line 177 of file tx4927.h.

#define TX4927_CLKCTR_TM2RST   0x00000004

Definition at line 186 of file tx4927.h.

#define TX4927_DMA_REG   (TX4927_REG_BASE + 0xb000)

Definition at line 44 of file tx4927.h.

#define TX4927_EBUSC_BA (   ch)    ((TX4927_EBUSC_CR(ch) >> 48) << 20)

Definition at line 209 of file tx4927.h.

#define TX4927_EBUSC_CR (   ch)    __raw_readq(&tx4927_ebuscptr->cr[(ch)])

Definition at line 208 of file tx4927.h.

#define TX4927_EBUSC_REG   (TX4927_REG_BASE + 0x9000)

Definition at line 43 of file tx4927.h.

#define TX4927_EBUSC_SIZE (   ch)    (0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf))

Definition at line 210 of file tx4927.h.

#define TX4927_EBUSC_WIDTH (   ch)    (64 >> ((__u32)(TX4927_EBUSC_CR(ch) >> 20) & 0x3))

Definition at line 212 of file tx4927.h.

#define tx4927_ebuscptr   ((struct tx4927_ebusc_reg __iomem *)TX4927_EBUSC_REG)

Definition at line 196 of file tx4927.h.

#define TX4927_IR_ACLC   24

Definition at line 70 of file tx4927.h.

#define TX4927_IR_ACLCPME   25

Definition at line 71 of file tx4927.h.

#define TX4927_IR_DMA (   n)    (10 + (n))

Definition at line 62 of file tx4927.h.

#define TX4927_IR_ECCERR   0

Definition at line 55 of file tx4927.h.

#define TX4927_IR_INT (   n)    (2 + (n))

Definition at line 58 of file tx4927.h.

#define TX4927_IR_PCIC   16

Definition at line 65 of file tx4927.h.

#define TX4927_IR_PCIERR   22

Definition at line 68 of file tx4927.h.

#define TX4927_IR_PCIPME   23

Definition at line 69 of file tx4927.h.

#define TX4927_IR_PDMAC   15

Definition at line 64 of file tx4927.h.

#define TX4927_IR_PIO   14

Definition at line 63 of file tx4927.h.

#define TX4927_IR_SIO (   n)    (8 + (n))

Definition at line 60 of file tx4927.h.

#define TX4927_IR_TMR (   n)    (17 + (n))

Definition at line 67 of file tx4927.h.

#define TX4927_IR_WTOERR   1

Definition at line 56 of file tx4927.h.

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

Definition at line 74 of file tx4927.h.

#define TX4927_IRC_REG   (TX4927_REG_BASE + 0xf600)

Definition at line 47 of file tx4927.h.

#define TX4927_NR_SIO   2

Definition at line 50 of file tx4927.h.

#define TX4927_NR_TMR   3

Definition at line 48 of file tx4927.h.

#define TX4927_NUM_IR   32

Definition at line 72 of file tx4927.h.

#define TX4927_NUM_IR_DMA   4

Definition at line 61 of file tx4927.h.

#define TX4927_NUM_IR_INT   6

Definition at line 57 of file tx4927.h.

#define TX4927_NUM_IR_SIO   2

Definition at line 59 of file tx4927.h.

#define TX4927_NUM_IR_TMR   3

Definition at line 66 of file tx4927.h.

#define TX4927_NUM_PIO   16

Definition at line 76 of file tx4927.h.

#define TX4927_PCFG_DMASEL0_ACL0   0x00000002

Definition at line 154 of file tx4927.h.

#define TX4927_PCFG_DMASEL0_ACL2   0x00000003

Definition at line 155 of file tx4927.h.

#define TX4927_PCFG_DMASEL0_DRQ0   0x00000000

Definition at line 152 of file tx4927.h.

#define TX4927_PCFG_DMASEL0_MASK   0x00000003

Definition at line 148 of file tx4927.h.

#define TX4927_PCFG_DMASEL0_SIO1   0x00000001

Definition at line 153 of file tx4927.h.

#define TX4927_PCFG_DMASEL1_ACL1   0x00000008

Definition at line 158 of file tx4927.h.

#define TX4927_PCFG_DMASEL1_ACL3   0x0000000c

Definition at line 159 of file tx4927.h.

#define TX4927_PCFG_DMASEL1_DRQ1   0x00000000

Definition at line 156 of file tx4927.h.

#define TX4927_PCFG_DMASEL1_MASK   0x0000000c

Definition at line 149 of file tx4927.h.

#define TX4927_PCFG_DMASEL1_SIO1   0x00000004

Definition at line 157 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_ACL0   0x00000030 /* SEL2=1 */

Definition at line 164 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_ACL1   0x00000000 /* SEL2=1 */

Definition at line 162 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_ACL2   0x00000020 /* SEL2=1 */

Definition at line 163 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_DRQ2   0x00000000 /* SEL2=0 */

Definition at line 160 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_MASK   0x00000030

Definition at line 150 of file tx4927.h.

#define TX4927_PCFG_DMASEL2_SIO0   0x00000010 /* SEL2=0 */

Definition at line 161 of file tx4927.h.

#define TX4927_PCFG_DMASEL3_ACL1   0x000000c0

Definition at line 168 of file tx4927.h.

#define TX4927_PCFG_DMASEL3_ACL3   0x00000080

Definition at line 167 of file tx4927.h.

#define TX4927_PCFG_DMASEL3_DRQ3   0x00000000

Definition at line 165 of file tx4927.h.

#define TX4927_PCFG_DMASEL3_MASK   0x000000c0

Definition at line 151 of file tx4927.h.

#define TX4927_PCFG_DMASEL3_SIO0   0x00000040

Definition at line 166 of file tx4927.h.

#define TX4927_PCFG_DMASEL_ALL   0x000000ff

Definition at line 147 of file tx4927.h.

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

Definition at line 144 of file tx4927.h.

#define TX4927_PCFG_PCICLKEN_ALL   0x003f0000

Definition at line 143 of file tx4927.h.

#define TX4927_PCFG_SDCLKDLY (   d)    ((d)<<28)

Definition at line 139 of file tx4927.h.

#define TX4927_PCFG_SDCLKDLY_MASK   0x30000000

Definition at line 138 of file tx4927.h.

#define TX4927_PCFG_SDCLKEN (   ch)    (0x00800000<<(ch))

Definition at line 142 of file tx4927.h.

#define TX4927_PCFG_SDCLKEN_ALL   0x07800000

Definition at line 141 of file tx4927.h.

#define TX4927_PCFG_SEL1   0x00000100

Definition at line 146 of file tx4927.h.

#define TX4927_PCFG_SEL2   0x00000200

Definition at line 145 of file tx4927.h.

#define TX4927_PCFG_SYSCLKEN   0x08000000

Definition at line 140 of file tx4927.h.

#define TX4927_PCIC_REG   (TX4927_REG_BASE + 0xd000)

Definition at line 45 of file tx4927.h.

#define tx4927_pcicptr   ((struct tx4927_pcic_reg __iomem *)TX4927_PCIC_REG)

Definition at line 192 of file tx4927.h.

#define TX4927_PIO_REG   (TX4927_REG_BASE + 0xf500)

Definition at line 52 of file tx4927.h.

#define tx4927_pioptr   ((struct txx9_pio_reg __iomem *)TX4927_PIO_REG)

Definition at line 198 of file tx4927.h.

#define TX4927_REG_BASE   0xff1f0000UL

Definition at line 38 of file tx4927.h.

#define TX4927_REG_SIZE   0x00010000

Definition at line 40 of file tx4927.h.

#define TX4927_REV_PCODE ( )    ((__u32)__raw_readq(&tx4927_ccfgptr->crir) >> 16)

Definition at line 200 of file tx4927.h.

#define TX4927_SDRAMC_BA (   ch)    ((TX4927_SDRAMC_CR(ch) >> 49) << 21)

Definition at line 204 of file tx4927.h.

#define TX4927_SDRAMC_CR (   ch)    __raw_readq(&tx4927_sdramcptr->cr[(ch)])

Definition at line 203 of file tx4927.h.

#define TX4927_SDRAMC_REG   (TX4927_REG_BASE + 0x8000)

Definition at line 42 of file tx4927.h.

#define TX4927_SDRAMC_SIZE (   ch)    ((((TX4927_SDRAMC_CR(ch) >> 33) & 0x7fff) + 1) << 21)

Definition at line 205 of file tx4927.h.

#define tx4927_sdramcptr   ((struct tx4927_sdramc_reg __iomem *)TX4927_SDRAMC_REG)

Definition at line 190 of file tx4927.h.

#define TX4927_SIO_REG (   ch)    (TX4927_REG_BASE + 0xf300 + (ch) * 0x100)

Definition at line 51 of file tx4927.h.

#define TX4927_TMR_REG (   ch)    (TX4927_REG_BASE + 0xf000 + (ch) * 0x100)

Definition at line 49 of file tx4927.h.

Function Documentation

void tx4927_aclc_init ( unsigned int  dma_chan_out,
unsigned int  dma_chan_in 
)

Definition at line 268 of file setup_tx4927.c.

void tx4927_dmac_init ( int  memcpy_chan)

Definition at line 257 of file setup_tx4927.c.

unsigned int tx4927_get_mem_size ( void  )

Definition at line 67 of file mem_tx4927.c.

void tx4927_irq_init ( void  )

Definition at line 32 of file irq_tx4927.c.

void tx4927_mtd_init ( int  ch)

Definition at line 244 of file setup_tx4927.c.

int tx4927_pciclk66_setup ( void  )

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

int tx4927_report_pciclk ( void  )

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

void tx4927_setup ( void  )

Definition at line 88 of file setup_tx4927.c.

void tx4927_setup_pcierr_irq ( void  )

Definition at line 84 of file pci-tx4927.c.

void tx4927_sio_init ( unsigned int  sclk,
unsigned int  cts_mask 
)

Definition at line 234 of file setup_tx4927.c.

void tx4927_time_init ( unsigned int  tmrnr)

Definition at line 226 of file setup_tx4927.c.

void tx4927_wdt_init ( void  )

Definition at line 40 of file setup_tx4927.c.