1. 15 Sep, 2011 34 commits
  2. 14 Sep, 2011 6 commits
    • Paul Walmsley's avatar
      OMAP: powerdomain: remove omap_chip bitmasks · 8179488a
      Paul Walmsley authored
      At Tony's request, remove the omap_chip bitmasks from the powerdomain
      definitions.  Instead, initialize powerdomains based on one or more
      lists that are applicable to a particular SoC family, variant, and
      silicon revision.
      
      Gražvydas Ignotas <notasas@gmail.com> found and reported a bug in a
      related patch that also applied to this patch - thanks Gražvydas.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Gražvydas Ignotas <notasas@gmail.com>
      8179488a
    • Paul Walmsley's avatar
      OMAP: powerdomain: split pwrdm_init() into two functions · 129c65ee
      Paul Walmsley authored
      In preparation for OMAP_CHIP() removal, split pwrdm_init() into three
      functions.  This allows some of them to be called multiple times: for
      example, pwrdm_register_pwrdms() can be called once to register
      powerdomains that are common to a group of SoCs, and once to register
      powerdomains that are specific to a single SoC.
      
      The appropriate order to call these functions - which is enforced
      by the code - is:
      
      1. pwrdm_register_platform_funcs()
      2. pwrdm_register_pwrdms() (can be called multiple times)
      3. pwrdm_complete_init()
      
      Convert the OMAP2, 3, and 4 powerdomain init code to use these new
      functions.
      
      While here, improve documentation, and increase CodingStyle
      conformance by shortening some local variable names.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      129c65ee
    • Paul Walmsley's avatar
      OMAP: clockdomain code/data: remove omap_chip bitmask from struct clockdomain · a5ffef6a
      Paul Walmsley authored
      At Tony's request, remove the omap_chip bitmasks from the clockdomain
      and clockdomain dependency definitions.  Instead, initialize
      clockdomains based on one or more lists that are applicable to a
      particular SoC family, variant, and silicon revision.
      
      Tony Lindgren <tony@atomide.com> found a bug in a previous version of this
      patch - thanks Tony.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Tony Lindgren <tony@atomide.com>
      a5ffef6a
    • Paul Walmsley's avatar
      OMAP: clockdomain: split clkdm_init() · 08cb9703
      Paul Walmsley authored
      In preparation for OMAP_CHIP() removal, split clkdm_init() into four
      functions.  This allows some of them to be called multiple times: for
      example, clkdm_register_clkdms() can be called once to register
      clockdomains that are common to a group of SoCs, and once to register
      clockdomains that are specific to a single SoC.
      
      The appropriate order to call these functions - which is enforced
      by the code - is:
      
      1. clkdm_register_platform_funcs()
      2. clkdm_register_clkdms() (can be called multiple times)
      3. clkdm_register_autodeps() (optional; deprecated)
      4. clkdm_complete_init()
      
      Convert the OMAP2, 3, and 4 clockdomain init code to use these new
      functions.
      
      While here, improve documentation, and increase CodingStyle
      conformance by shortening some local variable names.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      08cb9703
    • Paul Walmsley's avatar
      OMAP2+: id: remove OMAP_REVBITS_* macros · 057673d8
      Paul Walmsley authored
      The OMAP_REVBITS_* macros are just used as otherwise meaningless
      aliases for the numbers zero through five, so remove these macros.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Tested-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      Tested-by: default avatarAbhilash Koyamangalath <abhilash.kv@ti.com>
      057673d8
    • Paul Walmsley's avatar
      OMAP3: id: remove duplicate code for testing SoC ES level · 3b32b7d6
      Paul Walmsley authored
      omap3_cpuinfo() contains essentially duplicated code from
      omap3_check_revision(), just for the purpose of determining the chip ES level.
      Set the cpu_rev char array pointer in omap3_check_revision() instead,
      and drop the now-useless code from omap3_cpuinfo().
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Tested-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      Tested-by: default avatarAbhilash Koyamangalath <abhilash.kv@ti.com>
      3b32b7d6