Linux_SDK_V1.3.3

Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
This commit is contained in:
thead_admin
2023-11-14 01:42:19 +00:00
committed by Han Gao/Revy/Rabenda
parent 2bd2eac4a7
commit e17ac7bab2
127 changed files with 6216 additions and 1379 deletions

View File

@@ -748,21 +748,35 @@ static int dw_dphy_runtime_resume(struct device *dev)
return 0;
}
#endif
static int dw_dphy_resume(struct device *dev)
{
struct dw_dphy *dphy = dev_get_drvdata(dev);
dw_dphy_init(dphy->phy);
return 0;
}
static const struct dev_pm_ops dw_dphy_pm_ops = {
SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
pm_runtime_force_resume)
SET_RUNTIME_PM_OPS(dw_dphy_runtime_suspend, dw_dphy_runtime_resume, NULL)
SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL,
dw_dphy_resume)
SET_RUNTIME_PM_OPS(dw_dphy_runtime_suspend, dw_dphy_runtime_resume, NULL)
};
#define DW_DPHY_PM_OPS &dw_dphy_pm_ops
#else
#define DW_DPHY_PM_OPS NULL
#endif
static struct platform_driver dw_dphy_driver = {
.probe = dw_dphy_probe,
.remove = dw_dphy_remove,
.driver = {
.name = "dw-mipi-dphy",
.of_match_table = dw_dphy_of_match,
.pm = &dw_dphy_pm_ops,
.pm = DW_DPHY_PM_OPS,
},
};
module_platform_driver(dw_dphy_driver);