|
@@ -153,7 +153,11 @@ static void sr_set_clk_length(struct omap_sr *sr)
|
|
struct clk *sys_ck;
|
|
struct clk *sys_ck;
|
|
u32 sys_clk_speed;
|
|
u32 sys_clk_speed;
|
|
|
|
|
|
- sys_ck = clk_get(NULL, "sys_ck");
|
|
|
|
|
|
+ if (cpu_is_omap34xx())
|
|
|
|
+ sys_ck = clk_get(NULL, "sys_ck");
|
|
|
|
+ else
|
|
|
|
+ sys_ck = clk_get(NULL, "sys_clkin_ck");
|
|
|
|
+
|
|
if (IS_ERR(sys_ck)) {
|
|
if (IS_ERR(sys_ck)) {
|
|
dev_err(&sr->pdev->dev, "%s: unable to get sys clk\n",
|
|
dev_err(&sr->pdev->dev, "%s: unable to get sys clk\n",
|
|
__func__);
|
|
__func__);
|
|
@@ -193,7 +197,7 @@ static void sr_set_regfields(struct omap_sr *sr)
|
|
* file or pmic specific data structure. In that case these structure
|
|
* file or pmic specific data structure. In that case these structure
|
|
* fields will have to be populated using the pdata or pmic structure.
|
|
* fields will have to be populated using the pdata or pmic structure.
|
|
*/
|
|
*/
|
|
- if (cpu_is_omap34xx()) {
|
|
|
|
|
|
+ if (cpu_is_omap34xx() || cpu_is_omap44xx()) {
|
|
sr->err_weight = OMAP3430_SR_ERRWEIGHT;
|
|
sr->err_weight = OMAP3430_SR_ERRWEIGHT;
|
|
sr->err_maxlimit = OMAP3430_SR_ERRMAXLIMIT;
|
|
sr->err_maxlimit = OMAP3430_SR_ERRMAXLIMIT;
|
|
sr->accum_data = OMAP3430_SR_ACCUMDATA;
|
|
sr->accum_data = OMAP3430_SR_ACCUMDATA;
|