/* * Copyright (c) 2018 naehrwert * Copyright (c) 2018-2019 CTCaer * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _SDMMC_T210_H_ #define _SDMMC_T210_H_ #include "../utils/types.h" #define TEGRA_MMC_VNDR_TUN_CTRL0_TAP_VAL_UPDATED_BY_HW 0x20000 #define TEGRA_MMC_DLLCAL_CFG_EN_CALIBRATE 0x80000000 #define TEGRA_MMC_DLLCAL_CFG_STATUS_DLL_ACTIVE 0x80000000 #define TEGRA_MMC_SDMEMCOMPPADCTRL_PAD_E_INPUT_PWRD 0x80000000 #define TEGRA_MMC_SDMEMCOMPPADCTRL_COMP_VREF_SEL_MASK 0xFFFFFFF0 #define TEGRA_MMC_AUTOCALCFG_AUTO_CAL_ENABLE 0x20000000 #define TEGRA_MMC_AUTOCALCFG_AUTO_CAL_START 0x80000000 #define TEGRA_MMC_AUTOCALSTS_AUTO_CAL_ACTIVE 0x80000000 typedef struct _t210_sdmmc_t { vu32 sysad; vu16 blksize; vu16 blkcnt; vu32 argument; vu16 trnmod; vu16 cmdreg; vu32 rspreg0; vu32 rspreg1; vu32 rspreg2; vu32 rspreg3; vu32 bdata; vu32 prnsts; vu8 hostctl; vu8 pwrcon; vu8 blkgap; vu8 wakcon; vu16 clkcon; vu8 timeoutcon; vu8 swrst; vu16 norintsts; vu16 errintsts; vu16 norintstsen; vu16 errintstsen; vu16 norintsigen; vu16 errintsigen; vu16 acmd12errsts; vu16 hostctl2; vu32 capareg; vu32 capareg_1; vu32 maxcurr; vu8 res3[4]; vu16 setacmd12err; vu16 setinterr; vu8 admaerr; vu8 res4[3]; vu32 admaaddr; vu32 admaaddr_hi; vu8 res5[156]; vu16 slotintstatus; vu16 hcver; vu32 venclkctl; vu32 venspictl; vu32 venspiintsts; vu32 venceatactl; vu32 venbootctl; vu32 venbootacktout; vu32 venbootdattout; vu32 vendebouncecnt; vu32 venmiscctl; vu32 res6[34]; vu32 veniotrimctl; vu32 vendllcal; vu8 res7[8]; vu32 dllcfgstatus; vu32 ventunctl0; vu32 field_1C4; vu8 field_1C8[24]; vu32 sdmemcmppadctl; vu32 autocalcfg; vu32 autocalintval; vu32 autocalsts; vu32 iospare; } t210_sdmmc_t; #endif