@@ -16,14 +16,10 @@ AIC8800_TYPE="usb"
1616# Enable Photonicat2 power management and USB watchdog driver (requires SERIAL_DEV_BUS)
1717function custom_kernel_config__photonicat2_pm() {
1818 kernel_config_modifying_hashes+=(
19- " CONFIG_SERIAL_DEV_BUS=y"
20- " CONFIG_SERIAL_DEV_CTRL_TTYPORT=y"
2119 " CONFIG_PHOTONICAT_PM=y"
2220 " CONFIG_PHOTONICAT_USB_WDT=m"
2321 )
2422 if [[ -f .config ]]; then
25- kernel_config_set_y SERIAL_DEV_BUS
26- kernel_config_set_y SERIAL_DEV_CTRL_TTYPORT
2723 kernel_config_set_y PHOTONICAT_PM
2824 kernel_config_set_m PHOTONICAT_USB_WDT
2925 fi
@@ -32,48 +28,10 @@ function custom_kernel_config__photonicat2_pm() {
3228# Enable PWM subsystem for backlight, beeper, voltage regulation, LEDs
3329function custom_kernel_config__photonicat2_pwm() {
3430 kernel_config_modifying_hashes+=(
35- " CONFIG_PWM=y"
36- " CONFIG_ROCKCHIP_MFPWM=y"
3731 " CONFIG_PWM_ROCKCHIP_V4=y"
38- " CONFIG_ROCKCHIP_PWM_CAPTURE=y"
39- " CONFIG_INPUT_PWM_BEEPER=y"
40- " CONFIG_REGULATOR_PWM=y"
41- " CONFIG_LEDS_PWM=y"
4232 )
4333 if [[ -f .config ]]; then
44- kernel_config_set_y PWM
45- kernel_config_set_y ROCKCHIP_MFPWM
4634 kernel_config_set_y PWM_ROCKCHIP_V4
47- kernel_config_set_y ROCKCHIP_PWM_CAPTURE
48- kernel_config_set_y INPUT_PWM_BEEPER
49- kernel_config_set_y REGULATOR_PWM
50- kernel_config_set_y LEDS_PWM
51- fi
52- }
53-
54- # Enable LCD backlight control (depends on PWM subsystem)
55- function custom_kernel_config__photonicat2_backlight() {
56- kernel_config_modifying_hashes+=(
57- " CONFIG_BACKLIGHT_CLASS_DEVICE=y"
58- " CONFIG_BACKLIGHT_PWM=y"
59- " CONFIG_BACKLIGHT_GPIO=y"
60- )
61- if [[ -f .config ]]; then
62- kernel_config_set_y BACKLIGHT_CLASS_DEVICE
63- kernel_config_set_y BACKLIGHT_PWM
64- kernel_config_set_y BACKLIGHT_GPIO
65- fi
66- }
67-
68- # Enable STMMAC ethernet drivers for the 2x RJ45 Gigabit Ethernet ports
69- function custom_kernel_config__photonicat2_ethernet() {
70- kernel_config_modifying_hashes+=(
71- " CONFIG_STMMAC_ETH=y"
72- " CONFIG_STMMAC_PLATFORM=y"
73- )
74- if [[ -f .config ]]; then
75- kernel_config_set_y STMMAC_ETH
76- kernel_config_set_y STMMAC_PLATFORM
7735 fi
7836}
7937
@@ -86,54 +44,3 @@ function post_family_config__photonicat2_modem_packages() {
8644 add_packages_to_image " usb-modeswitch"
8745 add_packages_to_image " libxml2-utils"
8846}
89-
90- # Enable WWAN subsystem and USB modem drivers for M.2 B-Key cellular modules over USB
91- # Supports 4G/5G modems (e.g., Quectel RM520N-GL) via QMI, MBIM, NCM
92- function custom_kernel_config__photonicat2_usb_modem() {
93- kernel_config_modifying_hashes+=(
94- " CONFIG_USB_WDM=m"
95- " CONFIG_USB_NET_QMI_WWAN=m"
96- " CONFIG_USB_NET_CDC_MBIM=m"
97- " CONFIG_USB_NET_CDC_NCM=m"
98- " CONFIG_USB_SERIAL=m"
99- " CONFIG_USB_SERIAL_OPTION=m"
100- " CONFIG_USB_SERIAL_WWAN=m"
101- " CONFIG_USB_SERIAL_QUALCOMM=m"
102- " CONFIG_QCOM_QMI_HELPERS=m"
103- )
104- if [[ -f .config ]]; then
105- kernel_config_set_m USB_WDM
106- kernel_config_set_m USB_NET_QMI_WWAN
107- kernel_config_set_m USB_NET_CDC_MBIM
108- kernel_config_set_m USB_NET_CDC_NCM
109- kernel_config_set_m USB_SERIAL
110- kernel_config_set_m USB_SERIAL_OPTION
111- kernel_config_set_m USB_SERIAL_WWAN
112- kernel_config_set_m USB_SERIAL_QUALCOMM
113- kernel_config_set_m QCOM_QMI_HELPERS
114- fi
115- }
116-
117- # Enable PCIe WiFi support (Qualcomm ath11k for QCNFA765/wcn6855)
118- # MHI_BUS and QRTR must be built-in to avoid race condition with ath11k probe
119- function custom_kernel_config__photonicat2_pcie_wifi() {
120- kernel_config_modifying_hashes+=(
121- " CONFIG_ATH11K=m"
122- " CONFIG_ATH11K_PCI=m"
123- " CONFIG_MHI_BUS=y"
124- " CONFIG_MHI_BUS_PCI_GENERIC=m"
125- " CONFIG_QRTR=y"
126- " CONFIG_QRTR_MHI=y"
127- " CONFIG_QRTR_TUN=m"
128- )
129- if [[ -f .config ]]; then
130- kernel_config_set_m ATH11K
131- kernel_config_set_m ATH11K_PCI
132- kernel_config_set_y MHI_BUS
133- kernel_config_set_m MHI_BUS_PCI_GENERIC
134- kernel_config_set_y QRTR
135- kernel_config_set_y QRTR_MHI
136- kernel_config_set_m QRTR_TUN
137- fi
138- }
139-
0 commit comments