18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/** 38c2ecf20Sopenharmony_ci * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _20K2REGISTERS_H_ 78c2ecf20Sopenharmony_ci#define _20K2REGISTERS_H_ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* Timer Registers */ 118c2ecf20Sopenharmony_ci#define WC 0x1b7000 128c2ecf20Sopenharmony_ci#define TIMR 0x1b7004 138c2ecf20Sopenharmony_ci# define TIMR_IE (1<<15) 148c2ecf20Sopenharmony_ci# define TIMR_IP (1<<14) 158c2ecf20Sopenharmony_ci#define GIP 0x1b7010 168c2ecf20Sopenharmony_ci#define GIE 0x1b7014 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* I2C Registers */ 198c2ecf20Sopenharmony_ci#define I2C_IF_ADDRESS 0x1B9000 208c2ecf20Sopenharmony_ci#define I2C_IF_WDATA 0x1B9004 218c2ecf20Sopenharmony_ci#define I2C_IF_RDATA 0x1B9008 228c2ecf20Sopenharmony_ci#define I2C_IF_STATUS 0x1B900C 238c2ecf20Sopenharmony_ci#define I2C_IF_WLOCK 0x1B9010 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* Global Control Registers */ 268c2ecf20Sopenharmony_ci#define GLOBAL_CNTL_GCTL 0x1B7090 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* PLL Registers */ 298c2ecf20Sopenharmony_ci#define PLL_CTL 0x1B7080 308c2ecf20Sopenharmony_ci#define PLL_STAT 0x1B7084 318c2ecf20Sopenharmony_ci#define PLL_ENB 0x1B7088 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* SRC Registers */ 348c2ecf20Sopenharmony_ci#define SRC_CTL 0x1A0000 /* 0x1A0000 + (256 * Chn) */ 358c2ecf20Sopenharmony_ci#define SRC_CCR 0x1A0004 /* 0x1A0004 + (256 * Chn) */ 368c2ecf20Sopenharmony_ci#define SRC_IMAP 0x1A0008 /* 0x1A0008 + (256 * Chn) */ 378c2ecf20Sopenharmony_ci#define SRC_CA 0x1A0010 /* 0x1A0010 + (256 * Chn) */ 388c2ecf20Sopenharmony_ci#define SRC_CF 0x1A0014 /* 0x1A0014 + (256 * Chn) */ 398c2ecf20Sopenharmony_ci#define SRC_SA 0x1A0018 /* 0x1A0018 + (256 * Chn) */ 408c2ecf20Sopenharmony_ci#define SRC_LA 0x1A001C /* 0x1A001C + (256 * Chn) */ 418c2ecf20Sopenharmony_ci#define SRC_CTLSWR 0x1A0020 /* 0x1A0020 + (256 * Chn) */ 428c2ecf20Sopenharmony_ci#define SRC_CD 0x1A0080 /* 0x1A0080 + (256 * Chn) + (4 * Regn) */ 438c2ecf20Sopenharmony_ci#define SRC_MCTL 0x1A012C 448c2ecf20Sopenharmony_ci#define SRC_IP 0x1A102C /* 0x1A102C + (256 * Regn) */ 458c2ecf20Sopenharmony_ci#define SRC_ENB 0x1A282C /* 0x1A282C + (256 * Regn) */ 468c2ecf20Sopenharmony_ci#define SRC_ENBSTAT 0x1A202C 478c2ecf20Sopenharmony_ci#define SRC_ENBSA 0x1A232C 488c2ecf20Sopenharmony_ci#define SRC_DN0Z 0x1A0030 498c2ecf20Sopenharmony_ci#define SRC_DN1Z 0x1A0040 508c2ecf20Sopenharmony_ci#define SRC_UPZ 0x1A0060 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/* GPIO Registers */ 538c2ecf20Sopenharmony_ci#define GPIO_DATA 0x1B7020 548c2ecf20Sopenharmony_ci#define GPIO_CTRL 0x1B7024 558c2ecf20Sopenharmony_ci#define GPIO_EXT_DATA 0x1B70A0 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci/* Virtual memory registers */ 588c2ecf20Sopenharmony_ci#define VMEM_PTPAL 0x1C6300 /* 0x1C6300 + (16 * Chn) */ 598c2ecf20Sopenharmony_ci#define VMEM_PTPAH 0x1C6304 /* 0x1C6304 + (16 * Chn) */ 608c2ecf20Sopenharmony_ci#define VMEM_CTL 0x1C7000 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci/* Transport Registers */ 638c2ecf20Sopenharmony_ci#define TRANSPORT_ENB 0x1B6000 648c2ecf20Sopenharmony_ci#define TRANSPORT_CTL 0x1B6004 658c2ecf20Sopenharmony_ci#define TRANSPORT_INT 0x1B6008 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci/* Audio IO */ 688c2ecf20Sopenharmony_ci#define AUDIO_IO_AIM 0x1B5000 /* 0x1B5000 + (0x04 * Chn) */ 698c2ecf20Sopenharmony_ci#define AUDIO_IO_TX_CTL 0x1B5400 /* 0x1B5400 + (0x40 * Chn) */ 708c2ecf20Sopenharmony_ci#define AUDIO_IO_TX_CSTAT_L 0x1B5408 /* 0x1B5408 + (0x40 * Chn) */ 718c2ecf20Sopenharmony_ci#define AUDIO_IO_TX_CSTAT_H 0x1B540C /* 0x1B540C + (0x40 * Chn) */ 728c2ecf20Sopenharmony_ci#define AUDIO_IO_RX_CTL 0x1B5410 /* 0x1B5410 + (0x40 * Chn) */ 738c2ecf20Sopenharmony_ci#define AUDIO_IO_RX_SRT_CTL 0x1B5420 /* 0x1B5420 + (0x40 * Chn) */ 748c2ecf20Sopenharmony_ci#define AUDIO_IO_MCLK 0x1B5600 758c2ecf20Sopenharmony_ci#define AUDIO_IO_TX_BLRCLK 0x1B5604 768c2ecf20Sopenharmony_ci#define AUDIO_IO_RX_BLRCLK 0x1B5608 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci/* Mixer */ 798c2ecf20Sopenharmony_ci#define MIXER_AMOPLO 0x130000 /* 0x130000 + (8 * Chn) [4095 : 0] */ 808c2ecf20Sopenharmony_ci#define MIXER_AMOPHI 0x130004 /* 0x130004 + (8 * Chn) [4095 : 0] */ 818c2ecf20Sopenharmony_ci#define MIXER_PRING_LO_HI 0x188000 /* 0x188000 + (4 * Chn) [4095 : 0] */ 828c2ecf20Sopenharmony_ci#define MIXER_PMOPLO 0x138000 /* 0x138000 + (8 * Chn) [4095 : 0] */ 838c2ecf20Sopenharmony_ci#define MIXER_PMOPHI 0x138004 /* 0x138004 + (8 * Chn) [4095 : 0] */ 848c2ecf20Sopenharmony_ci#define MIXER_AR_ENABLE 0x19000C 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#endif 87