1
0
Fork 0

MLK-11472 sim: imx: set sim1 IOMUX to default state

SIM1 IOMUX is changed into reset state in LPSR mode.As a result,
sim can't work again.

This patch sets sim1 IOMUX to default state after existing from LPSR mode.

(cherry-picked from commit 8e237775cd413645bfd806e4c648954e1a773a2d)

Signed-off-by: Gao Pan <b54642@freescale.com>
5.4-rM2-2.2.x-imx-squashed
Gao Pan 2015-09-01 13:14:08 +08:00 committed by Dong Aisheng
parent 957de2871d
commit 34a04d8706
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include <linux/mxc_sim_interface.h>
#include <linux/spinlock.h>
#include <linux/time.h>
#include <linux/pinctrl/consumer.h>
#include <linux/io.h>
@ -1808,6 +1809,8 @@ static int sim_suspend(struct platform_device *pdev, pm_message_t state)
if (sim->open_cnt)
clk_disable_unprepare(sim->clk);
pinctrl_pm_select_sleep_state(&pdev->dev);
return 0;
}
@ -1818,6 +1821,8 @@ static int sim_resume(struct platform_device *pdev)
if (sim->open_cnt)
clk_prepare_enable(sim->clk);
pinctrl_pm_select_default_state(&pdev->dev);
return 0;
}
#else