summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos/mach-origen.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-09-13 06:52:08 (GMT)
committerKukjin Kim <kgene.kim@samsung.com>2012-09-13 06:52:08 (GMT)
commit4d8cc596dd9f8dcc909ad405742099239aaa48c0 (patch)
tree85fd9fe4eb358b084c3873ab6ece67fe4f23254a /arch/arm/mach-exynos/mach-origen.c
parent162b172ddd7aacc754253f97b1b1ee75344bc22c (diff)
downloadlinux-fsl-qoriq-4d8cc596dd9f8dcc909ad405742099239aaa48c0.tar.xz
ARM: EXYNOS: Use generic pwm driver in Origen board
Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: <thierry.reding@avionic-design.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/mach-origen.c')
-rw-r--r--arch/arm/mach-exynos/mach-origen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index 5ca8030..2203664 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -15,6 +15,7 @@
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/input.h>
+#include <linux/pwm.h>
#include <linux/pwm_backlight.h>
#include <linux/gpio_keys.h>
#include <linux/i2c.h>
@@ -613,6 +614,10 @@ static struct platform_device origen_lcd_hv070wsa = {
.dev.platform_data = &origen_lcd_hv070wsa_data,
};
+static struct pwm_lookup origen_pwm_lookup[] = {
+ PWM_LOOKUP("s3c24xx-pwm.0", 0, "pwm-backlight.0", NULL),
+};
+
#ifdef CONFIG_DRM_EXYNOS
static struct exynos_drm_fimd_pdata drm_fimd_pdata = {
.panel = {
@@ -791,6 +796,7 @@ static void __init origen_machine_init(void)
platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices));
+ pwm_add_table(origen_pwm_lookup, ARRAY_SIZE(origen_pwm_lookup));
samsung_bl_set(&origen_bl_gpio_info, &origen_bl_data);
origen_bt_setup();