18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Definitions for TX4939 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2000-2001,2005-2006 Toshiba Corporation 58c2ecf20Sopenharmony_ci * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the 68c2ecf20Sopenharmony_ci * terms of the GNU General Public License version 2. This program is 78c2ecf20Sopenharmony_ci * licensed "as is" without any warranty of any kind, whether express 88c2ecf20Sopenharmony_ci * or implied. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef __ASM_TXX9_TX4939_H 118c2ecf20Sopenharmony_ci#define __ASM_TXX9_TX4939_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* some controllers are compatible with 4927/4938 */ 148c2ecf20Sopenharmony_ci#include <asm/txx9/tx4938.h> 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifdef CONFIG_64BIT 178c2ecf20Sopenharmony_ci#define TX4939_REG_BASE 0xffffffffff1f0000UL /* == TX4938_REG_BASE */ 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci#define TX4939_REG_BASE 0xff1f0000UL /* == TX4938_REG_BASE */ 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci#define TX4939_REG_SIZE 0x00010000 /* == TX4938_REG_SIZE */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define TX4939_ATA_REG(ch) (TX4939_REG_BASE + 0x3000 + (ch) * 0x1000) 248c2ecf20Sopenharmony_ci#define TX4939_NDFMC_REG (TX4939_REG_BASE + 0x5000) 258c2ecf20Sopenharmony_ci#define TX4939_SRAMC_REG (TX4939_REG_BASE + 0x6000) 268c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_REG (TX4939_REG_BASE + 0x6800) 278c2ecf20Sopenharmony_ci#define TX4939_PCIC1_REG (TX4939_REG_BASE + 0x7000) 288c2ecf20Sopenharmony_ci#define TX4939_DDRC_REG (TX4939_REG_BASE + 0x8000) 298c2ecf20Sopenharmony_ci#define TX4939_EBUSC_REG (TX4939_REG_BASE + 0x9000) 308c2ecf20Sopenharmony_ci#define TX4939_VPC_REG (TX4939_REG_BASE + 0xa000) 318c2ecf20Sopenharmony_ci#define TX4939_DMA_REG(ch) (TX4939_REG_BASE + 0xb000 + (ch) * 0x800) 328c2ecf20Sopenharmony_ci#define TX4939_PCIC_REG (TX4939_REG_BASE + 0xd000) 338c2ecf20Sopenharmony_ci#define TX4939_CCFG_REG (TX4939_REG_BASE + 0xe000) 348c2ecf20Sopenharmony_ci#define TX4939_IRC_REG (TX4939_REG_BASE + 0xe800) 358c2ecf20Sopenharmony_ci#define TX4939_NR_TMR 6 /* 0xf000,0xf100,0xf200,0xfd00,0xfe00,0xff00 */ 368c2ecf20Sopenharmony_ci#define TX4939_TMR_REG(ch) \ 378c2ecf20Sopenharmony_ci (TX4939_REG_BASE + 0xf000 + ((ch) + ((ch) >= 3) * 10) * 0x100) 388c2ecf20Sopenharmony_ci#define TX4939_NR_SIO 4 /* 0xf300, 0xf400, 0xf380, 0xf480 */ 398c2ecf20Sopenharmony_ci#define TX4939_SIO_REG(ch) \ 408c2ecf20Sopenharmony_ci (TX4939_REG_BASE + 0xf300 + (((ch) & 1) << 8) + (((ch) & 2) << 6)) 418c2ecf20Sopenharmony_ci#define TX4939_ACLC_REG (TX4939_REG_BASE + 0xf700) 428c2ecf20Sopenharmony_ci#define TX4939_SPI_REG (TX4939_REG_BASE + 0xf800) 438c2ecf20Sopenharmony_ci#define TX4939_I2C_REG (TX4939_REG_BASE + 0xf900) 448c2ecf20Sopenharmony_ci#define TX4939_I2S_REG (TX4939_REG_BASE + 0xfa00) 458c2ecf20Sopenharmony_ci#define TX4939_RTC_REG (TX4939_REG_BASE + 0xfb00) 468c2ecf20Sopenharmony_ci#define TX4939_CIR_REG (TX4939_REG_BASE + 0xfc00) 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#define TX4939_RNG_REG (TX4939_CRYPTO_REG + 0xb0) 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_cistruct tx4939_le_reg { 518c2ecf20Sopenharmony_ci __u32 r; 528c2ecf20Sopenharmony_ci __u32 unused; 538c2ecf20Sopenharmony_ci}; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_cistruct tx4939_ddrc_reg { 568c2ecf20Sopenharmony_ci struct tx4939_le_reg ctl[47]; 578c2ecf20Sopenharmony_ci __u64 unused0[17]; 588c2ecf20Sopenharmony_ci __u64 winen; 598c2ecf20Sopenharmony_ci __u64 win[4]; 608c2ecf20Sopenharmony_ci}; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_cistruct tx4939_ccfg_reg { 638c2ecf20Sopenharmony_ci __u64 ccfg; 648c2ecf20Sopenharmony_ci __u64 crir; 658c2ecf20Sopenharmony_ci __u64 pcfg; 668c2ecf20Sopenharmony_ci __u64 toea; 678c2ecf20Sopenharmony_ci __u64 clkctr; 688c2ecf20Sopenharmony_ci __u64 unused0; 698c2ecf20Sopenharmony_ci __u64 garbc; 708c2ecf20Sopenharmony_ci __u64 unused1[2]; 718c2ecf20Sopenharmony_ci __u64 ramp; 728c2ecf20Sopenharmony_ci __u64 unused2[2]; 738c2ecf20Sopenharmony_ci __u64 dskwctrl; 748c2ecf20Sopenharmony_ci __u64 mclkosc; 758c2ecf20Sopenharmony_ci __u64 mclkctl; 768c2ecf20Sopenharmony_ci __u64 unused3[17]; 778c2ecf20Sopenharmony_ci struct { 788c2ecf20Sopenharmony_ci __u64 mr; 798c2ecf20Sopenharmony_ci __u64 dr; 808c2ecf20Sopenharmony_ci } gpio[2]; 818c2ecf20Sopenharmony_ci}; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_cistruct tx4939_irc_reg { 848c2ecf20Sopenharmony_ci struct tx4939_le_reg den; 858c2ecf20Sopenharmony_ci struct tx4939_le_reg scipb; 868c2ecf20Sopenharmony_ci struct tx4939_le_reg dm[2]; 878c2ecf20Sopenharmony_ci struct tx4939_le_reg lvl[16]; 888c2ecf20Sopenharmony_ci struct tx4939_le_reg msk; 898c2ecf20Sopenharmony_ci struct tx4939_le_reg edc; 908c2ecf20Sopenharmony_ci struct tx4939_le_reg pnd0; 918c2ecf20Sopenharmony_ci struct tx4939_le_reg cs; 928c2ecf20Sopenharmony_ci struct tx4939_le_reg pnd1; 938c2ecf20Sopenharmony_ci struct tx4939_le_reg dm2[2]; 948c2ecf20Sopenharmony_ci struct tx4939_le_reg dbr[2]; 958c2ecf20Sopenharmony_ci struct tx4939_le_reg dben; 968c2ecf20Sopenharmony_ci struct tx4939_le_reg unused0[2]; 978c2ecf20Sopenharmony_ci struct tx4939_le_reg flag[2]; 988c2ecf20Sopenharmony_ci struct tx4939_le_reg pol; 998c2ecf20Sopenharmony_ci struct tx4939_le_reg cnt; 1008c2ecf20Sopenharmony_ci struct tx4939_le_reg maskint; 1018c2ecf20Sopenharmony_ci struct tx4939_le_reg maskext; 1028c2ecf20Sopenharmony_ci}; 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_cistruct tx4939_crypto_reg { 1058c2ecf20Sopenharmony_ci struct tx4939_le_reg csr; 1068c2ecf20Sopenharmony_ci struct tx4939_le_reg idesptr; 1078c2ecf20Sopenharmony_ci struct tx4939_le_reg cdesptr; 1088c2ecf20Sopenharmony_ci struct tx4939_le_reg buserr; 1098c2ecf20Sopenharmony_ci struct tx4939_le_reg cip_tout; 1108c2ecf20Sopenharmony_ci struct tx4939_le_reg cir; 1118c2ecf20Sopenharmony_ci union { 1128c2ecf20Sopenharmony_ci struct { 1138c2ecf20Sopenharmony_ci struct tx4939_le_reg data[8]; 1148c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrl; 1158c2ecf20Sopenharmony_ci } gen; 1168c2ecf20Sopenharmony_ci struct { 1178c2ecf20Sopenharmony_ci struct { 1188c2ecf20Sopenharmony_ci struct tx4939_le_reg l; 1198c2ecf20Sopenharmony_ci struct tx4939_le_reg u; 1208c2ecf20Sopenharmony_ci } key[3], ini; 1218c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrl; 1228c2ecf20Sopenharmony_ci } des; 1238c2ecf20Sopenharmony_ci struct { 1248c2ecf20Sopenharmony_ci struct tx4939_le_reg key[4]; 1258c2ecf20Sopenharmony_ci struct tx4939_le_reg ini[4]; 1268c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrl; 1278c2ecf20Sopenharmony_ci } aes; 1288c2ecf20Sopenharmony_ci struct { 1298c2ecf20Sopenharmony_ci struct { 1308c2ecf20Sopenharmony_ci struct tx4939_le_reg l; 1318c2ecf20Sopenharmony_ci struct tx4939_le_reg u; 1328c2ecf20Sopenharmony_ci } cnt; 1338c2ecf20Sopenharmony_ci struct tx4939_le_reg ini[5]; 1348c2ecf20Sopenharmony_ci struct tx4939_le_reg unused; 1358c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrl; 1368c2ecf20Sopenharmony_ci } hash; 1378c2ecf20Sopenharmony_ci } cdr; 1388c2ecf20Sopenharmony_ci struct tx4939_le_reg unused0[7]; 1398c2ecf20Sopenharmony_ci struct tx4939_le_reg rcsr; 1408c2ecf20Sopenharmony_ci struct tx4939_le_reg rpr; 1418c2ecf20Sopenharmony_ci __u64 rdr; 1428c2ecf20Sopenharmony_ci __u64 ror[3]; 1438c2ecf20Sopenharmony_ci struct tx4939_le_reg unused1[2]; 1448c2ecf20Sopenharmony_ci struct tx4939_le_reg xorslr; 1458c2ecf20Sopenharmony_ci struct tx4939_le_reg xorsur; 1468c2ecf20Sopenharmony_ci}; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_cistruct tx4939_crypto_desc { 1498c2ecf20Sopenharmony_ci __u32 src; 1508c2ecf20Sopenharmony_ci __u32 dst; 1518c2ecf20Sopenharmony_ci __u32 next; 1528c2ecf20Sopenharmony_ci __u32 ctrl; 1538c2ecf20Sopenharmony_ci __u32 index; 1548c2ecf20Sopenharmony_ci __u32 xor; 1558c2ecf20Sopenharmony_ci}; 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_cistruct tx4939_vpc_reg { 1588c2ecf20Sopenharmony_ci struct tx4939_le_reg csr; 1598c2ecf20Sopenharmony_ci struct { 1608c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrlA; 1618c2ecf20Sopenharmony_ci struct tx4939_le_reg ctrlB; 1628c2ecf20Sopenharmony_ci struct tx4939_le_reg idesptr; 1638c2ecf20Sopenharmony_ci struct tx4939_le_reg cdesptr; 1648c2ecf20Sopenharmony_ci } port[3]; 1658c2ecf20Sopenharmony_ci struct tx4939_le_reg buserr; 1668c2ecf20Sopenharmony_ci}; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_cistruct tx4939_vpc_desc { 1698c2ecf20Sopenharmony_ci __u32 src; 1708c2ecf20Sopenharmony_ci __u32 next; 1718c2ecf20Sopenharmony_ci __u32 ctrl1; 1728c2ecf20Sopenharmony_ci __u32 ctrl2; 1738c2ecf20Sopenharmony_ci}; 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci/* 1768c2ecf20Sopenharmony_ci * IRC 1778c2ecf20Sopenharmony_ci */ 1788c2ecf20Sopenharmony_ci#define TX4939_IR_NONE 0 1798c2ecf20Sopenharmony_ci#define TX4939_IR_DDR 1 1808c2ecf20Sopenharmony_ci#define TX4939_IR_WTOERR 2 1818c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_INT 3 1828c2ecf20Sopenharmony_ci#define TX4939_IR_INT(n) (3 + (n)) 1838c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_ETH 2 1848c2ecf20Sopenharmony_ci#define TX4939_IR_ETH(n) ((n) ? 43 : 6) 1858c2ecf20Sopenharmony_ci#define TX4939_IR_VIDEO 7 1868c2ecf20Sopenharmony_ci#define TX4939_IR_CIR 8 1878c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_SIO 4 1888c2ecf20Sopenharmony_ci#define TX4939_IR_SIO(n) ((n) ? 43 + (n) : 9) /* 9,44-46 */ 1898c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_DMA 4 1908c2ecf20Sopenharmony_ci#define TX4939_IR_DMA(ch, n) (((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */ 1918c2ecf20Sopenharmony_ci#define TX4939_IR_IRC 14 1928c2ecf20Sopenharmony_ci#define TX4939_IR_PDMAC 15 1938c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_TMR 6 1948c2ecf20Sopenharmony_ci#define TX4939_IR_TMR(n) (((n) >= 3 ? 45 : 16) + (n)) /* 16-18,48-50 */ 1958c2ecf20Sopenharmony_ci#define TX4939_NUM_IR_ATA 2 1968c2ecf20Sopenharmony_ci#define TX4939_IR_ATA(n) (19 + (n)) 1978c2ecf20Sopenharmony_ci#define TX4939_IR_ACLC 21 1988c2ecf20Sopenharmony_ci#define TX4939_IR_CIPHER 26 1998c2ecf20Sopenharmony_ci#define TX4939_IR_INTA 27 2008c2ecf20Sopenharmony_ci#define TX4939_IR_INTB 28 2018c2ecf20Sopenharmony_ci#define TX4939_IR_INTC 29 2028c2ecf20Sopenharmony_ci#define TX4939_IR_INTD 30 2038c2ecf20Sopenharmony_ci#define TX4939_IR_I2C 33 2048c2ecf20Sopenharmony_ci#define TX4939_IR_SPI 34 2058c2ecf20Sopenharmony_ci#define TX4939_IR_PCIC 35 2068c2ecf20Sopenharmony_ci#define TX4939_IR_PCIC1 36 2078c2ecf20Sopenharmony_ci#define TX4939_IR_PCIERR 37 2088c2ecf20Sopenharmony_ci#define TX4939_IR_PCIPME 38 2098c2ecf20Sopenharmony_ci#define TX4939_IR_NDFMC 39 2108c2ecf20Sopenharmony_ci#define TX4939_IR_ACLCPME 40 2118c2ecf20Sopenharmony_ci#define TX4939_IR_RTC 41 2128c2ecf20Sopenharmony_ci#define TX4939_IR_RND 42 2138c2ecf20Sopenharmony_ci#define TX4939_IR_I2S 47 2148c2ecf20Sopenharmony_ci#define TX4939_NUM_IR 64 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci#define TX4939_IRC_INT 2 /* IP[2] in Status register */ 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci/* 2198c2ecf20Sopenharmony_ci * CCFG 2208c2ecf20Sopenharmony_ci */ 2218c2ecf20Sopenharmony_ci/* CCFG : Chip Configuration */ 2228c2ecf20Sopenharmony_ci#define TX4939_CCFG_PCIBOOT 0x0000040000000000ULL 2238c2ecf20Sopenharmony_ci#define TX4939_CCFG_WDRST 0x0000020000000000ULL 2248c2ecf20Sopenharmony_ci#define TX4939_CCFG_WDREXEN 0x0000010000000000ULL 2258c2ecf20Sopenharmony_ci#define TX4939_CCFG_BCFG_MASK 0x000000ff00000000ULL 2268c2ecf20Sopenharmony_ci#define TX4939_CCFG_GTOT_MASK 0x06000000 2278c2ecf20Sopenharmony_ci#define TX4939_CCFG_GTOT_4096 0x06000000 2288c2ecf20Sopenharmony_ci#define TX4939_CCFG_GTOT_2048 0x04000000 2298c2ecf20Sopenharmony_ci#define TX4939_CCFG_GTOT_1024 0x02000000 2308c2ecf20Sopenharmony_ci#define TX4939_CCFG_GTOT_512 0x00000000 2318c2ecf20Sopenharmony_ci#define TX4939_CCFG_TINTDIS 0x01000000 2328c2ecf20Sopenharmony_ci#define TX4939_CCFG_PCI66 0x00800000 2338c2ecf20Sopenharmony_ci#define TX4939_CCFG_PCIMODE 0x00400000 2348c2ecf20Sopenharmony_ci#define TX4939_CCFG_SSCG 0x00100000 2358c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_MASK 0x000e0000 2368c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_8 (0x7 << 17) 2378c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_9 (0x0 << 17) 2388c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_10 (0x1 << 17) 2398c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_11 (0x2 << 17) 2408c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_12 (0x3 << 17) 2418c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_13 (0x4 << 17) 2428c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_14 (0x5 << 17) 2438c2ecf20Sopenharmony_ci#define TX4939_CCFG_MULCLK_15 (0x6 << 17) 2448c2ecf20Sopenharmony_ci#define TX4939_CCFG_BEOW 0x00010000 2458c2ecf20Sopenharmony_ci#define TX4939_CCFG_WR 0x00008000 2468c2ecf20Sopenharmony_ci#define TX4939_CCFG_TOE 0x00004000 2478c2ecf20Sopenharmony_ci#define TX4939_CCFG_PCIARB 0x00002000 2488c2ecf20Sopenharmony_ci#define TX4939_CCFG_YDIVMODE_MASK 0x00001c00 2498c2ecf20Sopenharmony_ci#define TX4939_CCFG_YDIVMODE_2 (0x0 << 10) 2508c2ecf20Sopenharmony_ci#define TX4939_CCFG_YDIVMODE_3 (0x1 << 10) 2518c2ecf20Sopenharmony_ci#define TX4939_CCFG_YDIVMODE_5 (0x6 << 10) 2528c2ecf20Sopenharmony_ci#define TX4939_CCFG_YDIVMODE_6 (0x7 << 10) 2538c2ecf20Sopenharmony_ci#define TX4939_CCFG_PTSEL 0x00000200 2548c2ecf20Sopenharmony_ci#define TX4939_CCFG_BESEL 0x00000100 2558c2ecf20Sopenharmony_ci#define TX4939_CCFG_SYSSP_MASK 0x000000c0 2568c2ecf20Sopenharmony_ci#define TX4939_CCFG_ACKSEL 0x00000020 2578c2ecf20Sopenharmony_ci#define TX4939_CCFG_ROMW 0x00000010 2588c2ecf20Sopenharmony_ci#define TX4939_CCFG_ENDIAN 0x00000004 2598c2ecf20Sopenharmony_ci#define TX4939_CCFG_ARMODE 0x00000002 2608c2ecf20Sopenharmony_ci#define TX4939_CCFG_ACEHOLD 0x00000001 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci/* PCFG : Pin Configuration */ 2638c2ecf20Sopenharmony_ci#define TX4939_PCFG_SIO2MODE_MASK 0xc000000000000000ULL 2648c2ecf20Sopenharmony_ci#define TX4939_PCFG_SIO2MODE_GPIO 0x8000000000000000ULL 2658c2ecf20Sopenharmony_ci#define TX4939_PCFG_SIO2MODE_SIO2 0x4000000000000000ULL 2668c2ecf20Sopenharmony_ci#define TX4939_PCFG_SIO2MODE_SIO0 0x0000000000000000ULL 2678c2ecf20Sopenharmony_ci#define TX4939_PCFG_SPIMODE 0x2000000000000000ULL 2688c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2CMODE 0x1000000000000000ULL 2698c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2SMODE_MASK 0x0c00000000000000ULL 2708c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2SMODE_GPIO 0x0c00000000000000ULL 2718c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2SMODE_I2S 0x0800000000000000ULL 2728c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2SMODE_I2S_ALT 0x0400000000000000ULL 2738c2ecf20Sopenharmony_ci#define TX4939_PCFG_I2SMODE_ACLC 0x0000000000000000ULL 2748c2ecf20Sopenharmony_ci#define TX4939_PCFG_SIO3MODE 0x0200000000000000ULL 2758c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL3 0x0004000000000000ULL 2768c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL3_SIO0 0x0004000000000000ULL 2778c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL3_NDFC 0x0000000000000000ULL 2788c2ecf20Sopenharmony_ci#define TX4939_PCFG_VSSMODE 0x0000200000000000ULL 2798c2ecf20Sopenharmony_ci#define TX4939_PCFG_VPSMODE 0x0000100000000000ULL 2808c2ecf20Sopenharmony_ci#define TX4939_PCFG_ET1MODE 0x0000080000000000ULL 2818c2ecf20Sopenharmony_ci#define TX4939_PCFG_ET0MODE 0x0000040000000000ULL 2828c2ecf20Sopenharmony_ci#define TX4939_PCFG_ATA1MODE 0x0000020000000000ULL 2838c2ecf20Sopenharmony_ci#define TX4939_PCFG_ATA0MODE 0x0000010000000000ULL 2848c2ecf20Sopenharmony_ci#define TX4939_PCFG_BP_PLL 0x0000000100000000ULL 2858c2ecf20Sopenharmony_ci 2868c2ecf20Sopenharmony_ci#define TX4939_PCFG_SYSCLKEN 0x08000000 2878c2ecf20Sopenharmony_ci#define TX4939_PCFG_PCICLKEN_ALL 0x000f0000 2888c2ecf20Sopenharmony_ci#define TX4939_PCFG_PCICLKEN(ch) (0x00010000<<(ch)) 2898c2ecf20Sopenharmony_ci#define TX4939_PCFG_SPEED1 0x00002000 2908c2ecf20Sopenharmony_ci#define TX4939_PCFG_SPEED0 0x00001000 2918c2ecf20Sopenharmony_ci#define TX4939_PCFG_ITMODE 0x00000300 2928c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL_ALL (0x00000007 | TX4939_PCFG_DMASEL3) 2938c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL2 0x00000004 2948c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL2_DRQ2 0x00000000 2958c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL2_SIO0 0x00000004 2968c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL1 0x00000002 2978c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL1_DRQ1 0x00000000 2988c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL0 0x00000001 2998c2ecf20Sopenharmony_ci#define TX4939_PCFG_DMASEL0_DRQ0 0x00000000 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci/* CLKCTR : Clock Control */ 3028c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_IOSCKD 0x8000000000000000ULL 3038c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SYSCKD 0x4000000000000000ULL 3048c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM5CKD 0x2000000000000000ULL 3058c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM4CKD 0x1000000000000000ULL 3068c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM3CKD 0x0800000000000000ULL 3078c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_CIRCKD 0x0400000000000000ULL 3088c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO3CKD 0x0200000000000000ULL 3098c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO2CKD 0x0100000000000000ULL 3108c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO1CKD 0x0080000000000000ULL 3118c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_VPCCKD 0x0040000000000000ULL 3128c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_EPCICKD 0x0020000000000000ULL 3138c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ETH1CKD 0x0008000000000000ULL 3148c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ATA1CKD 0x0004000000000000ULL 3158c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_BROMCKD 0x0002000000000000ULL 3168c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_NDCCKD 0x0001000000000000ULL 3178c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_I2CCKD 0x0000800000000000ULL 3188c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ETH0CKD 0x0000400000000000ULL 3198c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SPICKD 0x0000200000000000ULL 3208c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SRAMCKD 0x0000100000000000ULL 3218c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_PCI1CKD 0x0000080000000000ULL 3228c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_DMA1CKD 0x0000040000000000ULL 3238c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ACLCKD 0x0000020000000000ULL 3248c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ATA0CKD 0x0000010000000000ULL 3258c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_DMA0CKD 0x0000008000000000ULL 3268c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_PCICCKD 0x0000004000000000ULL 3278c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_I2SCKD 0x0000002000000000ULL 3288c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM0CKD 0x0000001000000000ULL 3298c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM1CKD 0x0000000800000000ULL 3308c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM2CKD 0x0000000400000000ULL 3318c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO0CKD 0x0000000200000000ULL 3328c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_CYPCKD 0x0000000100000000ULL 3338c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_IOSRST 0x80000000 3348c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SYSRST 0x40000000 3358c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM5RST 0x20000000 3368c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM4RST 0x10000000 3378c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM3RST 0x08000000 3388c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_CIRRST 0x04000000 3398c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO3RST 0x02000000 3408c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO2RST 0x01000000 3418c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO1RST 0x00800000 3428c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_VPCRST 0x00400000 3438c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_EPCIRST 0x00200000 3448c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ETH1RST 0x00080000 3458c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ATA1RST 0x00040000 3468c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_BROMRST 0x00020000 3478c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_NDCRST 0x00010000 3488c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_I2CRST 0x00008000 3498c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ETH0RST 0x00004000 3508c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SPIRST 0x00002000 3518c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SRAMRST 0x00001000 3528c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_PCI1RST 0x00000800 3538c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_DMA1RST 0x00000400 3548c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ACLRST 0x00000200 3558c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_ATA0RST 0x00000100 3568c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_DMA0RST 0x00000080 3578c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_PCICRST 0x00000040 3588c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_I2SRST 0x00000020 3598c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM0RST 0x00000010 3608c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM1RST 0x00000008 3618c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_TM2RST 0x00000004 3628c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_SIO0RST 0x00000002 3638c2ecf20Sopenharmony_ci#define TX4939_CLKCTR_CYPRST 0x00000001 3648c2ecf20Sopenharmony_ci 3658c2ecf20Sopenharmony_ci/* 3668c2ecf20Sopenharmony_ci * CRYPTO 3678c2ecf20Sopenharmony_ci */ 3688c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_SAESO 0x08000000 3698c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_SAESI 0x04000000 3708c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_SDESO 0x02000000 3718c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_SDESI 0x01000000 3728c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_INDXBST_MASK 0x00700000 3738c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_INDXBST(n) ((n) << 20) 3748c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_TOINT 0x00080000 3758c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_DCINT 0x00040000 3768c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_GBINT 0x00010000 3778c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_INDXAST_MASK 0x0000e000 3788c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_INDXAST(n) ((n) << 13) 3798c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CSWAP_MASK 0x00001800 3808c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CSWAP_NONE 0x00000000 3818c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CSWAP_IN 0x00000800 3828c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CSWAP_OUT 0x00001000 3838c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CSWAP_BOTH 0x00001800 3848c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CDIV_MASK 0x00000600 3858c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CDIV_DIV2 0x00000000 3868c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CDIV_DIV1 0x00000200 3878c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CDIV_DIV2ALT 0x00000400 3888c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_CDIV_DIV1ALT 0x00000600 3898c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_PDINT_MASK 0x000000c0 3908c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_PDINT_ALL 0x00000000 3918c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_PDINT_END 0x00000040 3928c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_PDINT_NEXT 0x00000080 3938c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_PDINT_NONE 0x000000c0 3948c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_GINTE 0x00000008 3958c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_RSTD 0x00000004 3968c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_RSTC 0x00000002 3978c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CSR_ENCR 0x00000001 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_ci/* bits for tx4939_crypto_reg.cdr.gen.ctrl */ 4008c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_ENGINE_MASK 0x00000003 4018c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_ENGINE_DES 0x00000000 4028c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_ENGINE_AES 0x00000001 4038c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_ENGINE_MD5 0x00000002 4048c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_ENGINE_SHA1 0x00000003 4058c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_TDMS 0x00000010 4068c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_CMS 0x00000020 4078c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_DMS 0x00000040 4088c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_CTX_UPDATE 0x00000080 4098c2ecf20Sopenharmony_ci 4108c2ecf20Sopenharmony_ci/* bits for tx4939_crypto_desc.ctrl */ 4118c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_OB_CNT_MASK 0xffe00000 4128c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_OB_CNT(cnt) ((cnt) << 21) 4138c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_IB_CNT_MASK 0x001ffc00 4148c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_IB_CNT(cnt) ((cnt) << 10) 4158c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_START 0x00000200 4168c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_END 0x00000100 4178c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_XOR 0x00000010 4188c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_LAST 0x00000008 4198c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ERR_MASK 0x00000006 4208c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ERR_NONE 0x00000000 4218c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ERR_TOUT 0x00000002 4228c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ERR_DIGEST 0x00000004 4238c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_OWN 0x00000001 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci/* bits for tx4939_crypto_desc.index */ 4268c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_HASH_IDX_MASK 0x00000070 4278c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_HASH_IDX(idx) ((idx) << 4) 4288c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ENCRYPT_IDX_MASK 0x00000007 4298c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_DESC_ENCRYPT_IDX(idx) ((idx) << 0) 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_NR_SET 6 4328c2ecf20Sopenharmony_ci 4338c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_RCSR_INTE 0x00000008 4348c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_RCSR_RST 0x00000004 4358c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_RCSR_FIN 0x00000002 4368c2ecf20Sopenharmony_ci#define TX4939_CRYPTO_RCSR_ST 0x00000001 4378c2ecf20Sopenharmony_ci 4388c2ecf20Sopenharmony_ci/* 4398c2ecf20Sopenharmony_ci * VPC 4408c2ecf20Sopenharmony_ci */ 4418c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_GBINT 0x00010000 4428c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_SWAPO 0x00000020 4438c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_SWAPI 0x00000010 4448c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_GINTE 0x00000008 4458c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_RSTD 0x00000004 4468c2ecf20Sopenharmony_ci#define TX4939_VPC_CSR_RSTVPC 0x00000002 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_VDPSN 0x00000200 4498c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_PBUSY 0x00000100 4508c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_DCINT 0x00000080 4518c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_UOINT 0x00000040 4528c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_PDINT_MASK 0x00000030 4538c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_PDINT_ALL 0x00000000 4548c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_PDINT_NEXT 0x00000010 4558c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_PDINT_NONE 0x00000030 4568c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_VDVLDP 0x00000008 4578c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_VDMODE 0x00000004 4588c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_VDFOR 0x00000002 4598c2ecf20Sopenharmony_ci#define TX4939_VPC_CTRLA_ENVPC 0x00000001 4608c2ecf20Sopenharmony_ci 4618c2ecf20Sopenharmony_ci/* bits for tx4939_vpc_desc.ctrl1 */ 4628c2ecf20Sopenharmony_ci#define TX4939_VPC_DESC_CTRL1_ERR_MASK 0x00000006 4638c2ecf20Sopenharmony_ci#define TX4939_VPC_DESC_CTRL1_OWN 0x00000001 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_ci#define tx4939_ddrcptr ((struct tx4939_ddrc_reg __iomem *)TX4939_DDRC_REG) 4668c2ecf20Sopenharmony_ci#define tx4939_ebuscptr tx4938_ebuscptr 4678c2ecf20Sopenharmony_ci#define tx4939_ircptr \ 4688c2ecf20Sopenharmony_ci ((struct tx4939_irc_reg __iomem *)TX4939_IRC_REG) 4698c2ecf20Sopenharmony_ci#define tx4939_pcicptr tx4938_pcicptr 4708c2ecf20Sopenharmony_ci#define tx4939_pcic1ptr tx4938_pcic1ptr 4718c2ecf20Sopenharmony_ci#define tx4939_ccfgptr \ 4728c2ecf20Sopenharmony_ci ((struct tx4939_ccfg_reg __iomem *)TX4939_CCFG_REG) 4738c2ecf20Sopenharmony_ci#define tx4939_sramcptr tx4938_sramcptr 4748c2ecf20Sopenharmony_ci#define tx4939_cryptoptr \ 4758c2ecf20Sopenharmony_ci ((struct tx4939_crypto_reg __iomem *)TX4939_CRYPTO_REG) 4768c2ecf20Sopenharmony_ci#define tx4939_vpcptr ((struct tx4939_vpc_reg __iomem *)TX4939_VPC_REG) 4778c2ecf20Sopenharmony_ci 4788c2ecf20Sopenharmony_ci#define TX4939_REV_MAJ_MIN() \ 4798c2ecf20Sopenharmony_ci ((__u32)__raw_readq(&tx4939_ccfgptr->crir) & 0x00ff) 4808c2ecf20Sopenharmony_ci#define TX4939_REV_PCODE() \ 4818c2ecf20Sopenharmony_ci ((__u32)__raw_readq(&tx4939_ccfgptr->crir) >> 16) 4828c2ecf20Sopenharmony_ci#define TX4939_CCFG_BCFG() \ 4838c2ecf20Sopenharmony_ci ((__u32)((__raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_BCFG_MASK) \ 4848c2ecf20Sopenharmony_ci >> 32)) 4858c2ecf20Sopenharmony_ci 4868c2ecf20Sopenharmony_ci#define tx4939_ccfg_clear(bits) tx4938_ccfg_clear(bits) 4878c2ecf20Sopenharmony_ci#define tx4939_ccfg_set(bits) tx4938_ccfg_set(bits) 4888c2ecf20Sopenharmony_ci#define tx4939_ccfg_change(change, new) tx4938_ccfg_change(change, new) 4898c2ecf20Sopenharmony_ci 4908c2ecf20Sopenharmony_ci#define TX4939_EBUSC_CR(ch) TX4927_EBUSC_CR(ch) 4918c2ecf20Sopenharmony_ci#define TX4939_EBUSC_BA(ch) TX4927_EBUSC_BA(ch) 4928c2ecf20Sopenharmony_ci#define TX4939_EBUSC_SIZE(ch) TX4927_EBUSC_SIZE(ch) 4938c2ecf20Sopenharmony_ci#define TX4939_EBUSC_WIDTH(ch) \ 4948c2ecf20Sopenharmony_ci (16 >> ((__u32)(TX4939_EBUSC_CR(ch) >> 20) & 0x1)) 4958c2ecf20Sopenharmony_ci 4968c2ecf20Sopenharmony_ci/* SCLK0 = MSTCLK * 429/19 * 16/245 / 2 (14.745MHz for MST 20MHz) */ 4978c2ecf20Sopenharmony_ci#define TX4939_SCLK0(mst) \ 4988c2ecf20Sopenharmony_ci ((((mst) + 245/2) / 245UL * 429 * 16 + 19) / 19 / 2) 4998c2ecf20Sopenharmony_ci 5008c2ecf20Sopenharmony_civoid tx4939_wdt_init(void); 5018c2ecf20Sopenharmony_civoid tx4939_setup(void); 5028c2ecf20Sopenharmony_civoid tx4939_time_init(unsigned int tmrnr); 5038c2ecf20Sopenharmony_civoid tx4939_sio_init(unsigned int sclk, unsigned int cts_mask); 5048c2ecf20Sopenharmony_civoid tx4939_spi_init(int busid); 5058c2ecf20Sopenharmony_civoid tx4939_ethaddr_init(unsigned char *addr0, unsigned char *addr1); 5068c2ecf20Sopenharmony_ciint tx4939_report_pciclk(void); 5078c2ecf20Sopenharmony_civoid tx4939_report_pci1clk(void); 5088c2ecf20Sopenharmony_cistruct pci_dev; 5098c2ecf20Sopenharmony_ciint tx4939_pcic1_map_irq(const struct pci_dev *dev, u8 slot); 5108c2ecf20Sopenharmony_ciint tx4939_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); 5118c2ecf20Sopenharmony_civoid tx4939_setup_pcierr_irq(void); 5128c2ecf20Sopenharmony_civoid tx4939_irq_init(void); 5138c2ecf20Sopenharmony_ciint tx4939_irq(void); 5148c2ecf20Sopenharmony_civoid tx4939_mtd_init(int ch); 5158c2ecf20Sopenharmony_civoid tx4939_ata_init(void); 5168c2ecf20Sopenharmony_civoid tx4939_rtc_init(void); 5178c2ecf20Sopenharmony_civoid tx4939_ndfmc_init(unsigned int hold, unsigned int spw, 5188c2ecf20Sopenharmony_ci unsigned char ch_mask, unsigned char wide_mask); 5198c2ecf20Sopenharmony_civoid tx4939_dmac_init(int memcpy_chan0, int memcpy_chan1); 5208c2ecf20Sopenharmony_civoid tx4939_aclc_init(void); 5218c2ecf20Sopenharmony_civoid tx4939_sramc_init(void); 5228c2ecf20Sopenharmony_civoid tx4939_rng_init(void); 5238c2ecf20Sopenharmony_ci 5248c2ecf20Sopenharmony_ci#endif /* __ASM_TXX9_TX4939_H */ 525