summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2013-03-26 19:24:24 +0000
committerpopcornmix <popcornmix@gmail.com>2015-05-18 14:10:32 +0100
commitbc0639ef79636e12ede0da9be5725072e2745830 (patch)
treedb49d7fa753b3a0b18bfa58e76f137eecc856425 /arch
parent0ab0bffea9f10d7ed1c5e886452f14a7daa0a423 (diff)
downloadlinux-bc0639ef79636e12ede0da9be5725072e2745830.tar.gz
Added hwmon/thermal driver for reporting core temperature. Thanks Dorian
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-bcm2708/bcm2708.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
index f54e3e9b8a33..bae8ba5b704f 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -499,6 +499,14 @@ static struct platform_device bcm2708_alsa_devices[] = {
},
};
+static struct platform_device bcm2835_hwmon_device = {
+ .name = "bcm2835_hwmon",
+};
+
+static struct platform_device bcm2835_thermal_device = {
+ .name = "bcm2835_thermal",
+};
+
int __init bcm_register_device(struct platform_device *pdev)
{
int ret;
@@ -611,6 +619,9 @@ void __init bcm2708_init(void)
for (i = 0; i < ARRAY_SIZE(bcm2708_alsa_devices); i++)
bcm_register_device(&bcm2708_alsa_devices[i]);
+ bcm_register_device(&bcm2835_hwmon_device);
+ bcm_register_device(&bcm2835_thermal_device);
+
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
amba_device_register(d, &iomem_resource);