am200epd.c (854feaede51c155897335f1f0ca7acda96b04a64) am200epd.c (3332b0c17969d91d8868d2d003e685c420d84262)
1/*
2 * am200epd.c -- Platform device for AM200 EPD kit
3 *
4 * Copyright (C) 2008, Jaya Kumar
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive for
8 * more details.

--- 16 unchanged lines hidden (view full) ---

25#include <linux/delay.h>
26#include <linux/interrupt.h>
27#include <linux/fb.h>
28#include <linux/init.h>
29#include <linux/platform_device.h>
30#include <linux/irq.h>
31#include <linux/gpio.h>
32
1/*
2 * am200epd.c -- Platform device for AM200 EPD kit
3 *
4 * Copyright (C) 2008, Jaya Kumar
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive for
8 * more details.

--- 16 unchanged lines hidden (view full) ---

25#include <linux/delay.h>
26#include <linux/interrupt.h>
27#include <linux/fb.h>
28#include <linux/init.h>
29#include <linux/platform_device.h>
30#include <linux/irq.h>
31#include <linux/gpio.h>
32
33#include <mach/gumstix.h>
34#include <mach/mfp-pxa25x.h>
35#include <mach/pxafb.h>
36
33#include <mach/pxafb.h>
34
37#include "generic.h"
38
39#include <video/metronomefb.h>
40
41static unsigned int panel_type = 6;
42static struct platform_device *am200_device;
43static struct metronome_board am200_board;
44
45static struct pxafb_mode_info am200_fb_mode_9inch7 = {
46 .pixclock = 40000,

--- 283 unchanged lines hidden (view full) ---

330 .set_rst = am200_set_rst,
331 .set_stdby = am200_set_stdby,
332 .met_wait_event = am200_wait_event,
333 .met_wait_event_intr = am200_wait_event_intr,
334 .get_panel_type = am200_get_panel_type,
335 .cleanup = am200_cleanup,
336};
337
35#include <video/metronomefb.h>
36
37static unsigned int panel_type = 6;
38static struct platform_device *am200_device;
39static struct metronome_board am200_board;
40
41static struct pxafb_mode_info am200_fb_mode_9inch7 = {
42 .pixclock = 40000,

--- 283 unchanged lines hidden (view full) ---

326 .set_rst = am200_set_rst,
327 .set_stdby = am200_set_stdby,
328 .met_wait_event = am200_wait_event,
329 .met_wait_event_intr = am200_wait_event_intr,
330 .get_panel_type = am200_get_panel_type,
331 .cleanup = am200_cleanup,
332};
333
338static unsigned long am200_pin_config[] __initdata = {
339 GPIO51_GPIO,
340 GPIO49_GPIO,
341 GPIO48_GPIO,
342 GPIO32_GPIO,
343 GPIO17_GPIO,
344 GPIO16_GPIO,
345};
346
347static int __init am200_init(void)
334int __init am200_init(void)
348{
349 int ret;
350
351 /* before anything else, we request notification for any fb
352 * creation events */
353 fb_register_client(&am200_fb_notif);
354
335{
336 int ret;
337
338 /* before anything else, we request notification for any fb
339 * creation events */
340 fb_register_client(&am200_fb_notif);
341
355 pxa2xx_mfp_config(ARRAY_AND_SIZE(am200_pin_config));
356
357 /* request our platform independent driver */
358 request_module("metronomefb");
359
360 am200_device = platform_device_alloc("metronomefb", -1);
361 if (!am200_device)
362 return -ENOMEM;
363
364 /* the am200_board that will be seen by metronomefb is a copy */

--- 12 unchanged lines hidden (view full) ---

377 am200_presetup_fb();
378
379 return 0;
380}
381
382module_param(panel_type, uint, 0);
383MODULE_PARM_DESC(panel_type, "Select the panel type: 6, 8, 97");
384
342 /* request our platform independent driver */
343 request_module("metronomefb");
344
345 am200_device = platform_device_alloc("metronomefb", -1);
346 if (!am200_device)
347 return -ENOMEM;
348
349 /* the am200_board that will be seen by metronomefb is a copy */

--- 12 unchanged lines hidden (view full) ---

362 am200_presetup_fb();
363
364 return 0;
365}
366
367module_param(panel_type, uint, 0);
368MODULE_PARM_DESC(panel_type, "Select the panel type: 6, 8, 97");
369
385module_init(am200_init);
386
387MODULE_DESCRIPTION("board driver for am200 metronome epd kit");
388MODULE_AUTHOR("Jaya Kumar");
389MODULE_LICENSE("GPL");
370MODULE_DESCRIPTION("board driver for am200 metronome epd kit");
371MODULE_AUTHOR("Jaya Kumar");
372MODULE_LICENSE("GPL");