diff options
Diffstat (limited to 'include/asm-mips/txx9/tx3927.h')
| -rw-r--r-- | include/asm-mips/txx9/tx3927.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/include/asm-mips/txx9/tx3927.h b/include/asm-mips/txx9/tx3927.h index ea79e1b16e71..587deb9592d2 100644 --- a/include/asm-mips/txx9/tx3927.h +++ b/include/asm-mips/txx9/tx3927.h | |||
| @@ -8,9 +8,8 @@ | |||
| 8 | #ifndef __ASM_TXX9_TX3927_H | 8 | #ifndef __ASM_TXX9_TX3927_H |
| 9 | #define __ASM_TXX9_TX3927_H | 9 | #define __ASM_TXX9_TX3927_H |
| 10 | 10 | ||
| 11 | #include <asm/txx9/txx927.h> | ||
| 12 | |||
| 13 | #define TX3927_REG_BASE 0xfffe0000UL | 11 | #define TX3927_REG_BASE 0xfffe0000UL |
| 12 | #define TX3927_REG_SIZE 0x00010000 | ||
| 14 | #define TX3927_SDRAMC_REG (TX3927_REG_BASE + 0x8000) | 13 | #define TX3927_SDRAMC_REG (TX3927_REG_BASE + 0x8000) |
| 15 | #define TX3927_ROMC_REG (TX3927_REG_BASE + 0x9000) | 14 | #define TX3927_ROMC_REG (TX3927_REG_BASE + 0x9000) |
| 16 | #define TX3927_DMA_REG (TX3927_REG_BASE + 0xb000) | 15 | #define TX3927_DMA_REG (TX3927_REG_BASE + 0xb000) |
| @@ -236,11 +235,17 @@ struct tx3927_ccfg_reg { | |||
| 236 | /* see PCI_STATUS_XXX in linux/pci.h */ | 235 | /* see PCI_STATUS_XXX in linux/pci.h */ |
| 237 | #define PCI_STATUS_NEW_CAP 0x0010 | 236 | #define PCI_STATUS_NEW_CAP 0x0010 |
| 238 | 237 | ||
| 238 | /* bits for ISTAT/IIM */ | ||
| 239 | #define TX3927_PCIC_IIM_ALL 0x00001600 | ||
| 240 | |||
| 239 | /* bits for TC */ | 241 | /* bits for TC */ |
| 240 | #define TX3927_PCIC_TC_OF16E 0x00000020 | 242 | #define TX3927_PCIC_TC_OF16E 0x00000020 |
| 241 | #define TX3927_PCIC_TC_IF8E 0x00000010 | 243 | #define TX3927_PCIC_TC_IF8E 0x00000010 |
| 242 | #define TX3927_PCIC_TC_OF8E 0x00000008 | 244 | #define TX3927_PCIC_TC_OF8E 0x00000008 |
| 243 | 245 | ||
| 246 | /* bits for TSTAT/TIM */ | ||
| 247 | #define TX3927_PCIC_TIM_ALL 0x0003ffff | ||
| 248 | |||
| 244 | /* bits for IOBA/MBA */ | 249 | /* bits for IOBA/MBA */ |
| 245 | /* see PCI_BASE_ADDRESS_XXX in linux/pci.h */ | 250 | /* see PCI_BASE_ADDRESS_XXX in linux/pci.h */ |
| 246 | 251 | ||
| @@ -313,12 +318,22 @@ struct tx3927_ccfg_reg { | |||
| 313 | #define tx3927_dmaptr ((struct tx3927_dma_reg *)TX3927_DMA_REG) | 318 | #define tx3927_dmaptr ((struct tx3927_dma_reg *)TX3927_DMA_REG) |
| 314 | #define tx3927_pcicptr ((struct tx3927_pcic_reg *)TX3927_PCIC_REG) | 319 | #define tx3927_pcicptr ((struct tx3927_pcic_reg *)TX3927_PCIC_REG) |
| 315 | #define tx3927_ccfgptr ((struct tx3927_ccfg_reg *)TX3927_CCFG_REG) | 320 | #define tx3927_ccfgptr ((struct tx3927_ccfg_reg *)TX3927_CCFG_REG) |
| 316 | #define tx3927_tmrptr(ch) ((struct txx927_tmr_reg *)TX3927_TMR_REG(ch)) | ||
| 317 | #define tx3927_sioptr(ch) ((struct txx927_sio_reg *)TX3927_SIO_REG(ch)) | 321 | #define tx3927_sioptr(ch) ((struct txx927_sio_reg *)TX3927_SIO_REG(ch)) |
| 318 | #define tx3927_pioptr ((struct txx9_pio_reg __iomem *)TX3927_PIO_REG) | 322 | #define tx3927_pioptr ((struct txx9_pio_reg __iomem *)TX3927_PIO_REG) |
| 319 | 323 | ||
| 324 | #define TX3927_REV_PCODE() (tx3927_ccfgptr->crir >> 16) | ||
| 325 | #define TX3927_ROMC_BA(ch) (tx3927_romcptr->cr[(ch)] & 0xfff00000) | ||
| 326 | #define TX3927_ROMC_SIZE(ch) \ | ||
| 327 | (0x00100000 << ((tx3927_romcptr->cr[(ch)] >> 8) & 0xf)) | ||
| 328 | |||
| 329 | void tx3927_wdt_init(void); | ||
| 330 | void tx3927_setup(void); | ||
| 331 | void tx3927_time_init(unsigned int evt_tmrnr, unsigned int src_tmrnr); | ||
| 332 | void tx3927_sio_init(unsigned int sclk, unsigned int cts_mask); | ||
| 320 | struct pci_controller; | 333 | struct pci_controller; |
| 321 | void __init tx3927_pcic_setup(struct pci_controller *channel, | 334 | void tx3927_pcic_setup(struct pci_controller *channel, |
| 322 | unsigned long sdram_size, int extarb); | 335 | unsigned long sdram_size, int extarb); |
| 336 | void tx3927_setup_pcierr_irq(void); | ||
| 337 | void tx3927_irq_init(void); | ||
| 323 | 338 | ||
| 324 | #endif /* __ASM_TXX9_TX3927_H */ | 339 | #endif /* __ASM_TXX9_TX3927_H */ |
