-#if 1
-static void glamo_mci_reset(struct glamo_mci_host *host)
-{
- if (host->suspending) {
- dev_err(&host->pdev->dev, "IGNORING glamo_mci_reset while "
- "suspended\n");
- return;
- }
- dev_dbg(&host->pdev->dev, "******* glamo_mci_reset\n");
- /* reset MMC controller */
- writew(GLAMO_CLOCK_MMC_RESET | GLAMO_CLOCK_MMC_DG_TCLK |
- GLAMO_CLOCK_MMC_EN_TCLK | GLAMO_CLOCK_MMC_DG_M9CLK |
- GLAMO_CLOCK_MMC_EN_M9CLK,
- glamo_mci_def_pdata.pglamo->base + GLAMO_REG_CLOCK_MMC);
- udelay(10);
- /* and disable reset */
- writew(GLAMO_CLOCK_MMC_DG_TCLK |
- GLAMO_CLOCK_MMC_EN_TCLK | GLAMO_CLOCK_MMC_DG_M9CLK |
- GLAMO_CLOCK_MMC_EN_M9CLK,
- glamo_mci_def_pdata.pglamo->base + GLAMO_REG_CLOCK_MMC);
-}
-#endif
-static inline int glamo_mci_get_mv(int vdd)
-{
- int mv = 1650;
-
- if (vdd > 7)
- mv += 350 + 100 * (vdd - 8);
-
- return mv;
-}
-