1. 28 Jun, 2018 1 commit
    • Andre Przywara's avatar
      allwinner: security: Fix SPC guard · 88aa5c43
      Andre Przywara authored
      
      
      The "#ifdef SUNXI_SPC_BASE" guard was meant to allow the build on SoCs
      without a Secure Peripherals Controller, so that we skip that part of
      the security setup. But in the current position this will trigger a
      warning about an unused variable.
      
      Simply move the guard one line up to cover the variable as well.
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      88aa5c43
  2. 15 Jun, 2018 1 commit
    • Andre Przywara's avatar
      allwinner: Add security setup · acb8b3ca
      Andre Przywara authored
      
      
      Some peripherals are TrustZone aware, so they need to be configured to
      be accessible from non-secure world, as we don't need any of them being
      exclusive to the secure world.
      This affects some clocks, DMA channels and the Secure Peripheral
      Controller (SPC). The latter controls access to most devices, but is not
      active unless booting with the secure boot fuse burnt.
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      acb8b3ca