]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Apollon LCD support
authorKyungmin Park <kyungmin.park@samsung.com>
Sat, 25 Feb 2006 01:13:34 +0000 (17:13 -0800)
committerTony Lindgren <tony@atomide.com>
Sat, 25 Feb 2006 01:13:34 +0000 (17:13 -0800)
Sync. with OMAP git tree

drivers/video/omap/lcd_apollon.c

index 3be38ae2f85ecc2869297d0ea108ee9427c5a831..30cec3e856f1a6e12eedbaf9c3961548b3f06fb5 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/platform_device.h>
 
 #include <asm/arch/gpio.h>
 #include <asm/arch/mux.h>
@@ -105,3 +106,52 @@ struct lcd_panel apollon_panel = {
        .disable        = apollon_panel_disable,
        .get_caps       = apollon_panel_get_caps,
 };
+
+static int apollon_panel_probe(struct platform_device *pdev)
+{
+       DBGENTER(1);
+       omapfb_register_panel(&apollon_panel);
+       return 0;
+}
+
+static int apollon_panel_remove(struct platform_device *pdev)
+{
+       DBGENTER(1);
+       return 0;
+}
+
+static int apollon_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
+{
+       DBGENTER(1);
+       return 0;
+}
+
+static int apollon_panel_resume(struct platform_device *pdev)
+{
+       DBGENTER(1);
+       return 0;
+}
+
+struct platform_driver apollon_panel_driver = {
+       .probe          = apollon_panel_probe,
+       .remove         = apollon_panel_remove,
+       .suspend        = apollon_panel_suspend,
+       .resume         = apollon_panel_resume,
+       .driver         = {
+               .name   = "apollon_lcd",
+               .owner  = THIS_MODULE,
+       },
+};
+
+static int __init apollon_panel_drv_init(void)
+{
+       return platform_driver_register(&apollon_panel_driver);
+}
+
+static void __exit apollon_panel_drv_exit(void)
+{
+       platform_driver_unregister(&apollon_panel_driver);
+}
+
+module_init(apollon_panel_drv_init);
+module_exit(apollon_panel_drv_exit);