Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
67 lines
1.3 KiB
C
67 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2001 by Hiroyuki Kondo
|
|
*/
|
|
|
|
#define M32R_MAX_PCC 2
|
|
|
|
/*
|
|
* M32R PC Card Controller
|
|
*/
|
|
#define M32R_PCC0_BASE 0x00ef7000
|
|
#define M32R_PCC1_BASE 0x00ef7020
|
|
|
|
/*
|
|
* Register offsets
|
|
*/
|
|
#define PCCR 0x00
|
|
#define PCADR 0x04
|
|
#define PCMOD 0x08
|
|
#define PCIRC 0x0c
|
|
#define PCCSIGCR 0x10
|
|
#define PCATCR 0x14
|
|
|
|
/*
|
|
* PCCR
|
|
*/
|
|
#define PCCR_PCEN (1UL<<(31-31))
|
|
|
|
/*
|
|
* PCIRC
|
|
*/
|
|
#define PCIRC_BWERR (1UL<<(31-7))
|
|
#define PCIRC_CDIN1 (1UL<<(31-14))
|
|
#define PCIRC_CDIN2 (1UL<<(31-15))
|
|
#define PCIRC_BEIEN (1UL<<(31-23))
|
|
#define PCIRC_CIIEN (1UL<<(31-30))
|
|
#define PCIRC_COIEN (1UL<<(31-31))
|
|
|
|
/*
|
|
* PCCSIGCR
|
|
*/
|
|
#define PCCSIGCR_SEN (1UL<<(31-3))
|
|
#define PCCSIGCR_VEN (1UL<<(31-7))
|
|
#define PCCSIGCR_CRST (1UL<<(31-15))
|
|
#define PCCSIGCR_COCR (1UL<<(31-31))
|
|
|
|
/*
|
|
*
|
|
*/
|
|
#define PCMOD_AS_ATTRIB (1UL<<(31-19))
|
|
#define PCMOD_AS_IO (1UL<<(31-18))
|
|
|
|
#define PCMOD_CBSZ (1UL<<(31-23)) /* set for 8bit */
|
|
|
|
#define PCMOD_DBEX (1UL<<(31-31)) /* set for excahnge */
|
|
|
|
/*
|
|
* M32R PCC Map addr
|
|
*/
|
|
#define M32R_PCC0_MAPBASE 0x14000000
|
|
#define M32R_PCC1_MAPBASE 0x16000000
|
|
|
|
#define M32R_PCC_MAPMAX 0x02000000
|
|
|
|
#define M32R_PCC_MAPSIZE 0x00001000 /* XXX */
|
|
#define M32R_PCC_MAPMASK (~(M32R_PCC_MAPMAX-1))
|