0034-riscv-Add-the-Allwinner-SoC-family-Kconfig-option.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From f648ec2a040efde432876ee04240cb71e4c24d6e Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 16 May 2021 14:17:45 -0500
  4. Subject: [PATCH 034/117] riscv: Add the Allwinner SoC family Kconfig option
  5. Allwinner manufactures the sunxi family of application processors. This
  6. includes the "sun8i" series of ARMv7 SoCs, the "sun50i" series of ARMv8
  7. SoCs, and now the "sun20i" series of 64-bit RISC-V SoCs.
  8. The first SoC in the sun20i series is D1, containing a single T-HEAD
  9. C906 core. D1s is a low-pin-count variant of D1 with co-packaged DRAM.
  10. Most peripherals are shared across the entire chip family. In fact, the
  11. ARMv7 T113 SoC is pin-compatible and almost entirely register-compatible
  12. with the D1s.
  13. This means many existing device drivers can be reused. To facilitate
  14. this reuse, name the symbol ARCH_SUNXI, since that is what the existing
  15. drivers have as their dependency.
  16. Reviewed-by: Heiko Stuebner <[email protected]>
  17. Tested-by: Heiko Stuebner <[email protected]>
  18. Signed-off-by: Samuel Holland <[email protected]>
  19. ---
  20. arch/riscv/Kconfig.socs | 9 +++++++++
  21. 1 file changed, 9 insertions(+)
  22. --- a/arch/riscv/Kconfig.socs
  23. +++ b/arch/riscv/Kconfig.socs
  24. @@ -1,5 +1,14 @@
  25. menu "SoC selection"
  26. +config ARCH_SUNXI
  27. + bool "Allwinner sun20i SoCs"
  28. + select ERRATA_THEAD if MMU && !XIP_KERNEL
  29. + select SIFIVE_PLIC
  30. + select SUN4I_TIMER
  31. + help
  32. + This enables support for Allwinner sun20i platform hardware,
  33. + including boards based on the D1 and D1s SoCs.
  34. +
  35. config SOC_MICROCHIP_POLARFIRE
  36. bool "Microchip PolarFire SoCs"
  37. select MCHP_CLK_MPFS