Commit 0f0dd08932d4eb0fb336e6c2a48f27855b99ead2

Authored by Aida Mynzhasova
Committed by Paul Walmsley
1 parent eeb6603fdd

ARM: OMAP: TI81XX: add always-on powerdomain for TI81XX

This patch adds alwon powerdomain support for TI81XX, which is required
for stable functioning of a big number of TI81XX subsystems.

Signed-off-by: Aida Mynzhasova <aida.mynzhasova@skitlab.ru>
Signed-off-by: Paul Walmsley <paul@pwsan.com>

Showing 2 changed files with 9 additions and 0 deletions Side-by-side Diff

arch/arm/mach-omap2/powerdomains3xxx_data.c
... ... @@ -336,6 +336,13 @@
336 336 .voltdm = { .name = "core" },
337 337 };
338 338  
  339 +static struct powerdomain alwon_81xx_pwrdm = {
  340 + .name = "alwon_pwrdm",
  341 + .prcm_offs = TI81XX_PRM_ALWON_MOD,
  342 + .pwrsts = PWRSTS_OFF_ON,
  343 + .voltdm = { .name = "core" },
  344 +};
  345 +
339 346 static struct powerdomain device_81xx_pwrdm = {
340 347 .name = "device_pwrdm",
341 348 .prcm_offs = TI81XX_PRM_DEVICE_MOD,
... ... @@ -442,6 +449,7 @@
442 449 };
443 450  
444 451 static struct powerdomain *powerdomains_ti81xx[] __initdata = {
  452 + &alwon_81xx_pwrdm,
445 453 &device_81xx_pwrdm,
446 454 &active_816x_pwrdm,
447 455 &default_816x_pwrdm,
arch/arm/mach-omap2/prcm-common.h
... ... @@ -58,6 +58,7 @@
58 58 #define TI816X_PRM_IVAHD1_MOD 0x0d00
59 59 #define TI816X_PRM_IVAHD2_MOD 0x0e00
60 60 #define TI816X_PRM_SGX_MOD 0x0f00
  61 +#define TI81XX_PRM_ALWON_MOD 0x1800
61 62  
62 63 /* 24XX register bits shared between CM & PRM registers */
63 64