1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LCD panel support for the TI OMAP1510 Innovator board
5 * Copyright (C) 2004 Nokia Corporation
6 * Author: Imre Deak <imre.deak@nokia.com>
9 #include <linux/module.h>
10 #include <linux/platform_device.h>
13 #include <mach/hardware.h>
17 static int innovator1510_panel_enable(struct lcd_panel
*panel
)
19 __raw_writeb(0x7, OMAP1510_FPGA_LCD_PANEL_CONTROL
);
23 static void innovator1510_panel_disable(struct lcd_panel
*panel
)
25 __raw_writeb(0x0, OMAP1510_FPGA_LCD_PANEL_CONTROL
);
28 static struct lcd_panel innovator1510_panel
= {
30 .config
= OMAP_LCDC_PANEL_TFT
,
45 .enable
= innovator1510_panel_enable
,
46 .disable
= innovator1510_panel_disable
,
49 static int innovator1510_panel_probe(struct platform_device
*pdev
)
51 omapfb_register_panel(&innovator1510_panel
);
55 static struct platform_driver innovator1510_panel_driver
= {
56 .probe
= innovator1510_panel_probe
,
58 .name
= "lcd_inn1510",
62 module_platform_driver(innovator1510_panel_driver
);
64 MODULE_AUTHOR("Imre Deak");
65 MODULE_DESCRIPTION("LCD panel support for the TI OMAP1510 Innovator board");
66 MODULE_LICENSE("GPL");