diff options
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 701667acfd89..a2c06220bbab 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -261,6 +261,18 @@ const static struct fb_videomode ecovec_dvi_modes[] = { | |||
261 | }, | 261 | }, |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static int ecovec24_set_brightness(void *board_data, int brightness) | ||
265 | { | ||
266 | gpio_set_value(GPIO_PTR1, brightness); | ||
267 | |||
268 | return 0; | ||
269 | } | ||
270 | |||
271 | static int ecovec24_get_brightness(void *board_data) | ||
272 | { | ||
273 | return gpio_get_value(GPIO_PTR1); | ||
274 | } | ||
275 | |||
264 | static struct sh_mobile_lcdc_info lcdc_info = { | 276 | static struct sh_mobile_lcdc_info lcdc_info = { |
265 | .ch[0] = { | 277 | .ch[0] = { |
266 | .interface_type = RGB18, | 278 | .interface_type = RGB18, |
@@ -271,6 +283,12 @@ static struct sh_mobile_lcdc_info lcdc_info = { | |||
271 | .height = 91, | 283 | .height = 91, |
272 | }, | 284 | }, |
273 | .board_cfg = { | 285 | .board_cfg = { |
286 | .set_brightness = ecovec24_set_brightness, | ||
287 | .get_brightness = ecovec24_get_brightness, | ||
288 | }, | ||
289 | .bl_info = { | ||
290 | .name = "sh_mobile_lcdc_bl", | ||
291 | .max_brightness = 1, | ||
274 | }, | 292 | }, |
275 | } | 293 | } |
276 | }; | 294 | }; |