1. 09 May, 2014 2 commits
  2. 08 May, 2014 1 commit
  3. 07 Apr, 2014 3 commits
    • Sandrine Bailleux's avatar
      juno: Implement plat_get_syscnt_freq() function · a809fd94
      Sandrine Bailleux authored
      In the Juno port, this function returns the first entry of the
      frequency modes table from the memory mapped generic timer.
      a809fd94
    • Sandrine Bailleux's avatar
      Define frequency of system counter in platform code · a5355358
      Sandrine Bailleux authored
      BL3-1 architecture setup code programs the system counter frequency
      into the CNTFRQ_EL0 register. This frequency is defined by the
      platform, though. This patch introduces a new platform hook that
      the architecture setup code can call to retrieve this information.
      In the ARM FVP port, this returns the first entry of the frequency
      modes table from the memory mapped generic timer.
      
      All system counter setup code has been removed from BL1 as some
      platforms may not have initialized the system counters at this stage.
      The platform specific settings done exclusively in BL1 have been moved
      to BL3-1. In the ARM FVP port, this consists in enabling and
      initializing the System level generic timer. Also, the frequency change
      request in the counter control register has been set to 0 to make it
      explicit it's using the base frequency. The CNTCR_FCREQ() macro has been
      fixed in this context to give an entry number rather than a bitmask.
      
      In future, when support for firmware update is implemented, there
      is a case where BL1 platform specific code will need to program
      the counter frequency. This should be implemented at that time.
      
      This patch also updates the relevant documentation.
      a5355358
    • Sandrine Bailleux's avatar
      Revert "Move architecture timer setup to platform-specific code" · c78069c5
      Sandrine Bailleux authored
      This reverts commit 1c297bf0
      because it introduced a bug: the CNTFRQ_EL0 register was no
      longer programmed by all CPUs.  bl31_platform_setup() function
      is invoked only in the cold boot path and consequently only
      on the primary cpu.
      
      A subsequent commit will correctly implement the necessary changes
      to the counter frequency setup code.
      c78069c5
  4. 13 Mar, 2014 1 commit
  5. 12 Mar, 2014 33 commits