[PATCH v3 02/10] mmc: dt-bindings: update Mediatek MMC bindings

2015-10-27 Thread Chaotian Jing
Add 400Mhz clock source for HS400 mode Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documen

[PATCH v3 05/10] mmc: mediatek: fix got GPD checksum error interrupt when data transfer

2015-10-27 Thread Chaotian Jing
Even if we only use one gpd, we need alloc 2 gpd and make the gpd->next pointer to the second gpd, or may get gpd checksum error, this was checked by hardware Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 7 i

[PATCH v3 03/10] mmc: mediatek: make cmd_ints_mask to const

2015-10-27 Thread Chaotian Jing
cmd_ints_mask and data_ints_mask are constant value, so make it to const Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/ho

[PATCH v3 01/10] mmc: core: Add DT bindings for eMMC hardware reset support

2015-10-27 Thread Chaotian Jing
Sometime only need set MMC_CAP_HW_RESET for one of MMC hosts, So set it in device tree is better. Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/core/host.c | 2 ++ 2 files changed, 3 inse

[PATCH v3 04/10] mmc: mediatek: change the argument "ddr" to "timing"

2015-10-27 Thread Chaotian Jing
use the ios->timing directly is better It can reflect current timing and do settings by timing Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/mmc

[PATCH v3 09/10] mmc: mediatek: add HS400 support

2015-10-27 Thread Chaotian Jing
add HS400 mode and tune support Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 249 +- 1 file changed, 244 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mt

[PATCH v3 10/10] arm64: dts: mediatek: add HS200/HS400/SDR50/SDR104 support

2015-10-27 Thread Chaotian Jing
add HS200/HS400 support for eMMC add SDR50/SDR104 support for SD Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/me

[PATCH v3 08/10] mmc: mmc: extend the mmc_send_tuning()

2015-10-27 Thread Chaotian Jing
CMD21 to CMD19, then got error. in addition, extend an argument of "cmd_error" to allow getting if there was cmd error when tune response. Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/core/mmc_ops.c | 8 drivers/mmc/host/dw_mm

[PATCH v3 06/10] mmc: mediatek: add implement of ops->hw_reset()

2015-10-27 Thread Chaotian Jing
add implement of ops->hw_reset() for eMMC Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 3858163..5627644 100644 ---

[PATCH v3 07/10] arm64: dts: mediatek: add eMMC hw reset support

2015-10-27 Thread Chaotian Jing
Add eMMC hardware reset support Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 4

[PATCH v3 00/10] Add tune support of Mediatek MMC driver

2015-10-27 Thread Chaotian Jing
Add SD SDR50/SDR104 mode support Add implement of tune function with CMD19/CMD21 Chaotian Jing (10): mmc: core: Add DT bindings for eMMC hardware reset support mmc: dt-bindings: update Mediatek MMC bindings mmc: mediatek: make cmd_ints_mask to const mmc: mediatek: change the argument &

Re: [PATCH v2 0/9] Add tune support of Mediatek MMC driver

2015-10-21 Thread Chaotian Jing
On Tue, 2015-10-20 at 18:41 +0200, Ulf Hansson wrote: > On 20 October 2015 at 11:13, Chaotian Jing <chaotian.j...@mediatek.com> wrote: > > Change in v2: > > Drop the 400mhz and use assigned-clock-parents to instead > > Split the original tune patch to several indep

[PATCH v2 0/9] Add tune support of Mediatek MMC driver

2015-10-20 Thread Chaotian Jing
DT bindings for eMMC hardware reset Add pinctrl of data strobe pin for HS400 mode Modify eMMC driving settings Add 400mhz source clock for HS400 mode Add eMMC HS200/HS400 mode support Add SD SDR50/SDR104 mode support Add implement of tune function with CMD19/CMD21 Chaotian Jing (9): mmc: core: Add

[PATCH v2 1/9] mmc: core: Add DT bindings for eMMC hardware reset support

2015-10-20 Thread Chaotian Jing
Sometime only need set MMC_CAP_HW_RESET for one of MMC hosts, So set it in device tree is better. Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/core/host.c | 2 ++ 2 files changed, 3 inse

[PATCH v2 3/9] mmc: mediatek: make cmd_ints_mask to const

2015-10-20 Thread Chaotian Jing
cmd_ints_mask and data_ints_mask are constant value, so make it to const Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/ho

[PATCH v2 4/9] mmc: mediatek: change the argument "ddr" to "timing"

2015-10-20 Thread Chaotian Jing
use the ios->timing directly is better It can reflect current timing and do settings by timing Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/mmc

[PATCH v2 2/9] mmc: dt-bindings: update Mediatek MMC bindings

2015-10-20 Thread Chaotian Jing
Add 400Mhz clock source for HS400 mode Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documen

[PATCH v2 5/9] mmc: mediatek: fix got GPD checksum error interrupt when data transfer

2015-10-20 Thread Chaotian Jing
Even if we only use one gpd, we need alloc 2 gpd and make the gpd->next pointer to the second gpd, or may get gpd checksum error, this was checked by hardware Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 7 i

[PATCH v2 8/9] mmc: mediatek: add HS400 support

2015-10-20 Thread Chaotian Jing
add HS400 mode and tune support Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 241 +- 1 file changed, 236 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mt

[PATCH v2 9/9] arm64: dts: mediatek: add HS200/HS400/SDR50/SDR104 support

2015-10-20 Thread Chaotian Jing
add HS200/HS400 support for eMMC add SDR50/SDR104 support for SD Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/me

[PATCH v2 7/9] mmc: mmc: extend the mmc_send_tuning()

2015-10-20 Thread Chaotian Jing
CMD21 to CMD19, then got error. in addition, extend an argument of "cmd_error" to allow getting if there was cmd error when tune response. Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/core/mmc_ops.c | 8 drivers/mmc/host/dw_mm

[PATCH v2 6/9] mmc: mediatek: add implement of ops->hw_reset()

2015-10-20 Thread Chaotian Jing
add implement of ops->hw_reset() for eMMC Signed-off-by: Chaotian Jing <chaotian.j...@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 3858163..5627644 100644 ---