1. 08 Jun, 2017 3 commits
    • Derek Basehore's avatar
      rockchip/rk3399: Save space for DRAM suspend data · 60400fc8
      Derek Basehore authored
      
      
      This removes the space allocation for the unused PHY register space.
      For instance in PHY registers 0-127, only 0-90 are used, so don't save
      the 91-127 registers. This saves about 1.6KB of space.
      
      Change-Id: I0c9f6d9bed8f0c1f3b8b805dfb10cf0c06208919
      Signed-off-by: default avatarDerek Basehore <dbasehore@chromium.org>
      60400fc8
    • Lin Huang's avatar
      rockchip: add pmusram section · bc5c3007
      Lin Huang authored
      
      
      the function pmu_cpuon_entrypoint() need to run in the pmusram,
      we just copy bin file to pmusram before, now we add pmusram section
      and link pmu_cpuon_entrypoint() to pmusram directly
      
      Change-Id: Iae31e4c01c480c8e6f565a8f588332b478efdb16
      Signed-off-by: default avatarLin Huang <hl@rock-chips.com>
      Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
      bc5c3007
    • Lin Huang's avatar
      rockchip/rk3399: fix DRAM gate training issue · a9059b96
      Lin Huang authored
      
      
      The differential signal of DQS need keep low level
      before gate training. It need enable RPULL and disable
      PHY side ODT to ensure it when do gate training.
      But it can not access the PHY registers to do it when
      perform DFS.So the workaroud as below: It is ensure that
      the PHY's read gate is landing somewhere in the incoming
      DQS's pulses before it starts searching for pre-amble window.
      It need get the rddqs_delay_ps to calculate the start point
      of gate training for DFS.
      
      Change-Id: I79eabcf4ec9a9c8f4539f68a51f22afba49c72fe
      Signed-off-by: default avatarLin Huang <hl@rock-chips.com>
      a9059b96
  2. 03 May, 2017 1 commit
  3. 07 Apr, 2017 1 commit
  4. 20 Mar, 2017 1 commit
  5. 01 Mar, 2017 1 commit
  6. 24 Feb, 2017 30 commits
  7. 06 Feb, 2017 1 commit
    • Douglas Raillard's avatar
      Replace some memset call by zeromem · 32f0d3c6
      Douglas Raillard authored
      
      
      Replace all use of memset by zeromem when zeroing moderately-sized
      structure by applying the following transformation:
      memset(x, 0, sizeof(x)) => zeromem(x, sizeof(x))
      
      As the Trusted Firmware is compiled with -ffreestanding, it forbids the
      compiler from using __builtin_memset and forces it to generate calls to
      the slow memset implementation. Zeromem is a near drop in replacement
      for this use case, with a more efficient implementation on both AArch32
      and AArch64.
      
      Change-Id: Ia7f3a90e888b96d056881be09f0b4d65b41aa79e
      Signed-off-by: default avatarDouglas Raillard <douglas.raillard@arm.com>
      32f0d3c6
  8. 23 Jan, 2017 1 commit
    • Masahiro Yamada's avatar
      Use #ifdef for IMAGE_BL* instead of #if · 3d8256b2
      Masahiro Yamada authored
      
      
      One nasty part of ATF is some of boolean macros are always defined
      as 1 or 0, and the rest of them are only defined under certain
      conditions.
      
      For the former group, "#if FOO" or "#if !FOO" must be used because
      "#ifdef FOO" is always true.  (Options passed by $(call add_define,)
      are the cases.)
      
      For the latter, "#ifdef FOO" or "#ifndef FOO" should be used because
      checking the value of an undefined macro is strange.
      
      Here, IMAGE_BL* is handled by make_helpers/build_macro.mk like
      follows:
      
        $(eval IMAGE := IMAGE_BL$(call uppercase,$(3)))
      
        $(OBJ): $(2)
                @echo "  CC      $$<"
                $$(Q)$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -D$(IMAGE) -c $$< -o $$@
      
      This means, IMAGE_BL* is defined when building the corresponding
      image, but *undefined* for the other images.
      
      So, IMAGE_BL* belongs to the latter group where we should use #ifdef
      or #ifndef.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      3d8256b2
  9. 12 Jan, 2017 1 commit