Commit 683e030348389616ba6c0ca6ca7098233ee48798

Authored by Dave Gerlach
Committed by Rajendra Nayak
1 parent 8e84a2b344

ARM: OMAP2+: am43xx: Use omap4 prm context ops

Context loss counting relies on several prm function pointers that
serve as a "mapping" into the context loss registers and actually
allow reading and clearing of the registers. Use the same
from omap4 for am43xx as the layout of the prcm is similar.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

arch/arm/mach-omap2/io.c
... ... @@ -613,6 +613,7 @@
613 613 omap_prm_base_init();
614 614 omap_cm_base_init();
615 615 omap3xxx_check_revision();
  616 + omap44xx_prm_init();
616 617 am33xx_check_features();
617 618 am43xx_powerdomains_init();
618 619 am43xx_clockdomains_init();
arch/arm/mach-omap2/prm44xx.c
... ... @@ -660,7 +660,8 @@
660 660  
661 661 int __init omap44xx_prm_init(void)
662 662 {
663   - if (!cpu_is_omap44xx() && !soc_is_omap54xx() && !soc_is_dra7xx())
  663 + if (!soc_is_am43xx() && !cpu_is_omap44xx() &&
  664 + !soc_is_omap54xx() && !soc_is_dra7xx())
664 665 return 0;
665 666  
666 667 return prm_register(&omap44xx_prm_ll_data);