Skip to content

Commit ee2482b

Browse files
bevanweissrobimarko
authored andcommitted
packages: add PSE (PoE) packages
There are a number of pse chips already present in upstream Linux. OpenWrt is starting to support a number of devices can contain various pse chips. But having all the pse chip combinations defined at the target level will result in bloat on images. Present the current upstream Linux pse drivers as packages so that they can be selectively included per board (rather than per target). Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com> [Make it depend on REGULATOR_SUPPORT] Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent d50a701 commit ee2482b

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
#
2+
# Copyright (C) 2006-2011 OpenWrt.org
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
#
7+
8+
PSE_MENU:=PSE-PD / PoE support
9+
10+
define KernelPackage/pse-pd
11+
SUBMENU:=$(PSE_MENU)
12+
TITLE:=PSE-PD Support
13+
DEPENDS:=@REGULATOR_SUPPORT
14+
KCONFIG:=CONFIG_PSE_CONTROLLER=y
15+
endef
16+
17+
define KernelPackage/pse-pd/description
18+
Kernel module for PSE-PD support.
19+
endef
20+
21+
$(eval $(call KernelPackage,pse-pd))
22+
23+
define AddDepends/pse-pd
24+
SUBMENU:=$(PSE_MENU)
25+
DEPENDS+=kmod-pse-pd $(1)
26+
endef
27+
28+
define KernelPackage/pse-regulator
29+
SUBMENU:=$(PSE_MENU)
30+
TITLE:=Regulator based PSE controller support
31+
KCONFIG:=CONFIG_PSE_REGULATOR
32+
FILES:=$(LINUX_DIR)/drivers/net/pse-pd/pse_regulator.ko
33+
AUTOLOAD:=$(call AutoProbe,pse_regulator)
34+
$(call AddDepends/pse-pd)
35+
endef
36+
37+
define KernelPackage/pse-regulator/description
38+
This module provides support for simple regulator based Ethernet Power \
39+
Sourcing Equipment without automatic classification support. For \
40+
example for basic implementation of PoDL (802.3bu) specification.
41+
endef
42+
43+
$(eval $(call KernelPackage,pse-regulator))
44+
45+
define KernelPackage/pse-pd692x0
46+
SUBMENU:=$(PSE_MENU)
47+
TITLE:=PD692X0 PSE controller support
48+
KCONFIG:=CONFIG_PSE_PD692X0
49+
DEPENDS:=+kmod-i2c-core
50+
FILES:=$(LINUX_DIR)/drivers/net/pse-pd/pd692x0.ko
51+
AUTOLOAD:=$(call AutoProbe,pd692x0)
52+
$(call AddDepends/pse-pd)
53+
endef
54+
55+
define KernelPackage/pse-pd692x0/description
56+
Kernel module for PD692X0 PSE controller chips
57+
endef
58+
59+
$(eval $(call KernelPackage,pse-pd692x0))
60+
61+
define KernelPackage/pse-si3474
62+
SUBMENU:=$(PSE_MENU)
63+
TITLE:=Si3474 PSE controller support
64+
KCONFIG:=CONFIG_PSE_SI3474
65+
DEPENDS:=+kmod-i2c-core
66+
FILES:=$(LINUX_DIR)/drivers/net/pse-pd/si3474.ko
67+
AUTOLOAD:=$(call AutoProbe,si3474)
68+
$(call AddDepends/pse-pd)
69+
endef
70+
71+
define KernelPackage/pse-si3474/description
72+
Kernel module for Si3474 PSE controller chips
73+
endef
74+
75+
$(eval $(call KernelPackage,pse-si3474))
76+
77+
define KernelPackage/pse-tps23881
78+
SUBMENU:=$(PSE_MENU)
79+
TITLE:=TPS23881 PSE controller support
80+
KCONFIG:=CONFIG_PSE_TPS23881
81+
DEPENDS:=+kmod-i2c-core
82+
FILES:=$(LINUX_DIR)/drivers/net/pse-pd/tps23881.ko
83+
AUTOLOAD:=$(call AutoProbe,tps23881)
84+
$(call AddDepends/pse-pd)
85+
endef
86+
87+
define KernelPackage/pse-tps23881/description
88+
Kernel module for TPS23881 PSE controller chips
89+
endef
90+
91+
$(eval $(call KernelPackage,pse-tps23881))

target/linux/generic/config-6.12

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,6 +2823,7 @@ CONFIG_INPUT_MISC=y
28232823
# CONFIG_INTEL_PMC_CORE is not set
28242824
# CONFIG_INTEL_PUNIT_IPC is not set
28252825
# CONFIG_INTEL_RST is not set
2826+
# CONFIG_INTEL_SKL_INT3472 is not set
28262827
# CONFIG_INTEL_SMARTCONNECT is not set
28272828
# CONFIG_INTEL_SOC_PMIC is not set
28282829
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not set
@@ -4911,6 +4912,10 @@ CONFIG_PROC_SYSCTL=y
49114912
# CONFIG_PSAMPLE is not set
49124913
# CONFIG_PSB6970_PHY is not set
49134914
# CONFIG_PSE_CONTROLLER is not set
4915+
# CONFIG_PSE_REGULATOR is not set
4916+
# CONFIG_PSE_PD692X0 is not set
4917+
# CONFIG_PSE_SI3474 is not set
4918+
# CONFIG_PSE_TPS23881 is not set
49144919
# CONFIG_PSI is not set
49154920
# CONFIG_PSI_DEFAULT_DISABLED is not set
49164921
# CONFIG_PSTORE is not set

0 commit comments

Comments
 (0)