1. 03 Feb, 2021 1 commit
    • Julius Werner's avatar
      qti: spmi_arb: Fix NUM_APID and REG_APID_MAP() argument · de67080f
      Julius Werner authored
      
      
      The NUM_APID value was derived from kernel device tree sources, but I
      made a conversion mistake: the amount of bytes in the APID map is the
      total size of the "core" register range (0x1100) minus the offset of the
      APID map in that range (0x900). This is of course 0x1100 - 0x900 = 0x800
      and not 0x200, so the amount of 4-byte integers it can fit is not 0x80
      but 0x200. Fix this and make the math more explicit so it can be more
      easily factored out and adjusted if that becomes necessary for a future
      SoC.
      
      Also fix a dangerous typo in REG_APID_MAP() where the macro would
      reference a random variable `i` rather than its argument (`apid`), and
      we just got lucky that the only caller in the current code happened to
      pass in a variable called `i` as that argument.
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      Change-Id: I049dd044fa5aeb65be0e7b12150afd6eb4bac0fa
      de67080f
  2. 19 Nov, 2020 1 commit
  3. 15 Oct, 2020 1 commit
  4. 09 Oct, 2020 1 commit
    • Jimmy Brisson's avatar
      Don't return error information from console_flush · 831b0e98
      Jimmy Brisson authored
      
      
      And from crash_console_flush.
      
      We ignore the error information return by console_flush in _every_
      place where we call it, and casting the return type to void does not
      work around the MISRA violation that this causes. Instead, we collect
      the error information from the driver (to avoid changing that API), and
      don't return it to the caller.
      
      Change-Id: I1e35afe01764d5c8f0efd04f8949d333ffb688c1
      Signed-off-by: default avatarJimmy Brisson <jimmy.brisson@arm.com>
      831b0e98
  5. 09 Sep, 2020 1 commit
  6. 27 Aug, 2020 1 commit
  7. 26 Aug, 2020 1 commit
  8. 25 Aug, 2020 2 commits
    • Julius Werner's avatar
      qti: Add SPMI PMIC arbitrator driver · f40008a4
      Julius Werner authored
      
      
      This patch adds a very rudimentary driver for the SPMI arbitrator used
      to access the PMIC. It doesn't support all the controller's actual
      arbitration features, so it should probably not be used concurrently
      with a running kernel (and it's also not optimized for performance). But
      it can be used to set a few registers during boot or on shutdown to
      control reset handling, which is all we need it for.
      
      Change-Id: I8631c34a2a89ac71aa1ec9b8266e818c922fe34a
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      f40008a4
    • Julius Werner's avatar
      qti/sc7180: Fix GIC-600 support setting · 2acf0043
      Julius Werner authored
      
      
      The patch adding platform support for sc7180 landed around roughly the
      same time as the patch that changed GICV3_IMPL to GICV3_SUPPORT_GIC600.
      Thus the sc7180 Makefile is still using the old variable name which now
      no longer does anything, and it hangs on boot due to the lacking GIC-600
      support. This patch fixes the issue.
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      Change-Id: Id76ada1445c3c5ac9a5a3697b4e749088b89d796
      2acf0043
  9. 18 Aug, 2020 1 commit
  10. 13 Aug, 2020 1 commit
  11. 10 Aug, 2020 1 commit