summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/modules.mk
blob: 57025004f91c25cae7623c78c6fb364e9fd144dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

MFD_MENU:=MultiFunction Device (MFD) Support
WATCHDOG_MENU:=Watchdog Timer Support

define KernelPackage/hasivo-mcu-wdt
  SUBMENU:=$(WATCHDOG_MENU)
  TITLE:=Hasivo MCU watchdog driver
  KCONFIG:=CONFIG_HASIVO_MCU_WATCHDOG
  FILES:=$(LINUX_DIR)/drivers/watchdog/hasivo-mcu-wdt.ko
  DEPENDS:=@TARGET_realtek +kmod-mfd-hasivo-stc8
  AUTOLOAD:=$(call AutoLoad,20,hasivo-mcu-wdt,1)
endef

define KernelPackage/hasivo-mcu-wdt/description
 Hardware watchdog driver for the external management MCU found on
 Hasivo / Horaco network switches. Registers a Linux watchdog device;
 the kernel watchdog core feeds it automatically via its own timer.
endef

$(eval $(call KernelPackage,hasivo-mcu-wdt))

define KernelPackage/mfd-hasivo-stc8
  SUBMENU:=$(MFD_MENU)
  TITLE:=Hasivo STC8 microcontroller support
  KCONFIG:=CONFIG_MFD_HASIVO_STC8
  FILES:=$(LINUX_DIR)/drivers/mfd/hasivo-stc8-mfd.ko
  DEPENDS:=@TARGET_realtek +kmod-mfd +kmod-regmap-i2c
  AUTOLOAD:=$(call AutoLoad,19,hasivo-stc8-mfd,1)
endef

define KernelPackage/mfd-hasivo-stc8/description
 Kernel module for Hasivo STC8 microcontroller support
endef

$(eval $(call KernelPackage,mfd-hasivo-stc8))

define KernelPackage/hasivo-mcu-sensor
  SUBMENU:=$(HWMON_MENU)
  TITLE:=Hasivo management MCU sensor driver
  KCONFIG:=CONFIG_SENSORS_HASIVO_MCU
  FILES:=$(LINUX_DIR)/drivers/hwmon/hasivo-mcu-sensor.ko
  DEPENDS:=@TARGET_realtek +kmod-mfd-hasivo-stc8
  AUTOLOAD:=$(call AutoProbe,hasivo-mcu-sensor,1)
endef

define KernelPackage/hasivo-mcu-sensor/description
 sensor driver for the Hasivo management MCU (CPU/system
 temperatures and fan control) on Hasivo / Horaco network switches.
 A child of the hasivo MCU MFD.
endef

$(eval $(call KernelPackage,hasivo-mcu-sensor))