Lines Matching defs:clock
49 * clock - Clock Value to be set
52 * for getting the required clock assuming the base_clk
55 static void set_speed(struct mmc *mmc, uint32_t clock)
57 /* sdhc_clk = (base clock) / [(SDCLKFS × 2) × (DVS +1)] */
61 /* TBD - Change this to actual platform clock by reading via RCW */
64 if (base_clk / 16 > clock) {
66 if ((base_clk / sdclkfs) <= (clock * 16)) {
73 if ((base_clk / (dvs * sdclkfs)) <= clock) {
125 /* Set initial clock speed */
138 /* Enable controller clock */
142 /* Send 80 clock ticks for the card to power up */