From 239d8db2c14bad480b4bbf965a073cc27b6e2e8b Mon Sep 17 00:00:00 2001 From: "ruixuan.li" Date: Mon, 1 Apr 2019 14:12:07 +0800 Subject: [PATCH] tm2: make emmc run high speed [1/1] PD#SWPL-5658 Problem: emmc run hs200 report cmd18 rx data crc Solution: emmc run high speed first Verify: passed on t962e2_ab319 Change-Id: Iaeef33e38f7c5130ebfd0e7c5886459b8138a803 Signed-off-by: ruixuan.li Conflicts: arch/arm/boot/dts/amlogic/mesontm2.dtsi arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts arch/arm64/boot/dts/amlogic/mesontm2.dtsi arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts --- drivers/amlogic/mmc/aml_sd_emmc.c | 4 ++++ include/linux/amlogic/sd.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/amlogic/mmc/aml_sd_emmc.c b/drivers/amlogic/mmc/aml_sd_emmc.c index 63e3ec627fc3..227007118457 100644 --- a/drivers/amlogic/mmc/aml_sd_emmc.c +++ b/drivers/amlogic/mmc/aml_sd_emmc.c @@ -3734,6 +3734,10 @@ static const struct of_device_id meson_mmc_of_match[] = { .compatible = "amlogic, meson-mmc-sm1", .data = &mmc_data_sm1, }, + { + .compatible = "amlogic, meson-mmc-tm2", + .data = &mmc_data_tm2, + }, {} }; diff --git a/include/linux/amlogic/sd.h b/include/linux/amlogic/sd.h index b5c2db2bfd49..3a4ee34de2b9 100644 --- a/include/linux/amlogic/sd.h +++ b/include/linux/amlogic/sd.h @@ -202,6 +202,7 @@ enum mmc_chip_e { MMC_CHIP_TL1 = 0X2b, MMC_CHIP_G12B = 0x29b, MMC_CHIP_SM1 = 0X2C, + MMC_CHIP_TM2 = 0X2D, }; struct mmc_phase {