Skip to contentSkip to conversation

mmc: sdhci: Add support for o2 eMMC HS200 mode and hardware tuning

PATCH In review ernest.zhang 2 participants 2 messages Dec 28, 2017 – Jan 9, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Add register definition for eMMC HS200 mode. Add bitmask definition for hardware tuning function.

---
 drivers/mmc/host/sdhci-pci-o2micro.h | 3 +++
 1 file changed, 3 insertions(+)
drivers/mmc/host/sdhci-pci-o2micro.h +3 -0
index 770f53857211..5a4671d5a511 100644
@@ -49,6 +49,7 @@
 #define O2_SD_MISC_CTRL4	0xFC
 #define O2_SD_TUNING_CTRL	0x300
 #define O2_SD_PLL_SETTING	0x304
+#define O2_SD_MISC_SETTING	0x308
 #define O2_SD_CLK_SETTING	0x328
 #define O2_SD_CAP_REG2		0x330
 #define O2_SD_CAP_REG0		0x334
@@ -62,6 +63,8 @@
 #define O2_SD_FREG4_ENABLE_CLK_SET	BIT(22)
 
 #define O2_SD_VENDOR_SETTING	0x110
+#define O2_SD_HW_TUNING_ENABLE	BIT(4)
+
 #define O2_SD_VENDOR_SETTING2	0x1C8
 
 extern int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot);
Signature · 1 line
2.14.1
maintainer
#1 lore raw
Quoted 6 lines · ernest.zhang

Add register definition for eMMC HS200 mode. Add bitmask definition for hardware tuning function.

---
 drivers/mmc/host/sdhci-pci-o2micro.h | 3 +++

drivers/mmc/host/sdhci-pci-o2micro.h doesn't exist anymore. Please re-base on mmc tree next branch. Also these changes do not need to be a separate patch anyway.

Quoted 24 lines
 1 file changed, 3 insertions(+)
drivers/mmc/host/sdhci-pci-o2micro.h +3 -0
index 770f53857211..5a4671d5a511 100644
@@ -49,6 +49,7 @@
 #define O2_SD_MISC_CTRL4	0xFC
 #define O2_SD_TUNING_CTRL	0x300
 #define O2_SD_PLL_SETTING	0x304
+#define O2_SD_MISC_SETTING	0x308
 #define O2_SD_CLK_SETTING	0x328
 #define O2_SD_CAP_REG2		0x330
 #define O2_SD_CAP_REG0		0x334
@@ -62,6 +63,8 @@
 #define O2_SD_FREG4_ENABLE_CLK_SET	BIT(22)
 
 #define O2_SD_VENDOR_SETTING	0x110
+#define O2_SD_HW_TUNING_ENABLE	BIT(4)
+
 #define O2_SD_VENDOR_SETTING2	0x1C8
 
 extern int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot);