--- zzzz-none-000/linux-2.6.39.4/drivers/mmc/host/sdhci.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/mmc/host/sdhci.h 2021-11-10 13:23:10.000000000 +0000 @@ -10,6 +10,16 @@ * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. */ + + +/****************************************************************** + + Includes Intel Corporation's changes/modifications dated: 07/2011. + Changed/modified portions - Copyright(c) 2011, Intel Corporation. + +******************************************************************/ + + #ifndef __SDHCI_HW_H #define __SDHCI_HW_H @@ -146,6 +156,25 @@ #define SDHCI_ACMD12_ERR 0x3C +#if defined(CONFIG_ARCH_GEN3) || defined(CONFIG_ARCH_GEN3_MMC) +#define SDHCI_HOST_CONTROL2 0x3E +#define SDHCI_CTRL2_DDR 0x4 +#define SDHCI_CTRL2_SDR 0x0 +#endif // defined(CONFIG_ARCH_GEN3) || defined(CONFIG_ARCH_GEN3_MMC) + +#if defined(CONFIG_ARCH_GEN3) +/* AEP registers */ +#define PV_CONTROL 0 +#define PV_CNTL_AEP_EN (1 << 0) + +#define PV2ATOM_SW_INT 0x410 +#define EMMC_SW_INT (1 << 0) +#define EMMC_SW_INT_EN (1 << 1) +#define ATOM_DRBL_INT_EN (1 << 2) + +#define CONFIG_MMC_SDHCI_IO_ACCESSORS +#endif // defined(CONFIG_ARCH_GEN3) + /* 3E-3F reserved */ #define SDHCI_CAPABILITIES 0x40