18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Author: MontaVista Software, Inc. 38c2ecf20Sopenharmony_ci * source@mvista.com 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2001-2006 MontaVista Software Inc. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it 88c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License as published by the 98c2ecf20Sopenharmony_ci * Free Software Foundation; either version 2 of the License, or (at your 108c2ecf20Sopenharmony_ci * option) any later version. 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 138c2ecf20Sopenharmony_ci * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 148c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 158c2ecf20Sopenharmony_ci * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 168c2ecf20Sopenharmony_ci * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 178c2ecf20Sopenharmony_ci * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 188c2ecf20Sopenharmony_ci * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 198c2ecf20Sopenharmony_ci * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 208c2ecf20Sopenharmony_ci * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 218c2ecf20Sopenharmony_ci * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License along 248c2ecf20Sopenharmony_ci * with this program; if not, write to the Free Software Foundation, Inc., 258c2ecf20Sopenharmony_ci * 675 Mass Ave, Cambridge, MA 02139, USA. 268c2ecf20Sopenharmony_ci */ 278c2ecf20Sopenharmony_ci#ifndef __ASM_TXX9_TX4927_H 288c2ecf20Sopenharmony_ci#define __ASM_TXX9_TX4927_H 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#include <linux/types.h> 318c2ecf20Sopenharmony_ci#include <linux/io.h> 328c2ecf20Sopenharmony_ci#include <asm/txx9irq.h> 338c2ecf20Sopenharmony_ci#include <asm/txx9/tx4927pcic.h> 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#ifdef CONFIG_64BIT 368c2ecf20Sopenharmony_ci#define TX4927_REG_BASE 0xffffffffff1f0000UL 378c2ecf20Sopenharmony_ci#else 388c2ecf20Sopenharmony_ci#define TX4927_REG_BASE 0xff1f0000UL 398c2ecf20Sopenharmony_ci#endif 408c2ecf20Sopenharmony_ci#define TX4927_REG_SIZE 0x00010000 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci#define TX4927_SDRAMC_REG (TX4927_REG_BASE + 0x8000) 438c2ecf20Sopenharmony_ci#define TX4927_EBUSC_REG (TX4927_REG_BASE + 0x9000) 448c2ecf20Sopenharmony_ci#define TX4927_DMA_REG (TX4927_REG_BASE + 0xb000) 458c2ecf20Sopenharmony_ci#define TX4927_PCIC_REG (TX4927_REG_BASE + 0xd000) 468c2ecf20Sopenharmony_ci#define TX4927_CCFG_REG (TX4927_REG_BASE + 0xe000) 478c2ecf20Sopenharmony_ci#define TX4927_IRC_REG (TX4927_REG_BASE + 0xf600) 488c2ecf20Sopenharmony_ci#define TX4927_NR_TMR 3 498c2ecf20Sopenharmony_ci#define TX4927_TMR_REG(ch) (TX4927_REG_BASE + 0xf000 + (ch) * 0x100) 508c2ecf20Sopenharmony_ci#define TX4927_NR_SIO 2 518c2ecf20Sopenharmony_ci#define TX4927_SIO_REG(ch) (TX4927_REG_BASE + 0xf300 + (ch) * 0x100) 528c2ecf20Sopenharmony_ci#define TX4927_PIO_REG (TX4927_REG_BASE + 0xf500) 538c2ecf20Sopenharmony_ci#define TX4927_ACLC_REG (TX4927_REG_BASE + 0xf700) 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define TX4927_IR_ECCERR 0 568c2ecf20Sopenharmony_ci#define TX4927_IR_WTOERR 1 578c2ecf20Sopenharmony_ci#define TX4927_NUM_IR_INT 6 588c2ecf20Sopenharmony_ci#define TX4927_IR_INT(n) (2 + (n)) 598c2ecf20Sopenharmony_ci#define TX4927_NUM_IR_SIO 2 608c2ecf20Sopenharmony_ci#define TX4927_IR_SIO(n) (8 + (n)) 618c2ecf20Sopenharmony_ci#define TX4927_NUM_IR_DMA 4 628c2ecf20Sopenharmony_ci#define TX4927_IR_DMA(n) (10 + (n)) 638c2ecf20Sopenharmony_ci#define TX4927_IR_PIO 14 648c2ecf20Sopenharmony_ci#define TX4927_IR_PDMAC 15 658c2ecf20Sopenharmony_ci#define TX4927_IR_PCIC 16 668c2ecf20Sopenharmony_ci#define TX4927_NUM_IR_TMR 3 678c2ecf20Sopenharmony_ci#define TX4927_IR_TMR(n) (17 + (n)) 688c2ecf20Sopenharmony_ci#define TX4927_IR_PCIERR 22 698c2ecf20Sopenharmony_ci#define TX4927_IR_PCIPME 23 708c2ecf20Sopenharmony_ci#define TX4927_IR_ACLC 24 718c2ecf20Sopenharmony_ci#define TX4927_IR_ACLCPME 25 728c2ecf20Sopenharmony_ci#define TX4927_NUM_IR 32 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci#define TX4927_IRC_INT 2 /* IP[2] in Status register */ 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define TX4927_NUM_PIO 16 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_cistruct tx4927_sdramc_reg { 798c2ecf20Sopenharmony_ci u64 cr[4]; 808c2ecf20Sopenharmony_ci u64 unused0[4]; 818c2ecf20Sopenharmony_ci u64 tr; 828c2ecf20Sopenharmony_ci u64 unused1[2]; 838c2ecf20Sopenharmony_ci u64 cmd; 848c2ecf20Sopenharmony_ci}; 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_cistruct tx4927_ebusc_reg { 878c2ecf20Sopenharmony_ci u64 cr[8]; 888c2ecf20Sopenharmony_ci}; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_cistruct tx4927_ccfg_reg { 918c2ecf20Sopenharmony_ci u64 ccfg; 928c2ecf20Sopenharmony_ci u64 crir; 938c2ecf20Sopenharmony_ci u64 pcfg; 948c2ecf20Sopenharmony_ci u64 toea; 958c2ecf20Sopenharmony_ci u64 clkctr; 968c2ecf20Sopenharmony_ci u64 unused0; 978c2ecf20Sopenharmony_ci u64 garbc; 988c2ecf20Sopenharmony_ci u64 unused1; 998c2ecf20Sopenharmony_ci u64 unused2; 1008c2ecf20Sopenharmony_ci u64 ramp; 1018c2ecf20Sopenharmony_ci}; 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci/* 1048c2ecf20Sopenharmony_ci * CCFG 1058c2ecf20Sopenharmony_ci */ 1068c2ecf20Sopenharmony_ci/* CCFG : Chip Configuration */ 1078c2ecf20Sopenharmony_ci#define TX4927_CCFG_WDRST 0x0000020000000000ULL 1088c2ecf20Sopenharmony_ci#define TX4927_CCFG_WDREXEN 0x0000010000000000ULL 1098c2ecf20Sopenharmony_ci#define TX4927_CCFG_BCFG_MASK 0x000000ff00000000ULL 1108c2ecf20Sopenharmony_ci#define TX4927_CCFG_TINTDIS 0x01000000 1118c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCI66 0x00800000 1128c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIMODE 0x00400000 1138c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_MASK 0x000e0000 1148c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_8 (0x0 << 17) 1158c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_12 (0x1 << 17) 1168c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_16 (0x2 << 17) 1178c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_10 (0x3 << 17) 1188c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_2 (0x4 << 17) 1198c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_3 (0x5 << 17) 1208c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_4 (0x6 << 17) 1218c2ecf20Sopenharmony_ci#define TX4927_CCFG_DIVMODE_2_5 (0x7 << 17) 1228c2ecf20Sopenharmony_ci#define TX4927_CCFG_BEOW 0x00010000 1238c2ecf20Sopenharmony_ci#define TX4927_CCFG_WR 0x00008000 1248c2ecf20Sopenharmony_ci#define TX4927_CCFG_TOE 0x00004000 1258c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIARB 0x00002000 1268c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIDIVMODE_MASK 0x00001800 1278c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIDIVMODE_2_5 0x00000000 1288c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIDIVMODE_3 0x00000800 1298c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIDIVMODE_5 0x00001000 1308c2ecf20Sopenharmony_ci#define TX4927_CCFG_PCIDIVMODE_6 0x00001800 1318c2ecf20Sopenharmony_ci#define TX4927_CCFG_SYSSP_MASK 0x000000c0 1328c2ecf20Sopenharmony_ci#define TX4927_CCFG_ENDIAN 0x00000004 1338c2ecf20Sopenharmony_ci#define TX4927_CCFG_HALT 0x00000002 1348c2ecf20Sopenharmony_ci#define TX4927_CCFG_ACEHOLD 0x00000001 1358c2ecf20Sopenharmony_ci#define TX4927_CCFG_W1CBITS (TX4927_CCFG_WDRST | TX4927_CCFG_BEOW) 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci/* PCFG : Pin Configuration */ 1388c2ecf20Sopenharmony_ci#define TX4927_PCFG_SDCLKDLY_MASK 0x30000000 1398c2ecf20Sopenharmony_ci#define TX4927_PCFG_SDCLKDLY(d) ((d)<<28) 1408c2ecf20Sopenharmony_ci#define TX4927_PCFG_SYSCLKEN 0x08000000 1418c2ecf20Sopenharmony_ci#define TX4927_PCFG_SDCLKEN_ALL 0x07800000 1428c2ecf20Sopenharmony_ci#define TX4927_PCFG_SDCLKEN(ch) (0x00800000<<(ch)) 1438c2ecf20Sopenharmony_ci#define TX4927_PCFG_PCICLKEN_ALL 0x003f0000 1448c2ecf20Sopenharmony_ci#define TX4927_PCFG_PCICLKEN(ch) (0x00010000<<(ch)) 1458c2ecf20Sopenharmony_ci#define TX4927_PCFG_SEL2 0x00000200 1468c2ecf20Sopenharmony_ci#define TX4927_PCFG_SEL1 0x00000100 1478c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL_ALL 0x000000ff 1488c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL0_MASK 0x00000003 1498c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL1_MASK 0x0000000c 1508c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_MASK 0x00000030 1518c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL3_MASK 0x000000c0 1528c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL0_DRQ0 0x00000000 1538c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL0_SIO1 0x00000001 1548c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL0_ACL0 0x00000002 1558c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL0_ACL2 0x00000003 1568c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL1_DRQ1 0x00000000 1578c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL1_SIO1 0x00000004 1588c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL1_ACL1 0x00000008 1598c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL1_ACL3 0x0000000c 1608c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_DRQ2 0x00000000 /* SEL2=0 */ 1618c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_SIO0 0x00000010 /* SEL2=0 */ 1628c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_ACL1 0x00000000 /* SEL2=1 */ 1638c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_ACL2 0x00000020 /* SEL2=1 */ 1648c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL2_ACL0 0x00000030 /* SEL2=1 */ 1658c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL3_DRQ3 0x00000000 1668c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL3_SIO0 0x00000040 1678c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL3_ACL3 0x00000080 1688c2ecf20Sopenharmony_ci#define TX4927_PCFG_DMASEL3_ACL1 0x000000c0 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci/* CLKCTR : Clock Control */ 1718c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_ACLCKD 0x02000000 1728c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_PIOCKD 0x01000000 1738c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_DMACKD 0x00800000 1748c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_PCICKD 0x00400000 1758c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM0CKD 0x00100000 1768c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM1CKD 0x00080000 1778c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM2CKD 0x00040000 1788c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_SIO0CKD 0x00020000 1798c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_SIO1CKD 0x00010000 1808c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_ACLRST 0x00000200 1818c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_PIORST 0x00000100 1828c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_DMARST 0x00000080 1838c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_PCIRST 0x00000040 1848c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM0RST 0x00000010 1858c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM1RST 0x00000008 1868c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_TM2RST 0x00000004 1878c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_SIO0RST 0x00000002 1888c2ecf20Sopenharmony_ci#define TX4927_CLKCTR_SIO1RST 0x00000001 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ci#define tx4927_sdramcptr \ 1918c2ecf20Sopenharmony_ci ((struct tx4927_sdramc_reg __iomem *)TX4927_SDRAMC_REG) 1928c2ecf20Sopenharmony_ci#define tx4927_pcicptr \ 1938c2ecf20Sopenharmony_ci ((struct tx4927_pcic_reg __iomem *)TX4927_PCIC_REG) 1948c2ecf20Sopenharmony_ci#define tx4927_ccfgptr \ 1958c2ecf20Sopenharmony_ci ((struct tx4927_ccfg_reg __iomem *)TX4927_CCFG_REG) 1968c2ecf20Sopenharmony_ci#define tx4927_ebuscptr \ 1978c2ecf20Sopenharmony_ci ((struct tx4927_ebusc_reg __iomem *)TX4927_EBUSC_REG) 1988c2ecf20Sopenharmony_ci#define tx4927_pioptr ((struct txx9_pio_reg __iomem *)TX4927_PIO_REG) 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci#define TX4927_REV_PCODE() \ 2018c2ecf20Sopenharmony_ci ((__u32)__raw_readq(&tx4927_ccfgptr->crir) >> 16) 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci#define TX4927_SDRAMC_CR(ch) __raw_readq(&tx4927_sdramcptr->cr[(ch)]) 2048c2ecf20Sopenharmony_ci#define TX4927_SDRAMC_BA(ch) ((TX4927_SDRAMC_CR(ch) >> 49) << 21) 2058c2ecf20Sopenharmony_ci#define TX4927_SDRAMC_SIZE(ch) \ 2068c2ecf20Sopenharmony_ci ((((TX4927_SDRAMC_CR(ch) >> 33) & 0x7fff) + 1) << 21) 2078c2ecf20Sopenharmony_ci 2088c2ecf20Sopenharmony_ci#define TX4927_EBUSC_CR(ch) __raw_readq(&tx4927_ebuscptr->cr[(ch)]) 2098c2ecf20Sopenharmony_ci#define TX4927_EBUSC_BA(ch) ((TX4927_EBUSC_CR(ch) >> 48) << 20) 2108c2ecf20Sopenharmony_ci#define TX4927_EBUSC_SIZE(ch) \ 2118c2ecf20Sopenharmony_ci (0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf)) 2128c2ecf20Sopenharmony_ci#define TX4927_EBUSC_WIDTH(ch) \ 2138c2ecf20Sopenharmony_ci (64 >> ((__u32)(TX4927_EBUSC_CR(ch) >> 20) & 0x3)) 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci/* utilities */ 2168c2ecf20Sopenharmony_cistatic inline void txx9_clear64(__u64 __iomem *adr, __u64 bits) 2178c2ecf20Sopenharmony_ci{ 2188c2ecf20Sopenharmony_ci#ifdef CONFIG_32BIT 2198c2ecf20Sopenharmony_ci unsigned long flags; 2208c2ecf20Sopenharmony_ci local_irq_save(flags); 2218c2ecf20Sopenharmony_ci#endif 2228c2ecf20Sopenharmony_ci ____raw_writeq(____raw_readq(adr) & ~bits, adr); 2238c2ecf20Sopenharmony_ci#ifdef CONFIG_32BIT 2248c2ecf20Sopenharmony_ci local_irq_restore(flags); 2258c2ecf20Sopenharmony_ci#endif 2268c2ecf20Sopenharmony_ci} 2278c2ecf20Sopenharmony_cistatic inline void txx9_set64(__u64 __iomem *adr, __u64 bits) 2288c2ecf20Sopenharmony_ci{ 2298c2ecf20Sopenharmony_ci#ifdef CONFIG_32BIT 2308c2ecf20Sopenharmony_ci unsigned long flags; 2318c2ecf20Sopenharmony_ci local_irq_save(flags); 2328c2ecf20Sopenharmony_ci#endif 2338c2ecf20Sopenharmony_ci ____raw_writeq(____raw_readq(adr) | bits, adr); 2348c2ecf20Sopenharmony_ci#ifdef CONFIG_32BIT 2358c2ecf20Sopenharmony_ci local_irq_restore(flags); 2368c2ecf20Sopenharmony_ci#endif 2378c2ecf20Sopenharmony_ci} 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_ci/* These functions are not interrupt safe. */ 2408c2ecf20Sopenharmony_cistatic inline void tx4927_ccfg_clear(__u64 bits) 2418c2ecf20Sopenharmony_ci{ 2428c2ecf20Sopenharmony_ci ____raw_writeq(____raw_readq(&tx4927_ccfgptr->ccfg) 2438c2ecf20Sopenharmony_ci & ~(TX4927_CCFG_W1CBITS | bits), 2448c2ecf20Sopenharmony_ci &tx4927_ccfgptr->ccfg); 2458c2ecf20Sopenharmony_ci} 2468c2ecf20Sopenharmony_cistatic inline void tx4927_ccfg_set(__u64 bits) 2478c2ecf20Sopenharmony_ci{ 2488c2ecf20Sopenharmony_ci ____raw_writeq((____raw_readq(&tx4927_ccfgptr->ccfg) 2498c2ecf20Sopenharmony_ci & ~TX4927_CCFG_W1CBITS) | bits, 2508c2ecf20Sopenharmony_ci &tx4927_ccfgptr->ccfg); 2518c2ecf20Sopenharmony_ci} 2528c2ecf20Sopenharmony_cistatic inline void tx4927_ccfg_change(__u64 change, __u64 new) 2538c2ecf20Sopenharmony_ci{ 2548c2ecf20Sopenharmony_ci ____raw_writeq((____raw_readq(&tx4927_ccfgptr->ccfg) 2558c2ecf20Sopenharmony_ci & ~(TX4927_CCFG_W1CBITS | change)) | 2568c2ecf20Sopenharmony_ci new, 2578c2ecf20Sopenharmony_ci &tx4927_ccfgptr->ccfg); 2588c2ecf20Sopenharmony_ci} 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ciunsigned int tx4927_get_mem_size(void); 2618c2ecf20Sopenharmony_civoid tx4927_wdt_init(void); 2628c2ecf20Sopenharmony_civoid tx4927_setup(void); 2638c2ecf20Sopenharmony_civoid tx4927_time_init(unsigned int tmrnr); 2648c2ecf20Sopenharmony_civoid tx4927_sio_init(unsigned int sclk, unsigned int cts_mask); 2658c2ecf20Sopenharmony_ciint tx4927_report_pciclk(void); 2668c2ecf20Sopenharmony_ciint tx4927_pciclk66_setup(void); 2678c2ecf20Sopenharmony_civoid tx4927_setup_pcierr_irq(void); 2688c2ecf20Sopenharmony_civoid tx4927_irq_init(void); 2698c2ecf20Sopenharmony_civoid tx4927_mtd_init(int ch); 2708c2ecf20Sopenharmony_civoid tx4927_dmac_init(int memcpy_chan); 2718c2ecf20Sopenharmony_civoid tx4927_aclc_init(unsigned int dma_chan_out, unsigned int dma_chan_in); 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci#endif /* __ASM_TXX9_TX4927_H */ 274