summaryrefslogtreecommitdiff
path: root/drivers/mmc/matsushita-common.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-08 18:49:52 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-11 23:11:58 +0200
commitf98833dbe61e8784f6c7afed8f5ff9290973d211 (patch)
tree2b27da984a20195839f4d367a21d3a29cbbc03cb /drivers/mmc/matsushita-common.h
parent147169d9c9ed8d0e1ca6185c2e45677be9b18157 (diff)
mmc: matsushita-common: Add Renesas RCar quirks
Add a quirk to identify that the controller is Renesas RCar variant of the Matsushita SD IP and another quirk indicating it can support Renesas RCar HS200/HS400/SDR104 modes. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc/matsushita-common.h')
-rw-r--r--drivers/mmc/matsushita-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/matsushita-common.h b/drivers/mmc/matsushita-common.h
index a03d8f97e5..c23dc1a79a 100644
--- a/drivers/mmc/matsushita-common.h
+++ b/drivers/mmc/matsushita-common.h
@@ -124,6 +124,11 @@ struct matsu_sd_priv {
#define MATSU_SD_CAP_DIV1024 BIT(2) /* divisor 1024 is available */
#define MATSU_SD_CAP_64BIT BIT(3) /* Controller is 64bit */
#define MATSU_SD_CAP_16BIT BIT(4) /* Controller is 16bit */
+#define MATSU_SD_CAP_RCAR_GEN2 BIT(5) /* Renesas RCar version of IP */
+#define MATSU_SD_CAP_RCAR_GEN3 BIT(6) /* Renesas RCar version of IP */
+#define MATSU_SD_CAP_RCAR_UHS BIT(7) /* Renesas RCar UHS/SDR modes */
+#define MATSU_SD_CAP_RCAR \
+ (MATSU_SD_CAP_RCAR_GEN2 | MATSU_SD_CAP_RCAR_GEN3)
};
int matsu_sd_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,