fusee: get non-data SDMMC commands fully working on eMMC

This commit is contained in:
Kate J. Temkin
2018-04-28 04:42:59 -06:00
parent dbb65428e8
commit eb48e06331
3 changed files with 207 additions and 39 deletions

View File

@@ -9,6 +9,17 @@
/* Opaque pointer to the Tegra SDMMC registers */
struct tegra_sdmmc;
/**
* Represents the different types of devices an MMC object
* can represent.
*/
enum mmc_card_type {
MMC_CARD_EMMC,
MMC_CARD_MMC,
MMC_CARD_SD,
MMC_CARD_CART,
};
/**
* Primary data structure describing a Fusée MMC driver.
*/
@@ -16,10 +27,11 @@ struct mmc {
/* Controller properties */
char *name;
unsigned int timeout;
enum mmc_card_type card_type;
/* Card properties */
uint8_t cid[15];
uint32_t relative_address;
/* Pointers to hardware structures */
volatile struct tegra_sdmmc *regs;