Lines Matching defs:hostctrl2
157 uint16_t hostctrl2;
166 hostctrl2 = sdhci_xenon_read_2(brdev, slot, SDHCI_HOST_CONTROL2);
167 hostctrl2 &= ~SDHCI_CTRL2_UHS_MASK;
171 hostctrl2 |= XENON_CTRL2_MMC_HS400;
173 hostctrl2 |= XENON_CTRL2_MMC_HS200;
175 hostctrl2 |= SDHCI_CTRL2_UHS_SDR104;
178 hostctrl2 |= SDHCI_CTRL2_UHS_SDR50;
182 hostctrl2 |= SDHCI_CTRL2_UHS_DDR50;
184 hostctrl2 |= SDHCI_CTRL2_UHS_SDR25;
186 hostctrl2 |= SDHCI_CTRL2_UHS_SDR12;
187 sdhci_xenon_write_2(brdev, slot, SDHCI_HOST_CONTROL2, hostctrl2);
381 uint16_t hostctrl2;
396 hostctrl2 = bus_read_2(sc->mem_res, SDHCI_HOST_CONTROL2);
399 if (!(hostctrl2 & SDHCI_CTRL2_S18_ENABLE))
401 hostctrl2 &= ~SDHCI_CTRL2_S18_ENABLE;
402 bus_write_2(sc->mem_res, SDHCI_HOST_CONTROL2, hostctrl2);
424 hostctrl2 = bus_read_2(sc->mem_res, SDHCI_HOST_CONTROL2);
425 if (!(hostctrl2 & SDHCI_CTRL2_S18_ENABLE))
432 if (hostctrl2 & SDHCI_CTRL2_S18_ENABLE)
434 hostctrl2 |= SDHCI_CTRL2_S18_ENABLE;
435 bus_write_2(sc->mem_res, SDHCI_HOST_CONTROL2, hostctrl2);
457 hostctrl2 = bus_read_2(sc->mem_res, SDHCI_HOST_CONTROL2);
458 if (hostctrl2 & SDHCI_CTRL2_S18_ENABLE)