18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_HD64461 38c2ecf20Sopenharmony_ci#define __ASM_SH_HD64461 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * Copyright (C) 2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com> 68c2ecf20Sopenharmony_ci * Copyright (C) 2004 Paul Mundt 78c2ecf20Sopenharmony_ci * Copyright (C) 2000 YAEGASHI Takeshi 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Hitachi HD64461 companion chip support 108c2ecf20Sopenharmony_ci * (please note manual reference 0x10000000 = 0xb0000000) 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* Constants for PCMCIA mappings */ 148c2ecf20Sopenharmony_ci#define HD64461_PCC_WINDOW 0x01000000 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* Area 6 - Slot 0 - memory and/or IO card */ 178c2ecf20Sopenharmony_ci#define HD64461_IOBASE 0xb0000000 188c2ecf20Sopenharmony_ci#define HD64461_IO_OFFSET(x) (HD64461_IOBASE + (x)) 198c2ecf20Sopenharmony_ci#define HD64461_PCC0_BASE HD64461_IO_OFFSET(0x8000000) 208c2ecf20Sopenharmony_ci#define HD64461_PCC0_ATTR (HD64461_PCC0_BASE) /* 0xb80000000 */ 218c2ecf20Sopenharmony_ci#define HD64461_PCC0_COMM (HD64461_PCC0_BASE+HD64461_PCC_WINDOW) /* 0xb90000000 */ 228c2ecf20Sopenharmony_ci#define HD64461_PCC0_IO (HD64461_PCC0_BASE+2*HD64461_PCC_WINDOW) /* 0xba0000000 */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* Area 5 - Slot 1 - memory card only */ 258c2ecf20Sopenharmony_ci#define HD64461_PCC1_BASE HD64461_IO_OFFSET(0x4000000) 268c2ecf20Sopenharmony_ci#define HD64461_PCC1_ATTR (HD64461_PCC1_BASE) /* 0xb4000000 */ 278c2ecf20Sopenharmony_ci#define HD64461_PCC1_COMM (HD64461_PCC1_BASE+HD64461_PCC_WINDOW) /* 0xb5000000 */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* Standby Control Register for HD64461 */ 308c2ecf20Sopenharmony_ci#define HD64461_STBCR HD64461_IO_OFFSET(0x00000000) 318c2ecf20Sopenharmony_ci#define HD64461_STBCR_CKIO_STBY 0x2000 328c2ecf20Sopenharmony_ci#define HD64461_STBCR_SAFECKE_IST 0x1000 338c2ecf20Sopenharmony_ci#define HD64461_STBCR_SLCKE_IST 0x0800 348c2ecf20Sopenharmony_ci#define HD64461_STBCR_SAFECKE_OST 0x0400 358c2ecf20Sopenharmony_ci#define HD64461_STBCR_SLCKE_OST 0x0200 368c2ecf20Sopenharmony_ci#define HD64461_STBCR_SMIAST 0x0100 378c2ecf20Sopenharmony_ci#define HD64461_STBCR_SLCDST 0x0080 388c2ecf20Sopenharmony_ci#define HD64461_STBCR_SPC0ST 0x0040 398c2ecf20Sopenharmony_ci#define HD64461_STBCR_SPC1ST 0x0020 408c2ecf20Sopenharmony_ci#define HD64461_STBCR_SAFEST 0x0010 418c2ecf20Sopenharmony_ci#define HD64461_STBCR_STM0ST 0x0008 428c2ecf20Sopenharmony_ci#define HD64461_STBCR_STM1ST 0x0004 438c2ecf20Sopenharmony_ci#define HD64461_STBCR_SIRST 0x0002 448c2ecf20Sopenharmony_ci#define HD64461_STBCR_SURTST 0x0001 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci/* System Configuration Register */ 478c2ecf20Sopenharmony_ci#define HD64461_SYSCR HD64461_IO_OFFSET(0x02) 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci/* CPU Data Bus Control Register */ 508c2ecf20Sopenharmony_ci#define HD64461_SCPUCR HD64461_IO_OFFSET(0x04) 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/* Base Address Register */ 538c2ecf20Sopenharmony_ci#define HD64461_LCDCBAR HD64461_IO_OFFSET(0x1000) 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci/* Line increment address */ 568c2ecf20Sopenharmony_ci#define HD64461_LCDCLOR HD64461_IO_OFFSET(0x1002) 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci/* Controls LCD controller */ 598c2ecf20Sopenharmony_ci#define HD64461_LCDCCR HD64461_IO_OFFSET(0x1004) 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/* LCCDR control bits */ 628c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_STBACK 0x0400 /* Standby Back */ 638c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_STREQ 0x0100 /* Standby Request */ 648c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_MOFF 0x0080 /* Memory Off */ 658c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_REFSEL 0x0040 /* Refresh Select */ 668c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_EPON 0x0020 /* End Power On */ 678c2ecf20Sopenharmony_ci#define HD64461_LCDCCR_SPON 0x0010 /* Start Power On */ 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci/* Controls LCD (1) */ 708c2ecf20Sopenharmony_ci#define HD64461_LDR1 HD64461_IO_OFFSET(0x1010) 718c2ecf20Sopenharmony_ci#define HD64461_LDR1_DON 0x01 /* Display On */ 728c2ecf20Sopenharmony_ci#define HD64461_LDR1_DINV 0x80 /* Display Invert */ 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci/* Controls LCD (2) */ 758c2ecf20Sopenharmony_ci#define HD64461_LDR2 HD64461_IO_OFFSET(0x1012) 768c2ecf20Sopenharmony_ci#define HD64461_LDHNCR HD64461_IO_OFFSET(0x1014) /* Number of horizontal characters */ 778c2ecf20Sopenharmony_ci#define HD64461_LDHNSR HD64461_IO_OFFSET(0x1016) /* Specify output start position + width of CL1 */ 788c2ecf20Sopenharmony_ci#define HD64461_LDVNTR HD64461_IO_OFFSET(0x1018) /* Specify total vertical lines */ 798c2ecf20Sopenharmony_ci#define HD64461_LDVNDR HD64461_IO_OFFSET(0x101a) /* specify number of display vertical lines */ 808c2ecf20Sopenharmony_ci#define HD64461_LDVSPR HD64461_IO_OFFSET(0x101c) /* specify vertical synchronization pos and AC nr */ 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/* Controls LCD (3) */ 838c2ecf20Sopenharmony_ci#define HD64461_LDR3 HD64461_IO_OFFSET(0x101e) 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci/* Palette Registers */ 868c2ecf20Sopenharmony_ci#define HD64461_CPTWAR HD64461_IO_OFFSET(0x1030) /* Color Palette Write Address Register */ 878c2ecf20Sopenharmony_ci#define HD64461_CPTWDR HD64461_IO_OFFSET(0x1032) /* Color Palette Write Data Register */ 888c2ecf20Sopenharmony_ci#define HD64461_CPTRAR HD64461_IO_OFFSET(0x1034) /* Color Palette Read Address Register */ 898c2ecf20Sopenharmony_ci#define HD64461_CPTRDR HD64461_IO_OFFSET(0x1036) /* Color Palette Read Data Register */ 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci#define HD64461_GRDOR HD64461_IO_OFFSET(0x1040) /* Display Resolution Offset Register */ 928c2ecf20Sopenharmony_ci#define HD64461_GRSCR HD64461_IO_OFFSET(0x1042) /* Solid Color Register */ 938c2ecf20Sopenharmony_ci#define HD64461_GRCFGR HD64461_IO_OFFSET(0x1044) /* Accelerator Configuration Register */ 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_ACCSTATUS 0x10 /* Accelerator Status */ 968c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_ACCRESET 0x08 /* Accelerator Reset */ 978c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_ACCSTART_BITBLT 0x06 /* Accelerator Start BITBLT */ 988c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_ACCSTART_LINE 0x04 /* Accelerator Start Line Drawing */ 998c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_COLORDEPTH16 0x01 /* Sets Colordepth 16 for Accelerator */ 1008c2ecf20Sopenharmony_ci#define HD64461_GRCFGR_COLORDEPTH8 0x01 /* Sets Colordepth 8 for Accelerator */ 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci/* Line Drawing Registers */ 1038c2ecf20Sopenharmony_ci#define HD64461_LNSARH HD64461_IO_OFFSET(0x1046) /* Line Start Address Register (H) */ 1048c2ecf20Sopenharmony_ci#define HD64461_LNSARL HD64461_IO_OFFSET(0x1048) /* Line Start Address Register (L) */ 1058c2ecf20Sopenharmony_ci#define HD64461_LNAXLR HD64461_IO_OFFSET(0x104a) /* Axis Pixel Length Register */ 1068c2ecf20Sopenharmony_ci#define HD64461_LNDGR HD64461_IO_OFFSET(0x104c) /* Diagonal Register */ 1078c2ecf20Sopenharmony_ci#define HD64461_LNAXR HD64461_IO_OFFSET(0x104e) /* Axial Register */ 1088c2ecf20Sopenharmony_ci#define HD64461_LNERTR HD64461_IO_OFFSET(0x1050) /* Start Error Term Register */ 1098c2ecf20Sopenharmony_ci#define HD64461_LNMDR HD64461_IO_OFFSET(0x1052) /* Line Mode Register */ 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci/* BitBLT Registers */ 1128c2ecf20Sopenharmony_ci#define HD64461_BBTSSARH HD64461_IO_OFFSET(0x1054) /* Source Start Address Register (H) */ 1138c2ecf20Sopenharmony_ci#define HD64461_BBTSSARL HD64461_IO_OFFSET(0x1056) /* Source Start Address Register (L) */ 1148c2ecf20Sopenharmony_ci#define HD64461_BBTDSARH HD64461_IO_OFFSET(0x1058) /* Destination Start Address Register (H) */ 1158c2ecf20Sopenharmony_ci#define HD64461_BBTDSARL HD64461_IO_OFFSET(0x105a) /* Destination Start Address Register (L) */ 1168c2ecf20Sopenharmony_ci#define HD64461_BBTDWR HD64461_IO_OFFSET(0x105c) /* Destination Block Width Register */ 1178c2ecf20Sopenharmony_ci#define HD64461_BBTDHR HD64461_IO_OFFSET(0x105e) /* Destination Block Height Register */ 1188c2ecf20Sopenharmony_ci#define HD64461_BBTPARH HD64461_IO_OFFSET(0x1060) /* Pattern Start Address Register (H) */ 1198c2ecf20Sopenharmony_ci#define HD64461_BBTPARL HD64461_IO_OFFSET(0x1062) /* Pattern Start Address Register (L) */ 1208c2ecf20Sopenharmony_ci#define HD64461_BBTMARH HD64461_IO_OFFSET(0x1064) /* Mask Start Address Register (H) */ 1218c2ecf20Sopenharmony_ci#define HD64461_BBTMARL HD64461_IO_OFFSET(0x1066) /* Mask Start Address Register (L) */ 1228c2ecf20Sopenharmony_ci#define HD64461_BBTROPR HD64461_IO_OFFSET(0x1068) /* ROP Register */ 1238c2ecf20Sopenharmony_ci#define HD64461_BBTMDR HD64461_IO_OFFSET(0x106a) /* BitBLT Mode Register */ 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci/* PC Card Controller Registers */ 1268c2ecf20Sopenharmony_ci/* Maps to Physical Area 6 */ 1278c2ecf20Sopenharmony_ci#define HD64461_PCC0ISR HD64461_IO_OFFSET(0x2000) /* socket 0 interface status */ 1288c2ecf20Sopenharmony_ci#define HD64461_PCC0GCR HD64461_IO_OFFSET(0x2002) /* socket 0 general control */ 1298c2ecf20Sopenharmony_ci#define HD64461_PCC0CSCR HD64461_IO_OFFSET(0x2004) /* socket 0 card status change */ 1308c2ecf20Sopenharmony_ci#define HD64461_PCC0CSCIER HD64461_IO_OFFSET(0x2006) /* socket 0 card status change interrupt enable */ 1318c2ecf20Sopenharmony_ci#define HD64461_PCC0SCR HD64461_IO_OFFSET(0x2008) /* socket 0 software control */ 1328c2ecf20Sopenharmony_ci/* Maps to Physical Area 5 */ 1338c2ecf20Sopenharmony_ci#define HD64461_PCC1ISR HD64461_IO_OFFSET(0x2010) /* socket 1 interface status */ 1348c2ecf20Sopenharmony_ci#define HD64461_PCC1GCR HD64461_IO_OFFSET(0x2012) /* socket 1 general control */ 1358c2ecf20Sopenharmony_ci#define HD64461_PCC1CSCR HD64461_IO_OFFSET(0x2014) /* socket 1 card status change */ 1368c2ecf20Sopenharmony_ci#define HD64461_PCC1CSCIER HD64461_IO_OFFSET(0x2016) /* socket 1 card status change interrupt enable */ 1378c2ecf20Sopenharmony_ci#define HD64461_PCC1SCR HD64461_IO_OFFSET(0x2018) /* socket 1 software control */ 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ci/* PCC Interface Status Register */ 1408c2ecf20Sopenharmony_ci#define HD64461_PCCISR_READY 0x80 /* card ready */ 1418c2ecf20Sopenharmony_ci#define HD64461_PCCISR_MWP 0x40 /* card write-protected */ 1428c2ecf20Sopenharmony_ci#define HD64461_PCCISR_VS2 0x20 /* voltage select pin 2 */ 1438c2ecf20Sopenharmony_ci#define HD64461_PCCISR_VS1 0x10 /* voltage select pin 1 */ 1448c2ecf20Sopenharmony_ci#define HD64461_PCCISR_CD2 0x08 /* card detect 2 */ 1458c2ecf20Sopenharmony_ci#define HD64461_PCCISR_CD1 0x04 /* card detect 1 */ 1468c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD2 0x02 /* battery 1 */ 1478c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD1 0x01 /* battery 1 */ 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci#define HD64461_PCCISR_PCD_MASK 0x0c /* card detect */ 1508c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD_MASK 0x03 /* battery voltage */ 1518c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD_BATGOOD 0x03 /* battery good */ 1528c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD_BATWARN 0x01 /* battery low warning */ 1538c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD_BATDEAD1 0x02 /* battery dead */ 1548c2ecf20Sopenharmony_ci#define HD64461_PCCISR_BVD_BATDEAD2 0x00 /* battery dead */ 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ci/* PCC General Control Register */ 1578c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_DRVE 0x80 /* output drive */ 1588c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_PCCR 0x40 /* PC card reset */ 1598c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_PCCT 0x20 /* PC card type, 1=IO&mem, 0=mem */ 1608c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_VCC0 0x10 /* voltage control pin VCC0SEL0 */ 1618c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_PMMOD 0x08 /* memory mode */ 1628c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_PA25 0x04 /* pin A25 */ 1638c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_PA24 0x02 /* pin A24 */ 1648c2ecf20Sopenharmony_ci#define HD64461_PCCGCR_REG 0x01 /* pin PCC0REG# */ 1658c2ecf20Sopenharmony_ci 1668c2ecf20Sopenharmony_ci/* PCC Card Status Change Register */ 1678c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_SCDI 0x80 /* sw card detect intr */ 1688c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_SRV1 0x40 /* reserved */ 1698c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_IREQ 0x20 /* IREQ intr req */ 1708c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_SC 0x10 /* STSCHG (status change) pin */ 1718c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_CDC 0x08 /* CD (card detect) change */ 1728c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_RC 0x04 /* READY change */ 1738c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_BW 0x02 /* battery warning change */ 1748c2ecf20Sopenharmony_ci#define HD64461_PCCCSCR_BD 0x01 /* battery dead change */ 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* PCC Card Status Change Interrupt Enable Register */ 1778c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_CRE 0x80 /* change reset enable */ 1788c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_IREQE_MASK 0x60 /* IREQ enable */ 1798c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_IREQE_DISABLED 0x00 /* IREQ disabled */ 1808c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_IREQE_LEVEL 0x20 /* IREQ level-triggered */ 1818c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_IREQE_FALLING 0x40 /* IREQ falling-edge-trig */ 1828c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_IREQE_RISING 0x60 /* IREQ rising-edge-trig */ 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_SCE 0x10 /* status change enable */ 1858c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_CDE 0x08 /* card detect change enable */ 1868c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_RE 0x04 /* ready change enable */ 1878c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_BWE 0x02 /* battery warn change enable */ 1888c2ecf20Sopenharmony_ci#define HD64461_PCCCSCIER_BDE 0x01 /* battery dead change enable*/ 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ci/* PCC Software Control Register */ 1918c2ecf20Sopenharmony_ci#define HD64461_PCCSCR_VCC1 0x02 /* voltage control pin 1 */ 1928c2ecf20Sopenharmony_ci#define HD64461_PCCSCR_SWP 0x01 /* write protect */ 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci/* PCC0 Output Pins Control Register */ 1958c2ecf20Sopenharmony_ci#define HD64461_P0OCR HD64461_IO_OFFSET(0x202a) 1968c2ecf20Sopenharmony_ci 1978c2ecf20Sopenharmony_ci/* PCC1 Output Pins Control Register */ 1988c2ecf20Sopenharmony_ci#define HD64461_P1OCR HD64461_IO_OFFSET(0x202c) 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci/* PC Card General Control Register */ 2018c2ecf20Sopenharmony_ci#define HD64461_PGCR HD64461_IO_OFFSET(0x202e) 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci/* Port Control Registers */ 2048c2ecf20Sopenharmony_ci#define HD64461_GPACR HD64461_IO_OFFSET(0x4000) /* Port A - Handles IRDA/TIMER */ 2058c2ecf20Sopenharmony_ci#define HD64461_GPBCR HD64461_IO_OFFSET(0x4002) /* Port B - Handles UART */ 2068c2ecf20Sopenharmony_ci#define HD64461_GPCCR HD64461_IO_OFFSET(0x4004) /* Port C - Handles PCMCIA 1 */ 2078c2ecf20Sopenharmony_ci#define HD64461_GPDCR HD64461_IO_OFFSET(0x4006) /* Port D - Handles PCMCIA 1 */ 2088c2ecf20Sopenharmony_ci 2098c2ecf20Sopenharmony_ci/* Port Control Data Registers */ 2108c2ecf20Sopenharmony_ci#define HD64461_GPADR HD64461_IO_OFFSET(0x4010) /* A */ 2118c2ecf20Sopenharmony_ci#define HD64461_GPBDR HD64461_IO_OFFSET(0x4012) /* B */ 2128c2ecf20Sopenharmony_ci#define HD64461_GPCDR HD64461_IO_OFFSET(0x4014) /* C */ 2138c2ecf20Sopenharmony_ci#define HD64461_GPDDR HD64461_IO_OFFSET(0x4016) /* D */ 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci/* Interrupt Control Registers */ 2168c2ecf20Sopenharmony_ci#define HD64461_GPAICR HD64461_IO_OFFSET(0x4020) /* A */ 2178c2ecf20Sopenharmony_ci#define HD64461_GPBICR HD64461_IO_OFFSET(0x4022) /* B */ 2188c2ecf20Sopenharmony_ci#define HD64461_GPCICR HD64461_IO_OFFSET(0x4024) /* C */ 2198c2ecf20Sopenharmony_ci#define HD64461_GPDICR HD64461_IO_OFFSET(0x4026) /* D */ 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci/* Interrupt Status Registers */ 2228c2ecf20Sopenharmony_ci#define HD64461_GPAISR HD64461_IO_OFFSET(0x4040) /* A */ 2238c2ecf20Sopenharmony_ci#define HD64461_GPBISR HD64461_IO_OFFSET(0x4042) /* B */ 2248c2ecf20Sopenharmony_ci#define HD64461_GPCISR HD64461_IO_OFFSET(0x4044) /* C */ 2258c2ecf20Sopenharmony_ci#define HD64461_GPDISR HD64461_IO_OFFSET(0x4046) /* D */ 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci/* Interrupt Request Register & Interrupt Mask Register */ 2288c2ecf20Sopenharmony_ci#define HD64461_NIRR HD64461_IO_OFFSET(0x5000) 2298c2ecf20Sopenharmony_ci#define HD64461_NIMR HD64461_IO_OFFSET(0x5002) 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci#define HD64461_IRQBASE OFFCHIP_IRQ_BASE 2328c2ecf20Sopenharmony_ci#define OFFCHIP_IRQ_BASE 64 2338c2ecf20Sopenharmony_ci#define HD64461_IRQ_NUM 16 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ci#define HD64461_IRQ_UART (HD64461_IRQBASE+5) 2368c2ecf20Sopenharmony_ci#define HD64461_IRQ_IRDA (HD64461_IRQBASE+6) 2378c2ecf20Sopenharmony_ci#define HD64461_IRQ_TMU1 (HD64461_IRQBASE+9) 2388c2ecf20Sopenharmony_ci#define HD64461_IRQ_TMU0 (HD64461_IRQBASE+10) 2398c2ecf20Sopenharmony_ci#define HD64461_IRQ_GPIO (HD64461_IRQBASE+11) 2408c2ecf20Sopenharmony_ci#define HD64461_IRQ_AFE (HD64461_IRQBASE+12) 2418c2ecf20Sopenharmony_ci#define HD64461_IRQ_PCC1 (HD64461_IRQBASE+13) 2428c2ecf20Sopenharmony_ci#define HD64461_IRQ_PCC0 (HD64461_IRQBASE+14) 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci#define __IO_PREFIX hd64461 2458c2ecf20Sopenharmony_ci#include <asm/io_generic.h> 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ci/* arch/sh/cchips/hd6446x/hd64461/setup.c */ 2488c2ecf20Sopenharmony_civoid hd64461_register_irq_demux(int irq, 2498c2ecf20Sopenharmony_ci int (*demux) (int irq, void *dev), void *dev); 2508c2ecf20Sopenharmony_civoid hd64461_unregister_irq_demux(int irq); 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci#endif 253