0014-riscv-ax25-Add-platform-specific-Kconfig-options.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 8848474c5e9093ac27f6b7cc8be156629c7d0bad Mon Sep 17 00:00:00 2001
  2. From: Rick Chen <rick@andestech.com>
  3. Date: Tue, 2 Apr 2019 15:56:41 +0800
  4. Subject: [PATCH 14/18] riscv: ax25: Add platform-specific Kconfig options
  5. Add ax25 RISC-V platform-specific Kconfig options,
  6. to include CPU and timer drivers. Also disable
  7. ATCPIT100 SoC timer and replace by PLMT.
  8. Signed-off-by: Rick Chen <rick@andestech.com>
  9. Cc: Greentime Hu <greentime@andestech.com>
  10. Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
  11. Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
  12. ---
  13. arch/riscv/cpu/ax25/Kconfig | 6 ++++++
  14. configs/ae350_rv32_defconfig | 1 -
  15. configs/ae350_rv64_defconfig | 1 -
  16. 3 files changed, 6 insertions(+), 2 deletions(-)
  17. diff --git a/arch/riscv/cpu/ax25/Kconfig b/arch/riscv/cpu/ax25/Kconfig
  18. index e9dbca2fae..68bd4e9419 100644
  19. --- a/arch/riscv/cpu/ax25/Kconfig
  20. +++ b/arch/riscv/cpu/ax25/Kconfig
  21. @@ -1,5 +1,11 @@
  22. config RISCV_NDS
  23. bool
  24. + select ARCH_EARLY_INIT_R
  25. + imply CPU
  26. + imply CPU_RISCV
  27. + imply RISCV_TIMER
  28. + imply ANDES_PLIC if RISCV_MMODE
  29. + imply ANDES_PLMT if RISCV_MMODE
  30. help
  31. Run U-Boot on AndeStar V5 platforms and use some specific features
  32. which are provided by Andes Technology AndeStar V5 families.
  33. diff --git a/configs/ae350_rv32_defconfig b/configs/ae350_rv32_defconfig
  34. index 6e0be88d7c..f02945599f 100644
  35. --- a/configs/ae350_rv32_defconfig
  36. +++ b/configs/ae350_rv32_defconfig
  37. @@ -34,4 +34,3 @@ CONFIG_BAUDRATE=38400
  38. CONFIG_SYS_NS16550=y
  39. CONFIG_SPI=y
  40. CONFIG_ATCSPI200_SPI=y
  41. -CONFIG_ATCPIT100_TIMER=y
  42. diff --git a/configs/ae350_rv64_defconfig b/configs/ae350_rv64_defconfig
  43. index b472a76d17..98635a2ff9 100644
  44. --- a/configs/ae350_rv64_defconfig
  45. +++ b/configs/ae350_rv64_defconfig
  46. @@ -35,4 +35,3 @@ CONFIG_BAUDRATE=38400
  47. CONFIG_SYS_NS16550=y
  48. CONFIG_SPI=y
  49. CONFIG_ATCSPI200_SPI=y
  50. -CONFIG_ATCPIT100_TIMER=y
  51. --
  52. 2.21.0