/* Sets the host clock to the highest possible frequency that is below "hz".  */
void mmcsd_set_clock(struct rt_mmcsd_host *host, rt_uint32_t clk)
/* Sets the host clock to the highest possible frequency that is below "hz".  */
void mmcsd_set_clock(struct rt_mmcsd_host *host, rt_uint32_t clk)
{
    if (clk < host->freq_min)
    {
        rt_kprintf("clock too low\n");
    }
    host->io_cfg.clock = clk;
    mmcsd_set_iocfg(host);
}