浏览代码

Dove: Thermal: Add DT node and enable in defconfig

Add a device tree node to instantiate the dove thermal driver.
Enable the driver and the thermal framework in dove_defconfig.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Andrew Lunn 12 年之前
父节点
当前提交
c3117edec5
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 5 0
      arch/arm/boot/dts/dove.dtsi
  2. 2 0
      arch/arm/configs/dove_defconfig

+ 5 - 0
arch/arm/boot/dts/dove.dtsi

@@ -50,6 +50,11 @@
 			#clock-cells = <1>;
 		};
 
+		thermal: thermal@d001c {
+			compatible = "marvell,dove-thermal";
+			reg = <0xd001c 0x0c>, <0xd005c 0x08>;
+		};
+
 		uart0: serial@12000 {
 			compatible = "ns16550a";
 			reg = <0x12000 0x100>;

+ 2 - 0
arch/arm/configs/dove_defconfig

@@ -75,6 +75,8 @@ CONFIG_I2C_MV64XXX=y
 CONFIG_SPI=y
 CONFIG_SPI_ORION=y
 # CONFIG_HWMON is not set
+CONFIG_THERMAL=y
+CONFIG_DOVE_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_ROOT_HUB_TT=y