|
@@ -39,6 +39,7 @@
|
|
|
#include <linux/atmel_pdc.h>
|
|
|
#include <linux/pm.h>
|
|
|
#include <linux/pm_runtime.h>
|
|
|
+#include <linux/pinctrl/consumer.h>
|
|
|
|
|
|
#include <asm/cacheflush.h>
|
|
|
#include <asm/io.h>
|
|
@@ -2568,6 +2569,8 @@ static int atmci_runtime_suspend(struct device *dev)
|
|
|
|
|
|
clk_disable_unprepare(host->mck);
|
|
|
|
|
|
+ pinctrl_pm_select_sleep_state(dev);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -2575,6 +2578,8 @@ static int atmci_runtime_resume(struct device *dev)
|
|
|
{
|
|
|
struct atmel_mci *host = dev_get_drvdata(dev);
|
|
|
|
|
|
+ pinctrl_pm_select_default_state(dev);
|
|
|
+
|
|
|
return clk_prepare_enable(host->mck);
|
|
|
}
|
|
|
#endif
|