dwmmc: Remove max_hz from the softc

We never use it so directly set the value to the mmc host structure.
This commit is contained in:
Emmanuel Vadot 2020-01-16 21:50:53 +00:00
parent 66f67d5e5e
commit e82ba2c544
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356813
2 changed files with 2 additions and 4 deletions

View File

@ -484,8 +484,8 @@ parse_fdt(struct dwmmc_softc *sc)
sc->host.caps |= MMC_CAP_8_BIT_DATA;
/* max-frequency */
if (OF_getencprop(node, "max-frequency", &sc->max_hz, sizeof(uint32_t)) <= 0)
sc->max_hz = 200000000;
if (OF_getencprop(node, "max-frequency", &sc->host.f_max, sizeof(uint32_t)) <= 0)
sc->host.f_max = 200000000;
/* fifo-depth */
if ((len = OF_getproplen(node, "fifo-depth")) > 0) {
@ -726,7 +726,6 @@ dwmmc_attach(device_t dev)
WRITE4(sc, SDMMC_CTRL, SDMMC_CTRL_INT_ENABLE);
sc->host.f_min = 400000;
sc->host.f_max = sc->max_hz;
sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
sc->host.caps |= MMC_CAP_HSPEED;
sc->host.caps |= MMC_CAP_SIGNALING_330;

View File

@ -79,7 +79,6 @@ struct dwmmc_softc {
uint32_t acd_rcvd;
uint32_t cmd_done;
uint64_t bus_hz;
uint32_t max_hz;
uint32_t fifo_depth;
uint32_t num_slots;
uint32_t sdr_timing;