diff options
-rw-r--r-- | arch/arm/configs/marzen_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen.c | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/configs/marzen_defconfig b/arch/arm/configs/marzen_defconfig index 864f9a5c39dd..f513acedc10a 100644 --- a/arch/arm/configs/marzen_defconfig +++ b/arch/arm/configs/marzen_defconfig | |||
@@ -68,6 +68,8 @@ CONFIG_SERIAL_SH_SCI_CONSOLE=y | |||
68 | # CONFIG_HW_RANDOM is not set | 68 | # CONFIG_HW_RANDOM is not set |
69 | CONFIG_GPIO_SYSFS=y | 69 | CONFIG_GPIO_SYSFS=y |
70 | # CONFIG_HWMON is not set | 70 | # CONFIG_HWMON is not set |
71 | CONFIG_THERMAL=y | ||
72 | CONFIG_RCAR_THERMAL=y | ||
71 | CONFIG_SSB=y | 73 | CONFIG_SSB=y |
72 | # CONFIG_HID_SUPPORT is not set | 74 | # CONFIG_HID_SUPPORT is not set |
73 | # CONFIG_USB_SUPPORT is not set | 75 | # CONFIG_USB_SUPPORT is not set |
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index cbf9f25ed972..2e884b66ec14 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c | |||
@@ -111,9 +111,25 @@ static struct platform_device sdhi0_device = { | |||
111 | } | 111 | } |
112 | }; | 112 | }; |
113 | 113 | ||
114 | /* Thermal */ | ||
115 | static struct resource thermal_resources[] = { | ||
116 | [0] = { | ||
117 | .start = 0xFFC48000, | ||
118 | .end = 0xFFC48038 - 1, | ||
119 | .flags = IORESOURCE_MEM, | ||
120 | }, | ||
121 | }; | ||
122 | |||
123 | static struct platform_device thermal_device = { | ||
124 | .name = "rcar_thermal", | ||
125 | .resource = thermal_resources, | ||
126 | .num_resources = ARRAY_SIZE(thermal_resources), | ||
127 | }; | ||
128 | |||
114 | static struct platform_device *marzen_devices[] __initdata = { | 129 | static struct platform_device *marzen_devices[] __initdata = { |
115 | ð_device, | 130 | ð_device, |
116 | &sdhi0_device, | 131 | &sdhi0_device, |
132 | &thermal_device, | ||
117 | }; | 133 | }; |
118 | 134 | ||
119 | static void __init marzen_init(void) | 135 | static void __init marzen_init(void) |