1. 24 Aug, 2021 1 commit
    • Icenowy Zheng's avatar
      refactor(plat/allwinner): allow new AA64nAA32 position · 080939f9
      Icenowy Zheng authored
      
      
      In newer Allwiner SoCs, the AA64nAA32 wires are mapped to a new register
      called "General Control Register0" in the manual rather than the
      "Cluster 0 Control Register0" in older SoCs.
      
      Now the position of AA64nAA32 (reg and bit offset) is defined in a few
      macros instead assumed to be at bit offset 24 of
      SUNXI_CPUCFG_CLS_CTRL_REG0.
      
      Change-Id: I933d00b9a914bf7103e3a9dadbc6d7be1a409668
      Signed-off-by: default avatarIcenowy Zheng <icenowy@sipeed.com>
      080939f9
  2. 08 Nov, 2018 1 commit
    • Antonio Nino Diaz's avatar
      Standardise header guards across codebase · c3cf06f1
      Antonio Nino Diaz authored
      
      
      All identifiers, regardless of use, that start with two underscores are
      reserved. This means they can't be used in header guards.
      
      The style that this project is now to use the full name of the file in
      capital letters followed by 'H'. For example, for a file called
      "uart_example.h", the header guard is UART_EXAMPLE_H.
      
      The exceptions are files that are imported from other projects:
      
      - CryptoCell driver
      - dt-bindings folders
      - zlib headers
      
      Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      c3cf06f1
  3. 15 Jun, 2018 1 commit
    • Samuel Holland's avatar
      allwinner: Add functions to control CPU power/reset · 333d66cf
      Samuel Holland authored
      
      
      sun50i_cpu_on will be used by the PSCI implementation to initialize
      secondary cores for SMP. Unfortunately, sun50i_cpu_off is not usable by
      PSCI directly, because it is not possible for a CPU to use this function
      to power itself down. Power cannot be shut off until the outputs are
      clamped, and MMIO does not work once the outputs are clamped.
      
      But at least CPU0 can shutdown the other cores early in the BL31 boot
      process and before shutting down the system.
      Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      333d66cf