1. 20 Oct, 2018 1 commit
    • Andre Przywara's avatar
      allwinner: Export sunxi_private.h · 4ec1a239
      Andre Przywara authored
      
      
      So far we have a sunxi_private.h header file in the common code directory.
      This holds the prototypes of various functions we share in *common*
      code. However we will need some of those in the platform specific code
      parts as well, and want to introduce new functions shared across the
      whole platform port.
      
      So move the sunxi_private.h file into the common/include directory, so
      that it becomes visible to all parts of the platform code.
      Fix up the existing #includes and add missing ones, also add the
      sunxi_read_soc_id() prototype here.
      
      This will be used in follow up patches.
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      4ec1a239
  2. 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
  3. 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