Kconfig.projbuild 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. menu "Example Connection Configuration"
  2. choice EXAMPLE_CONNECT_INTERFACE
  3. prompt "Connect using"
  4. default EXAMPLE_CONNECT_WIFI
  5. help
  6. Protocol examples can use Wi-Fi or Ethernet to connect to the network.
  7. Choose which interface to use.
  8. config EXAMPLE_CONNECT_WIFI
  9. bool "Wi-Fi"
  10. config EXAMPLE_CONNECT_ETHERNET
  11. bool "Ethernet"
  12. endchoice
  13. config EXAMPLE_WIFI_SSID
  14. depends on EXAMPLE_CONNECT_WIFI
  15. string "WiFi SSID"
  16. default "myssid"
  17. help
  18. SSID (network name) for the example to connect to.
  19. config EXAMPLE_WIFI_PASSWORD
  20. depends on EXAMPLE_CONNECT_WIFI
  21. string "WiFi Password"
  22. default "mypassword"
  23. help
  24. WiFi password (WPA or WPA2) for the example to use.
  25. Can be left blank if the network has no security set.
  26. choice EXAMPLE_PHY_MODEL
  27. prompt "Ethernet PHY"
  28. depends on EXAMPLE_CONNECT_ETHERNET
  29. default EXAMPLE_PHY_TLK110
  30. help
  31. Select the PHY driver to use for the example.
  32. config EXAMPLE_PHY_IP101
  33. bool "IP101"
  34. help
  35. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  36. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  37. config EXAMPLE_PHY_TLK110
  38. bool "TI TLK110 PHY"
  39. help
  40. Select this to use the TI TLK110 PHY
  41. config EXAMPLE_PHY_LAN8720
  42. bool "Microchip LAN8720 PHY"
  43. help
  44. Select this to use the Microchip LAN8720 PHY
  45. endchoice
  46. config EXAMPLE_PHY_ADDRESS
  47. int "PHY Address (0-31)"
  48. depends on EXAMPLE_CONNECT_ETHERNET
  49. default 31
  50. range 0 31
  51. help
  52. Select the PHY Address (0-31) for the hardware configuration and PHY model.
  53. TLK110 default 31
  54. LAN8720 default 1 or 0
  55. choice EXAMPLE_PHY_CLOCK_MODE
  56. prompt "EMAC clock mode"
  57. depends on EXAMPLE_CONNECT_ETHERNET
  58. default EXAMPLE_PHY_CLOCK_GPIO0_IN
  59. help
  60. Select external (input on GPIO0) or internal (output on GPIO16 or GPIO17) clock
  61. config EXAMPLE_PHY_CLOCK_GPIO0_IN
  62. bool "GPIO0 input"
  63. depends on EXAMPLE_CONNECT_ETHERNET
  64. help
  65. Input of 50MHz PHY clock on GPIO0.
  66. config EXAMPLE_PHY_CLOCK_GPIO0_OUT
  67. bool "GPIO0 Output"
  68. help
  69. Output the internal 50MHz RMII clock on GPIO0.
  70. config EXAMPLE_PHY_CLOCK_GPIO16_OUT
  71. bool "GPIO16 output"
  72. depends on EXAMPLE_CONNECT_ETHERNET
  73. help
  74. Output the internal 50MHz APLL clock on GPIO16.
  75. config EXAMPLE_PHY_CLOCK_GPIO17_OUT
  76. bool "GPIO17 output (inverted)"
  77. depends on EXAMPLE_CONNECT_ETHERNET
  78. help
  79. Output the internal 50MHz APLL clock on GPIO17 (inverted signal).
  80. endchoice
  81. config EXAMPLE_PHY_CLOCK_MODE
  82. int
  83. depends on EXAMPLE_CONNECT_ETHERNET
  84. default 0 if EXAMPLE_PHY_CLOCK_GPIO0_IN
  85. default 1 if EXAMPLE_PHY_CLOCK_GPIO0_OUT
  86. default 2 if EXAMPLE_PHY_CLOCK_GPIO16_OUT
  87. default 3 if EXAMPLE_PHY_CLOCK_GPIO17_OUT
  88. config EXAMPLE_PHY_USE_POWER_PIN
  89. bool "Use PHY Power (enable/disable) pin"
  90. depends on EXAMPLE_CONNECT_ETHERNET
  91. default y
  92. help
  93. Use a GPIO "power pin" to power the PHY on/off during operation.
  94. Consult the example README for more details
  95. config EXAMPLE_PHY_POWER_PIN
  96. int "PHY Power GPIO"
  97. depends on EXAMPLE_CONNECT_ETHERNET
  98. default 17
  99. range 0 33
  100. depends on EXAMPLE_PHY_USE_POWER_PIN
  101. help
  102. GPIO number to use for powering on/off the PHY.
  103. config EXAMPLE_PHY_SMI_MDC_PIN
  104. int "SMI MDC Pin"
  105. depends on EXAMPLE_CONNECT_ETHERNET
  106. default 23
  107. range 0 33
  108. help
  109. GPIO number to use for SMI clock output MDC to PHY.
  110. config EXAMPLE_PHY_SMI_MDIO_PIN
  111. int "SMI MDIO Pin"
  112. depends on EXAMPLE_CONNECT_ETHERNET
  113. default 18
  114. range 0 33
  115. help
  116. GPIO number to use for SMI data pin MDIO to/from PHY.
  117. config EXAMPLE_CONNECT_IPV6
  118. bool "Obtain IPv6 link-local address"
  119. default y
  120. help
  121. By default, examples will wait until IPv4 and IPv6 addresses are obtained.
  122. Disable this option if the network does not support IPv6.
  123. endmenu