1. 24 Apr, 2008 8 commits
    • Paul Walmsley's avatar
      clockdomains: encode OMAP2/3 clockdomains · 2712ea0f
      Paul Walmsley authored
      Add clockdomain definitions for OMAP24xx and OMAP34xx chips.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2712ea0f
    • Paul Walmsley's avatar
      clockdomains: connect clockdomain code to powerdomain code · 597f2ada
      Paul Walmsley authored
      Thie patch adds code to the powerdomain layer to track the
      clockdomains associated with each powerdomain.
      
      It also modifies the clockdomain code to register clockdomains
      with their corresponding powerdomain when the clockdomain is registered.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      597f2ada
    • Paul Walmsley's avatar
      clockdomains: add base OMAP2/3 clockdomain code · 4588613a
      Paul Walmsley authored
      This patch creates an interface to the clockdomain registers in the
      PRM/CM modules on OMAP2/3.  This interface is intended to be used by
      PM code, e.g., pm.c; not by device drivers directly.
      
      The patch also adds clockdomain usecount tracking.  This is intended
      to be called whenever the first clock in a clockdomain is enabled, or
      when the last enabled clock in a clockdomain is disabled.  If the
      clockdomain is in software-supervised mode, the code will force-wakeup
      or force-sleep the clockdomain.  If the clockdomain is in
      hardware-supervised mode, the first clock enable will add sleep and
      wakeup dependencies on a user-selectable set of parent domains (usually
      MPU & IVA2), and the disable will remove them.
      
      Each clockdomain will be defined in later patches as static
      structures.  The clockdomain structures are linked into a list at boot
      by clkdm_register(), similar to the OMAP clock code.
      
      The patch adds a Kconfig option, CONFIG_OMAP_DEBUG_CLOCKDOMAIN, which
      when enabled will emit verbose debug messages via pr_debug().
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      4588613a
    • Paul Walmsley's avatar
      add OMAP3 powerdomains · 3d4041ff
      Paul Walmsley authored
      Add OMAP3-specific powerdomains.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      3d4041ff
    • Paul Walmsley's avatar
      add OMAP2 powerdomains · 21b0accc
      Paul Walmsley authored
      Add OMAP2-specific powerdomains.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      21b0accc
    • Paul Walmsley's avatar
      add OMAP2/3 common powerdomains · e04c112d
      Paul Walmsley authored
      Add powerdomains common to both OMAP2 and OMAP3 (WKUP and GFX/SGX).
      Modify mach-omap2/io.c to initialize the powerdomain code on boot.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e04c112d
    • Paul Walmsley's avatar
      add base OMAP2/3 powerdomain code · 8800ed17
      Paul Walmsley authored
      This patch creates an interface to the powerdomain registers in the
      PRM/CM modules on OMAP2/3.  This interface is intended to be used by
      PM code, e.g., pm.c; not by device drivers directly.
      
      Each powerdomain will be defined in later patches as static
      structures.  Also defined are dependencies between powerdomains,
      used for adding and removing PM_WKDEP and CM_SLEEPDEP bits.  The
      powerdomain structures are linked into a list at boot by
      pwrdm_register(), similar to the OMAP clock code.
      
      The patch adds a Kconfig option, CONFIG_OMAP_DEBUG_POWERDOMAIN, which
      when enabled will emit verbose debug messages via pr_debug().
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      8800ed17
    • Paul Walmsley's avatar
      add OMAP chip type structure; clean up mach-omap2/id.c · b7a66cfb
      Paul Walmsley authored
      Add a new OMAP chip identification interface, omap_chip_id.
      omap_chip_id is a structure which contains one bit for each OMAP2/3
      CPU type, and on 3430, ES level.  For example, the CHIP_IS_OMAP2420
      bit is set in omap_chip at boot on an OMAP2420.  On OMAP3430ES2, both
      CHIP_IS_OMAP3430 and CHIP_IS_OMAP3430ES2 bits are set.
      
      omap_chip is set in mach-omap2/id.c by _set_omap_chip(). Other
      code should use the omap_chip_is() function to test against omap_chip.
      
      Also, clean up id.c by splitting some code out of
      omap_check_revision() into its own function, _set_system_rev(); and
      converting some debug printk()s into pr_debug().
      
      Second revision.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      b7a66cfb
  2. 23 Apr, 2008 32 commits