Kconfig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. if ARCH_MISOC
  6. choice
  7. prompt "Misoc Chip Selection"
  8. default ARCH_CHIP_LM32
  9. config ARCH_CHIP_LM32
  10. bool "LM32"
  11. select MISOC_HAVE_UART1
  12. ---help---
  13. LM32 Chip Selected
  14. config ARCH_CHIP_MOR1K
  15. bool "MOR1K"
  16. ---help---
  17. MOR1K Chip Selected
  18. endchoice # Misoc Chip Selection
  19. config ARCH_CHIP
  20. string
  21. default "lm32" if ARCH_CHIP_LM32
  22. default "mor1k" if ARCH_CHIP_MOR1K
  23. menu "MISOC Peripheral Support"
  24. # These "hidden" settings determine is a peripheral option is available for the
  25. # selection MCU
  26. config MISOC_HAVE_UART1
  27. bool
  28. default n
  29. select UART1_SERIALDRIVER
  30. config MISOC_UART1
  31. bool "UART1"
  32. default n
  33. select ARCH_HAVE_UART1
  34. select MISOC_UART
  35. config MISOC_ETHERNET
  36. bool "Ethernet"
  37. default n
  38. select NETDEVICES
  39. select ARCH_HAVE_PHY
  40. select ARCH_HAVE_NETDEV_STATISTICS
  41. endmenu # MISOC Peripheral Support
  42. config MISOC_UART
  43. bool
  44. config MISOC_UART_RX_BUF_SIZE
  45. int "UART RX Bufer size"
  46. default 64
  47. depends on MISOC_UART
  48. ---help---
  49. Size of RX buffers for MISOC UARTs
  50. config MISOC_UART_TX_BUF_SIZE
  51. int "UART TX Bufer size"
  52. default 64
  53. depends on MISOC_UART
  54. ---help---
  55. Size of TX buffers for MISOC UARTs
  56. if ARCH_CHIP_LM32
  57. source arch/misoc/src/lm32/Kconfig
  58. endif
  59. if ARCH_CHIP_MOR1K
  60. #source arch/misoc/src/mor1k/Kconfig
  61. endif
  62. endif # ARCH_MISOC