[OpenWrt-Devel] [PATCH] brcm2708: add kmod-hwmon-bcm2835 support and more missing symbols

Álvaro Fernández Rojas noltari at gmail.com
Fri Feb 13 17:12:59 EST 2015


Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 target/linux/brcm2708/config-3.18 |  2 ++
 target/linux/brcm2708/modules.mk  | 16 ++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/target/linux/brcm2708/config-3.18 b/target/linux/brcm2708/config-3.18
index e75fb22..5820e95 100644
--- a/target/linux/brcm2708/config-3.18
+++ b/target/linux/brcm2708/config-3.18
@@ -225,6 +225,7 @@ CONFIG_RAW_DRIVER=y
 CONFIG_SCSI=y
 # CONFIG_SCSI_LOWLEVEL is not set
 # CONFIG_SCSI_PROC_FS is not set
+# CONFIG_SENSORS_BCM2835 is not set
 # CONFIG_SERIAL_8250 is not set
 # CONFIG_SERIAL_AMBA_PL010 is not set
 CONFIG_SERIAL_AMBA_PL011=y
@@ -237,6 +238,7 @@ CONFIG_SUSPEND=y
 CONFIG_SUSPEND_FREEZER=y
 CONFIG_SYS_SUPPORTS_APM_EMULATION=y
 # CONFIG_TEXTSEARCH is not set
+# CONFIG_THERMAL_BCM2835 is not set
 CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_UEVENT_HELPER_PATH=""
 # CONFIG_UID16 is not set
diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk
index 8f00990..408382d 100644
--- a/target/linux/brcm2708/modules.mk
+++ b/target/linux/brcm2708/modules.mk
@@ -59,6 +59,22 @@ endef
 $(eval $(call KernelPackage,spi-bcm2708))
 
 
+define KernelPackage/hwmon-bcm2835
+  TITLE:=BCM2835 HWMON driver
+  KCONFIG:=CONFIG_SENSORS_BCM2835
+  FILES:=$(LINUX_DIR)/drivers/hwmon/bcm2835-hwmon.ko
+  AUTOLOAD:=$(call AutoLoad,60,bcm2835-hwmon)
+  DEPENDS:=@TARGET_brcm2708
+  $(call AddDepends/hwmon, at TARGET_brcm2708)
+endef
+
+define KernelPackage/hwmon-bcm2835/description
+  Kernel module for BCM2835 thermal monitor chip
+endef
+
+$(eval $(call KernelPackage,hwmon-bcm2835))
+
+
 I2C_BCM2708_MODULES:=\
   CONFIG_I2C_BCM2708:drivers/i2c/busses/i2c-bcm2708
 
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list