1. 10 Mar, 2020 1 commit
  2. 25 Feb, 2020 1 commit
  3. 28 Jan, 2020 1 commit
    • Madhukar Pappireddy's avatar
      Enable -Wredundant-decls warning check · ca661a00
      Madhukar Pappireddy authored
      
      
      This flag warns if anything is declared more than once in the same
      scope, even in cases where multiple declaration is valid and changes
      nothing.
      
      Consequently, this patch also fixes the issues reported by this
      flag. Consider the following two lines of code from two different source
      files(bl_common.h and bl31_plat_setup.c):
      
      IMPORT_SYM(uintptr_t, __RO_START__, BL_CODE_BASE);
      IMPORT_SYM(unsigned long, __RO_START__, BL2_RO_BASE);
      
      The IMPORT_SYM macro which actually imports a linker symbol as a C expression.
      The macro defines the __RO_START__ as an extern variable twice, one for each
      instance. __RO_START__ symbol is defined by the linker script to mark the start
      of the Read-Only area of the memory map.
      
      Essentially, the platform code redefines the linker symbol with a different
      (relevant) name rather than using the standard symbol. A simple solution to
      fix this issue in the platform code for redundant declarations warning is
      to remove the second IMPORT_SYM and replace it with following assignment
      
      static const unsigned long BL2_RO_BASE = BL_CODE_BASE;
      
      Change-Id: If4835d1ee462d52b75e5afd2a59b64828707c5aa
      Signed-off-by: default avatarMadhukar Pappireddy <madhukar.pappireddy@arm.com>
      ca661a00
  4. 24 Jan, 2020 1 commit
  5. 28 Jun, 2019 1 commit
  6. 20 May, 2019 1 commit
  7. 29 Jan, 2019 1 commit
    • Anson Huang's avatar
      imx: power optimization for i.mx8qm · 3a2b5199
      Anson Huang authored
      
      
      Current implementation of i.MX8QM power management related
      features does NOT optimize power number, all system resources
      like CCI, DDR, and A cluster etc. are kept in STBY mode (powered
      ON) when system suspend or CPU hotplug.
      
      To lower the power number, OFF mode should be adopted for those
      system resources whenever they can be OFF, A cluster will be OFF
      if the CPUs in the cluster are all off line, DDR/MU/DB can be OFF
      if system suspend, IRQ steer can be OFF if the wakeup source is
      belonged to system controller partition, so wakeup source runtime
      check is used to determine if IRQ steer can be OFF before system
      suspend.
      
      If resources are powered off for suspend, they should be restored
      properly after system resume.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      3a2b5199
  8. 24 Jan, 2019 1 commit
  9. 17 Jan, 2019 1 commit
    • Anson Huang's avatar
      imx: add imx8qm/imx8qx SRTC SIP runtime service support · 025514ba
      Anson Huang authored
      
      
      On i.MX8QM/i.MX8QX with system controller inside, the SRTC is
      managed by SCFW(system controller firmware) and some functions
      like setting SRTC's time etc. can ONLY be requested from secure
      world, so SIP runtime service is needed for such kind of operations,
      this patch adds SRTC SIP runtime service support for i.MX8QM and
      i.MX8QX.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      025514ba
  10. 04 Jan, 2019 1 commit
    • Antonio Nino Diaz's avatar
      Sanitise includes across codebase · 09d40e0e
      Antonio Nino Diaz authored
      Enforce full include path for includes. Deprecate old paths.
      
      The following folders inside include/lib have been left unchanged:
      
      - include/lib/cpus/${ARCH}
      - include/lib/el3_runtime/${ARCH}
      
      The reason for this change is that having a global namespace for
      includes isn't a good idea. It defeats one of the advantages of having
      folders and it introduces problems that are sometimes subtle (because
      you may not know the header you are actually including if there are two
      of them).
      
      For example, this patch had to be created because two headers were
      called the same way: e0ea0928 ("Fix gpio includes of mt8173 platform
      to avoid collision."). More recently, this patch has had similar
      problems: 46f9b2c3 ("drivers: add tzc380 support").
      
      This problem was introduced in commit 4ecca339
      
       ("Move include and
      source files to logical locations"). At that time, there weren't too
      many headers so it wasn't a real issue. However, time has shown that
      this creates problems.
      
      Platforms that want to preserve the way they include headers may add the
      removed paths to PLAT_INCLUDES, but this is discouraged.
      
      Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      09d40e0e
  11. 07 Dec, 2018 1 commit
    • Julius Werner's avatar
      drivers/console: Link console framework code by default · 985ee0b7
      Julius Werner authored
      
      
      This patch makes the build system link the console framework code by
      default, like it already does with other common libraries (e.g. cache
      helpers). This should not make a difference in practice since TF is
      linked with --gc-sections, so the linker will garbage collect all
      functions and data that are not referenced by any other code. Thus, if a
      platform doesn't want to include console code for size reasons and
      doesn't make any references to console functions, the code will not be
      included in the final binary.
      
      To avoid compatibility issues with older platform ports, only make this
      change for the MULTI_CONSOLE_API.
      
      Change-Id: I153a9dbe680d57aadb860d1c829759ba701130d3
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      985ee0b7
  12. 28 Sep, 2018 1 commit
  13. 22 Aug, 2018 1 commit
  14. 20 Jul, 2018 1 commit
  15. 12 Jul, 2018 4 commits
    • Anson Huang's avatar
      imx: imx8qm: add domain suspend/resume support · 8ef9f860
      Anson Huang authored
      
      
      Add domain suspend/resume support, Linux kernel
      can "echo mem > /sys/power/state" to put system
      into suspend mode, all CPUs and cluster will be
      powered off and can be waked up if irq pending
      in GIC, tested on i.MX8QM MEK board.
      
      Since the power state has been implemented, switch
      to use standard power state for CCI operations
      instead of private cpu use count in i.MX8QM.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      8ef9f860
    • Anson Huang's avatar
      imx: imx8qm: add domain off support · 0f53bca0
      Anson Huang authored
      
      
      Add domain off support for Linux kernel's cpu
      hot-plug feature, when there are cpu off request
      from Linux kernel, TF-A will send command to
      system controller to do CPU power gate accordingly,
      tested on i.MX8QM MEK board.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      0f53bca0
    • Anson Huang's avatar
      imx: imx8qm: add system reset support · d31ffcf0
      Anson Huang authored
      
      
      Add system reset support for i.MX8QM,
      when Linux kernel issues "reboot" command,
      TF-A will send command to inform system
      controller to reset whole board according
      to board design, tested on i.MX8QM MEK board.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      d31ffcf0
    • Anson Huang's avatar
      imx: imx8qm: add system off support · db81c592
      Anson Huang authored
      
      
      Add system power off support for i.MX8QM,
      when Linux kernel issues "poweroff" command,
      TF-A will send command to inform system
      controller to power off whole board according
      to board design, tested on i.MX8QM MEK board.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      db81c592
  16. 19 Jun, 2018 1 commit