1. 18 Jan, 2019 2 commits
    • Anson Huang's avatar
      imx: support for i.MX8 SoCs misc IPC · 936840f1
      Anson Huang authored
      
      
      NXP's i.MX8 SoCs have system controller (M4 core) which takes
      control of misc functions like temperature alarm, dma etc., other
      Cortex-A clusters can send out command via MU (Message Unit) to
      system controller for misc operation etc..
      
      This patch adds misc IPC(inter-processor communication) support.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      936840f1
    • Anson Huang's avatar
      imx: add wakeup source SIP runtime service support · ebdbc25b
      Anson Huang authored
      
      
      On i.MX8QM/i.MX8QX with system controller inside, the wakeup
      source is managed in SCFW(system controller firmware), if the
      wakeup source is belonged to system controller partition, then
      before Linux suspend, the wakeup source should be set to
      SC_PM_WAKE_SRC_SCU, and if the wakeup source is belonged to
      Cortex-A partition, the wakeup source should be set to
      SC_PM_WAKE_SRC_IRQSTEER, so need to add wakeup source SIP runtime
      service to get Linux kernel's wakeup source and set the correct
      wakeup source for system controller.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      ebdbc25b
  2. 17 Jan, 2019 3 commits
    • Anson Huang's avatar
      imx: add cpu-freq SIP runtime service support · d3996c59
      Anson Huang authored
      
      
      On i.MX8QM/i.MX8QX with system controller inside, the CPU's clock
      rate is managed by SCFW(system controller firmware) and can ONLY be
      changed from secure world, so SIP runtime service is needed for
      setting CPU's clock rate, this patch adds cpu-freq SIP runtime service
      support.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      d3996c59
    • 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
    • Anson Huang's avatar
      Support for NXP's i.MX8 SoCs timer IPC · 1552df5d
      Anson Huang authored
      
      
      NXP's i.MX8 SoCs have system controller (M4 core) which takes
      control of timer management, including watchdog, srtc and system
      counter etc., other clusters like Cortex-A35 can send out command
      via MU (Message Unit) to system controller for timer operation.
      
      This patch adds timer IPC(inter-processor communication) support.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      1552df5d
  3. 16 Jan, 2019 27 commits
  4. 15 Jan, 2019 7 commits
    • Ard Biesheuvel's avatar
      plat/synquacer: enable SPM support · 434454a2
      Ard Biesheuvel authored
      
      
      Enable the deprecated SPM framework for the SynQuacer platform.
      It involves creating a memory layout in secure DRAM, and wiring
      up the SPM infrastructure so that the secure partition payload
      that is loaded into this region by the SCP firmware is dispatched
      appropriately.
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      434454a2
    • Ard Biesheuvel's avatar
      plat/synquacer: enable OP-TEE logic only if SPD_opteed is set · e373b6a2
      Ard Biesheuvel authored
      
      
      The logic that initializes the BL32 entry point data structure
      should only be executed if we are in fact loading OP-TEE, and
      not if BL32_BASE is set for other reasons (i.e., when enabling
      SPM)
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      e373b6a2
    • Paul Beesley's avatar
      Correct typographical errors · 8aabea33
      Paul Beesley authored
      
      
      Corrects typos in core code, documentation files, drivers, Arm
      platforms and services.
      
      None of the corrections affect code; changes are limited to comments
      and other documentation.
      
      Change-Id: I5c1027b06ef149864f315ccc0ea473e2a16bfd1d
      Signed-off-by: default avatarPaul Beesley <paul.beesley@arm.com>
      8aabea33
    • Antonio Nino Diaz's avatar
      plat/arm: Fix header dependencies · 234bc7f8
      Antonio Nino Diaz authored
      
      
      From now on, platform_def.h must include any header with definitions that
      are platform-specific (like arm_def.h) and the included headers mustn't
      include back platform_def.h, and shouldn't be used by other files. Only
      platform_def.h should be included in other files. This will ensure that all
      needed definitions are present, rather than needing to include all the
      headers in all the definitions' headers just in case.
      
      This also prevents problems like cyclic dependencies.
      
      Change-Id: I9d3cf4d1de4b956fa035c79545222697acdaf5ca
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      234bc7f8
    • Antonio Nino Diaz's avatar
      Move BL1 and BL2 private defines to bl_common.h · c9f9d9ea
      Antonio Nino Diaz authored
      
      
      The definitions in bl1/bl1_private.h and bl2/bl2_private.h are useful for
      platforms that may need to access them.
      
      Change-Id: Ifd1880f855ddafcb3bfcaf1ed4a4e0f121eda174
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      c9f9d9ea
    • Anson Huang's avatar
      imx: make imx uart work for debug mode · 2e8ab4f5
      Anson Huang authored
      
      
      With DEBUG_CONSOLE enabled, build will fail for imx8mq platform:
      
      ./build/imx8mq/release/bl31/imx8mq_bl31_setup.o:
      In function `bl31_early_platform_setup2':
      imx8mq_bl31_setup.c:(.text.bl31_early_platform_setup2+0x40):
      	undefined reference to `console_uart_register'
      Makefile:741: recipe for target 'build/imx8mq/release/bl31/bl31.elf' failed
      make: *** [build/imx8mq/release/bl31/bl31.elf] Error 1
      
      Besides, the .console_flush callback needs to be added to avoid
      panic when debug mode is enabled, since the console_flush() will
      call it without checking whether the function callback is valid.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      2e8ab4f5
    • Anson Huang's avatar
      imx: add necessary lpuart console_flush callback for debug · f1ac7964
      Anson Huang authored
      
      
      Current lpuart driver does NOT implement .console_flush callback,
      if debug console is enabled, the console_flush() will call the
      undefined .console_flush callback(NULL) for lpuart and leak to
      panic, this patch adds .console_flush callback to make lpuart work
      for debug mode.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      f1ac7964
  5. 10 Jan, 2019 1 commit