Searched refs:clkDiv (Results 1 – 2 of 2) sorted by relevance
178 static void Mp1xxSpiConfigClk(const struct Mp1xxSpiCntlr *stm32mp1, uint32_t clkDiv) in Mp1xxSpiConfigClk() argument183 clkDiv = clkDiv / MP1XX_SPI_MIN_CLK_DIV; in Mp1xxSpiConfigClk()185 if ((clkDiv >> mbr) == 0) { in Mp1xxSpiConfigClk()267 uint32_t clkDiv; in Mp1xxSpiConfig() local288 clkDiv = MP1XX_SPI_MIN_CLK_DIV; in Mp1xxSpiConfig()290 clkDiv = MP1XX_SPI_MAX_CLK_DIV; in Mp1xxSpiConfig()293 for (clkDiv = MP1XX_SPI_MIN_CLK_DIV; clkDiv < MP1XX_SPI_MAX_CLK_DIV; clkDiv = clkDiv << 1) { in Mp1xxSpiConfig()294 if (clkDiv < tmp && (clkDiv << 1) > tmp) { in Mp1xxSpiConfig()295 clkDiv = (((clkDiv << 1) - tmp) > (tmp - clkDiv)) ? clkDiv : (clkDiv << 1); in Mp1xxSpiConfig()299 HDF_LOGE("%s:clkDiv=%u", __func__, clkDiv); in Mp1xxSpiConfig()[all …]
183 uint32_t clkDiv = 0; in HimciClkDiv() local221 clkDiv = hostClk / (clock * 2); in HimciClkDiv()223 clkDiv++; in HimciClkDiv()225 if (clkDiv > MAX_CLKDIV_VAL) { in HimciClkDiv()226 clkDiv = MAX_CLKDIV_VAL; in HimciClkDiv()231 HIMCI_WRITEL(clkDiv, (uintptr_t)host->base + MMC_CLKDIV); in HimciClkDiv()