Lines Matching +full:mmc +full:-

34 #include <dev/mmc/bridge.h>
35 #include <dev/mmc/mmc_helpers.h>
44 * All UHS-I modes requires 1.8V signaling. in mmc_parse_sd_speed()
46 if (device_has_property(dev, "no-1-8-v")) in mmc_parse_sd_speed()
48 if (device_has_property(dev, "cap-sd-highspeed")) in mmc_parse_sd_speed()
49 host->caps |= MMC_CAP_HSPEED; in mmc_parse_sd_speed()
50 if (device_has_property(dev, "sd-uhs-sdr12") && !no_18v) in mmc_parse_sd_speed()
51 host->caps |= MMC_CAP_UHS_SDR12 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed()
52 if (device_has_property(dev, "sd-uhs-sdr25") && !no_18v) in mmc_parse_sd_speed()
53 host->caps |= MMC_CAP_UHS_SDR25 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed()
54 if (device_has_property(dev, "sd-uhs-sdr50") && !no_18v) in mmc_parse_sd_speed()
55 host->caps |= MMC_CAP_UHS_SDR50 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed()
56 if (device_has_property(dev, "sd-uhs-sdr104") && !no_18v) in mmc_parse_sd_speed()
57 host->caps |= MMC_CAP_UHS_SDR104 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed()
58 if (device_has_property(dev, "sd-uhs-ddr50") && !no_18v) in mmc_parse_sd_speed()
59 host->caps |= MMC_CAP_UHS_DDR50 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed()
66 if (device_has_property(dev, "cap-mmc-highspeed")) in mmc_parse_mmc_speed()
67 host->caps |= MMC_CAP_HSPEED; in mmc_parse_mmc_speed()
68 if (device_has_property(dev, "mmc-ddr-1_2v")) in mmc_parse_mmc_speed()
69 host->caps |= MMC_CAP_MMC_DDR52_120 | MMC_CAP_SIGNALING_120; in mmc_parse_mmc_speed()
70 if (device_has_property(dev, "mmc-ddr-1_8v")) in mmc_parse_mmc_speed()
71 host->caps |= MMC_CAP_MMC_DDR52_180 | MMC_CAP_SIGNALING_180; in mmc_parse_mmc_speed()
72 if (device_has_property(dev, "mmc-ddr-3_3v")) in mmc_parse_mmc_speed()
73 host->caps |= MMC_CAP_SIGNALING_330; in mmc_parse_mmc_speed()
74 if (device_has_property(dev, "mmc-hs200-1_2v")) in mmc_parse_mmc_speed()
75 host->caps |= MMC_CAP_MMC_HS200_120 | MMC_CAP_SIGNALING_120; in mmc_parse_mmc_speed()
76 if (device_has_property(dev, "mmc-hs200-1_8v")) in mmc_parse_mmc_speed()
77 host->caps |= MMC_CAP_MMC_HS200_180 | MMC_CAP_SIGNALING_180; in mmc_parse_mmc_speed()
78 if (device_has_property(dev, "mmc-hs400-1_2v")) in mmc_parse_mmc_speed()
79 host->caps |= MMC_CAP_MMC_HS400_120 | MMC_CAP_SIGNALING_120; in mmc_parse_mmc_speed()
80 if (device_has_property(dev, "mmc-hs400-1_8v")) in mmc_parse_mmc_speed()
81 host->caps |= MMC_CAP_MMC_HS400_180 | MMC_CAP_SIGNALING_180; in mmc_parse_mmc_speed()
82 if (device_has_property(dev, "mmc-hs400-enhanced-strobe")) in mmc_parse_mmc_speed()
83 host->caps |= MMC_CAP_MMC_ENH_STROBE; in mmc_parse_mmc_speed()
92 if (device_get_property(dev, "bus-width", &bus_width, in mmc_parse()
97 host->caps |= MMC_CAP_4_BIT_DATA; in mmc_parse()
99 host->caps |= MMC_CAP_8_BIT_DATA; in mmc_parse()
102 * max-frequency is optional, drivers should tweak this value in mmc_parse()
103 * if it's not present based on the clock that the mmc controller in mmc_parse()
106 if (device_get_property(dev, "max-frequency", &max_freq, in mmc_parse()
108 host->f_max = max_freq; in mmc_parse()
110 if (device_has_property(dev, "broken-cd")) in mmc_parse()
111 helper->props |= MMC_PROP_BROKEN_CD; in mmc_parse()
112 if (device_has_property(dev, "non-removable")) in mmc_parse()
113 helper->props |= MMC_PROP_NON_REMOVABLE; in mmc_parse()
114 if (device_has_property(dev, "wp-inverted")) in mmc_parse()
115 helper->props |= MMC_PROP_WP_INVERTED; in mmc_parse()
116 if (device_has_property(dev, "cd-inverted")) in mmc_parse()
117 helper->props |= MMC_PROP_CD_INVERTED; in mmc_parse()
118 if (device_has_property(dev, "no-sdio")) in mmc_parse()
119 helper->props |= MMC_PROP_NO_SDIO; in mmc_parse()
120 if (device_has_property(dev, "no-sd")) in mmc_parse()
121 helper->props |= MMC_PROP_NO_SD; in mmc_parse()
122 if (device_has_property(dev, "no-mmc")) in mmc_parse()
123 helper->props |= MMC_PROP_NO_MMC; in mmc_parse()
125 if (!(helper->props & MMC_PROP_NO_SD)) in mmc_parse()
128 if (!(helper->props & MMC_PROP_NO_MMC)) in mmc_parse()