Skip to content

Commit 3679554

Browse files
Sukrut Bellarystorulf
authored andcommitted
pmdomain: ti: Fix STANDBY handling of PER power domain
Per AM335x TRM[1](section 8.1.4.3 Power mode), in case of STANDBY, PER domain should be ON. So, fix the PER power domain handling on standby. [1] https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf Signed-off-by: Sukrut Bellary <sbellary@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Tested-by: Judith Mendez <jm@ti.com> Link: https://lore.kernel.org/r/20250318230042.3138542-3-sbellary@baylibre.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 3611434 commit 3679554

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/pmdomain/ti/omap_prm.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#include <linux/pm_domain.h>
1919
#include <linux/reset-controller.h>
2020
#include <linux/delay.h>
21-
21+
#if IS_ENABLED(CONFIG_SUSPEND)
22+
#include <linux/suspend.h>
23+
#endif
2224
#include <linux/platform_data/ti-prm.h>
2325

2426
enum omap_prm_domain_mode {
@@ -88,6 +90,7 @@ struct omap_reset_data {
8890
#define OMAP_PRM_HAS_RSTST BIT(1)
8991
#define OMAP_PRM_HAS_NO_CLKDM BIT(2)
9092
#define OMAP_PRM_RET_WHEN_IDLE BIT(3)
93+
#define OMAP_PRM_ON_WHEN_STANDBY BIT(4)
9194

9295
#define OMAP_PRM_HAS_RESETS (OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_RSTST)
9396

@@ -404,7 +407,8 @@ static const struct omap_prm_data am3_prm_data[] = {
404407
.name = "per", .base = 0x44e00c00,
405408
.pwrstctrl = 0xc, .pwrstst = 0x8, .dmap = &omap_prm_noinact,
406409
.rstctrl = 0x0, .rstmap = am3_per_rst_map,
407-
.flags = OMAP_PRM_HAS_RSTCTRL, .clkdm_name = "pruss_ocp"
410+
.flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_ON_WHEN_STANDBY,
411+
.clkdm_name = "pruss_ocp",
408412
},
409413
{
410414
.name = "wkup", .base = 0x44e00d00,

0 commit comments

Comments
 (0)