• Rajendra Nayak's avatar
    OMAP4: PM: Declare idle modules as functional too · ff173d45
    Rajendra Nayak authored
    The omap4_cm_wait_module_ready function would only check for
    the modules to be completely functional before declaring them
    ready to be accessed.
    There might also be instances where in the module is actually
    in idle (under h/w control) but should still be declared
    accessible, as the h/w control would make it functional when
    needed.
    
    Hence make omap4_cm_wait_module_ready return true in case
    the module is fully functional *or* in idle state.
    Fail only if the module is fully disabled or stuck intransition.
    
    The explaination from the TRM for the idlest bits on OMAP4 is as
    below for quick reference
    
    Module idle state:
    0x0 func:     Module is fully functional, including OCP
    0x1 trans:    Module is performing transition: wakeup, or sleep, or sleep
                  abortion
    0x2 idle:     Module is in Idle mode (only OCP part). It is functional if
                  using separate functional clock
    0x3 disabled: Module is disabled and cannot be accessed
    Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
    Signed-off-by: default avatarPartha Basak <p-basak2@ti.com>
    Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    ff173d45
cm4xxx.c 1.69 KB