kernel.config 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # Orange Pi Zero (H2+), the radio. Merged after files/kernel-common.config
  2. # (sunxi_defconfig + common + this). build-kernel.sh checks that every option
  3. # here ended up in the final .config with the requested value.
  4. CONFIG_LOCALVERSION="-opi0"
  5. # H2+ = H3 pin controllers and clocks; the R40 ones (also A10/A20 pinctrl)
  6. # and the display engine clocks are not needed
  7. CONFIG_PINCTRL_SUN8I_H3=y
  8. CONFIG_PINCTRL_SUN8I_H3_R=y
  9. CONFIG_SUN8I_H3_CCU=y
  10. CONFIG_SUN8I_R_CCU=y
  11. # CONFIG_PINCTRL_SUN4I_A10 is not set
  12. # CONFIG_SUN8I_R40_CCU is not set
  13. # CONFIG_SUN8I_DE2_CCU is not set
  14. # CPU supply: GPIO regulator on PL6 (reg_vdd_cpux in the mainline board file);
  15. # without it cpufreq-dt cannot scale the voltage
  16. CONFIG_REGULATOR_GPIO=y
  17. # SPI NOR flash on spi0 (sun6i driver serves the H3)
  18. CONFIG_SPI_SUN6I=y
  19. # ---- no PMIC: the board runs from fixed and GPIO regulators ----
  20. # CONFIG_MFD_AXP20X_I2C is not set
  21. # CONFIG_MFD_AXP20X_RSB is not set
  22. # CONFIG_REGULATOR_AXP20X is not set
  23. # CONFIG_AXP20X_POWER is not set
  24. # CONFIG_CHARGER_AXP20X is not set
  25. # CONFIG_BATTERY_AXP20X is not set
  26. # CONFIG_AXP20X_ADC is not set
  27. # CONFIG_INPUT_AXP20X_PEK is not set
  28. # ---- storage ----
  29. # no SATA on the H2+
  30. # CONFIG_ATA is not set
  31. # Module, not built in: armbian-zram-config loads it with module parameters
  32. # (number of devices for swap and armbian-ramlog), which a built-in driver
  33. # would not get.
  34. CONFIG_ZRAM=m
  35. # armbian-zram-config sets the algorithm from SWAP_ALGORITHM in
  36. # /etc/default/armbian-zram-config (lzo, lzo-rle, lz4 or zstd depending on
  37. # the Armbian version); writing one the kernel lacks fails. Cover all four.
  38. CONFIG_ZRAM_BACKEND_LZ4=y
  39. CONFIG_ZRAM_BACKEND_ZSTD=y
  40. CONFIG_ZRAM_BACKEND_LZO=y
  41. CONFIG_CRYPTO_LZ4=y
  42. CONFIG_CRYPTO_ZSTD=y
  43. # ---- networking ----
  44. # Module, not built in: built in, it creates dummy0 at boot (numdummies=1),
  45. # an interface nobody configured.
  46. CONFIG_DUMMY=m
  47. CONFIG_USB_NET_DRIVERS=y
  48. CONFIG_USB_USBNET=y
  49. CONFIG_USB_NET_CDCETHER=y
  50. CONFIG_USB_RTL8152=y
  51. # ---- Wi-Fi: XR819 (the out-of-tree xradio module needs these) ----
  52. # Built in; xradio itself is always a module (out of tree, firmware from the
  53. # rootfs). Built-in cfg80211 can't read regulatory.db before the rootfs is
  54. # mounted and logs that once; it loads the file when a country is set.
  55. CONFIG_WIRELESS=y
  56. CONFIG_WLAN=y
  57. CONFIG_CFG80211=y
  58. CONFIG_CFG80211_WEXT=y
  59. CONFIG_MAC80211=y
  60. CONFIG_MAC80211_LEDS=y
  61. CONFIG_RFKILL=y
  62. CONFIG_CRYPTO_CCM=y
  63. CONFIG_CRYPTO_GCM=y
  64. CONFIG_CRYPTO_CMAC=y
  65. CONFIG_CRYPTO_AES=y
  66. CONFIG_CRYPTO_AES_ARM_BS=y
  67. CONFIG_PWRSEQ_SIMPLE=y
  68. # ---- audio (H3 analog codec on the 13-pin header) ----
  69. CONFIG_SND_SUN4I_CODEC=y
  70. CONFIG_SND_SUN8I_CODEC_ANALOG=y
  71. CONFIG_SND_SUN4I_I2S=y
  72. CONFIG_SND_SIMPLE_CARD=y
  73. CONFIG_SND_USB_AUDIO=y
  74. # Module, not built in: built in, the loopback card would always exist and
  75. # take a card index from the real ones.
  76. CONFIG_SND_ALOOP=m
  77. # A33 digital codec, S/PDIF: not on the H2+ board
  78. # CONFIG_SND_SUN8I_CODEC is not set
  79. # CONFIG_SND_SUN4I_SPDIF is not set
  80. # ---- USB OTG port: host and gadget ----
  81. CONFIG_USB_MUSB_HDRC=y
  82. CONFIG_USB_MUSB_SUNXI=y
  83. CONFIG_USB_GADGET=y
  84. CONFIG_USB_CONFIGFS=y
  85. CONFIG_USB_CONFIGFS_SERIAL=y
  86. CONFIG_USB_CONFIGFS_ACM=y
  87. CONFIG_USB_CONFIGFS_ECM=y
  88. CONFIG_USB_CONFIGFS_RNDIS=y
  89. # Modules, not built in: a built-in legacy gadget binds the only UDC at boot,
  90. # so only one could be built in and configfs gadgets could no longer be used.
  91. CONFIG_USB_G_SERIAL=m
  92. CONFIG_USB_ETH=m
  93. # ---- radio front panel ($PANEL_DIR, see boards/opi0.sh) ----
  94. # i2c-tiny-usb bridge used on the test rig
  95. CONFIG_I2C_TINY_USB=y
  96. # U2 key expander: TCA9539 via gpio-pca953x (INT on PA6), keys via gpio-keys;
  97. # built in, like the panel driver, so the keys need no module loading
  98. CONFIG_GPIO_PCA953X=y
  99. CONFIG_GPIO_PCA953X_IRQ=y
  100. CONFIG_GPIO_CDEV=y
  101. CONFIG_KEYBOARD_GPIO=y
  102. CONFIG_KEYBOARD_GPIO_POLLED=y
  103. CONFIG_INPUT_UINPUT=y
  104. # s1d13700-tca DRM driver, put into drivers/gpu/drm/tiny/ by build-kernel.sh
  105. # from $PANEL_DIR/driver and built in, so the panel exists before the root
  106. # filesystem is mounted and fbcon shows the boot log on it.
  107. CONFIG_DRM=y
  108. CONFIG_DRM_KMS_HELPER=y
  109. CONFIG_DRM_S1D13700_TCA=y
  110. CONFIG_DRM_FBDEV_EMULATION=y
  111. CONFIG_BACKLIGHT_CLASS_DEVICE=y
  112. CONFIG_FB=y
  113. CONFIG_FRAMEBUFFER_CONSOLE=y
  114. # CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
  115. # 240x160 panel: 6x8 font gives 40x20 characters (fbcon=font:6x8)
  116. CONFIG_FONTS=y
  117. CONFIG_FONT_8x8=y
  118. CONFIG_FONT_8x16=y
  119. CONFIG_FONT_6x8=y
  120. # ---- no display output on this board: drop HDMI/display engine ----
  121. # CONFIG_DRM_SUN4I is not set
  122. # CONFIG_FB_SIMPLE is not set
  123. # CONFIG_BACKLIGHT_PWM is not set