[PATCH V7 3/5] mmc: sdhci: Export sdhci tuning function symbol

2018-07-15 Thread ernest.zhang
Export sdhci tuning function symbols which are used by other SD Host controller driver modules. Signed-off-by: ernest.zhang --- Changes in V7: Export sdhci tuning function symbols Changes in V1~V6 N/A --- drivers/mmc/host/sdhci.c | 12 drivers/mmc/host/sdhci.h | 5

[PATCH V7 5/5] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-07-15 Thread ernest.zhang
Add MSI interrupt support if the SD host device can support MSI interrupt. Signed-off-by: ernest.zhang --- Changes in V7: N/A Changes in V6: 1. Move change log to correct place. 2. Reduce unneeded pr_info prints. 3. In function sdhci_pci_o2_probe_slot, remove

[PATCH V7 2/5] mmc: sdhci: Change O2 Host HS200 mode clock frequency to 200MHz

2018-07-15 Thread ernest.zhang
O2 SD Host HS200 mode clock frequency current is 208MHz, should be changed to 200MHz to meet specification. Signed-off-by: ernest.zhang --- Change in V7: Change HS200 mode clock frequency from 208MHz to 200MHz to meet Specification. Change in V1~V6: N/A --- drivers/mmc

[PATCH V7 4/5] mmc: sdhci: Add support for O2 hardware tuning

2018-07-15 Thread ernest.zhang
Add hardware tuning function instead of software tuning because O2/Bayhub SD host controller support hardware tuning. Signed-off-by: ernest.zhang --- Changes in V7: Move V6 change item 1 to a seperate patch. Changes in V6: 1. From module 'sdhci' export t

[PATCH V7 1/5] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-07-15 Thread ernest.zhang
: ernest.zhang --- Changes in V7: Move V6 change item 2 to a seperate patch file Changes in V6: 1.Move change log to correct place. 2.Change HS200 mode clock frequency from 208MHz to 200MHz to meet Specification. Changes in V5: Modify code format to pass

[PATCH V6 3/3] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-06-26 Thread ernest.zhang
Add MSI interrupt support if the SD host device can support MSI interrupt. Signed-off-by: ernest.zhang --- Changes in V6: 1. Move change log to correct place. 2. Reduce unneeded pr_info prints. 3. In function sdhci_pci_o2_probe_slot, remove using local variable

[PATCH V6 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-06-26 Thread ernest.zhang
Add hardware tuning function instead of software tuning because O2/Bayhub SD host controller support hardware tuning. Signed-off-by: ernest.zhang --- Changes in V6: 1. From module 'sdhci' export the symbols 'sdhci_start_tuning', 'sdhci_end_tuning

[PATCH V6 1/3] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-06-26 Thread ernest.zhang
: ernest.zhang --- Changes in V6: 1.Move change log to correct place. 2.Change HS200 mode clock frequency from 208MHz to 200MHz to meet Specification. Changes in V5: Modify code format to pass checkpatch.pl check and add a summary of what has changed in each

[PATCH V5 3/3] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-04-20 Thread ernest.zhang
: Enable MSI interrupt if the MSI capability bit is set in capability register. Changes in V3: None. This patch is add in V4. Changes in V2: None. This patch is add in V4. Changes in V1: None. This patch is add in V4. Signed-off-by: ernest.zhang

[PATCH V5 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-04-20 Thread ernest.zhang
nges in V2: Modify code format, and delete unused code path. Changes in V1: Add many functions to execute hardware tuning for eMMC 1.8V HS200 mode, the hardware tuning procedure is based on O2/Bayhub hardware tuning spec. Signed-off-by: ernest.zhang --- driver

[PATCH V5 1/3] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-04-20 Thread ernest.zhang
;next' branch. Changes in V2: Modify code format, and delete unused code path. Changes in V1: Check PCIe register 0x308 bit 4 and skip eMMC 3.3v initialization process if it is set to 1. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2mi

[PATCH V4 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-03-09 Thread ernest.zhang
-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.c | 193 +++ drivers/mmc/host/sdhci.c | 5 +- 2 files changed, 197 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index

[PATCH V4 1/3] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-03-09 Thread ernest.zhang
PCIe register 0x308 bit 4 and skip eMMC 3.3v initialization process if it is set to 1. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci

[PATCH V4 3/3] mmc: sdhci: Add MSI interrupt support for O2 SD host

2018-03-09 Thread ernest.zhang
Add MSI interrupt support if the SD host device can support MSI interrupt. Changes: Enable MSI interrupt if the MSI capability bit is set in capability register. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.c | 17 + 1 file changed, 17 insertions(+) diff

[PATCH 2/2] mmc: sdhci: Add support for O2 hardware tuning

2018-01-16 Thread ernest.zhang
O2 sd host controllers have a hardware tuning function. In software tuning mode CPU should send multiple command to host controller but in hardware tuning mode, CPU need send only one tuning command to sd host controller. It can improve the speed linux boot from eMMC. Signed-off-by: ernest.zhang

[PATCH 1/2] mmc: sdhci: Add support for O2 eMMC HS200 mode

2018-01-16 Thread ernest.zhang
. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index 555970a29c94..8855a416ffd4 100644 --- a/drivers/mmc/host

[PATCH 2/3] mmc: sdhci: Add support for o2 eMMC HS200 mode and hardware tuning

2017-12-28 Thread ernest.zhang
Add register definition for eMMC HS200 mode. Add bitmask definition for hardware tuning function. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.h b/drivers/mmc/host/sdhci-pci

[PATCH 3/3] mmc: sdhci: fix o2 eMMC init bug and add support for hardware tuning

2017-12-28 Thread ernest.zhang
tuning mode CPU should send multiple command to host controller but in hardware tuning mode, CPU need send only one tuning command to sd host controller. It can improve the speed linux boot from eMMC. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.c | 218

[PATCH 1/3] mmc: sdhci: fix SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD handling

2017-12-28 Thread ernest.zhang
when opcode equals to MMC_SEND_TUNING_BLOCK_HS200. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 0d5fcca18c9e..d5b19fc9ea56 100644 --- a/drivers/mmc/host/sd