Skip to content

Commit

Permalink
OMAP: OMAPFB: split omapfb.h
Browse files Browse the repository at this point in the history
Split arch/arm/plat-omap/include/mach/omapfb.h into two files:

include/linux/omapfb.h - ioctls etc for userspace and some kernel
                         stuff for board files
drivers/video/omap/omapfb.h - for omapfb internal use

This cleans up omapfb.h and also makes it easier for the upcoming new
DSS driver to co-exist with the old driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tomi Valkeinen committed Dec 9, 2009
1 parent b90f8e7 commit 91773a0
Show file tree
Hide file tree
Showing 30 changed files with 248 additions and 210 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-nokia770.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/clk.h>
#include <linux/omapfb.h>

#include <linux/spi/spi.h>
#include <linux/spi/ads7846.h>
Expand All @@ -32,7 +33,6 @@
#include <plat/keypad.h>
#include <plat/common.h>
#include <plat/dsp_common.h>
#include <plat/omapfb.h>
#include <plat/hwa742.h>
#include <plat/lcd_mipid.h>
#include <plat/mmc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
#include <linux/init.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/omapfb.h>

#include <asm/tlb.h>

#include <asm/mach/map.h>

#include <plat/mux.h>
#include <plat/omapfb.h>
#include <plat/sram.h>
#include <plat/sdrc.h>
#include <plat/gpmc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
#include <linux/platform_device.h>
#include <linux/bootmem.h>
#include <linux/io.h>
#include <linux/omapfb.h>

#include <mach/hardware.h>
#include <asm/mach/map.h>

#include <plat/board.h>
#include <plat/sram.h>
#include <plat/omapfb.h>

#if defined(CONFIG_FB_OMAP) || defined(CONFIG_FB_OMAP_MODULE)

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/blizzard.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include <linux/clk.h>

#include <plat/dma.h>
#include <plat/omapfb.h>
#include <plat/blizzard.h>

#include "omapfb.h"
#include "dispc.h"

#define MODULE_NAME "blizzard"
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include <linux/io.h>

#include <plat/sram.h>
#include <plat/omapfb.h>
#include <plat/board.h>

#include "omapfb.h"
#include "dispc.h"

#define MODULE_NAME "dispc"
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/hwa742.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
#include <linux/fb.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/interrupt.h>

#include <plat/dma.h>
#include <plat/omapfb.h>
#include <plat/hwa742.h>
#include "omapfb.h"

#define HWA742_REV_CODE_REG 0x0
#define HWA742_CONFIG_REG 0x2
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_2430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include <linux/i2c/twl4030.h>

#include <plat/mux.h>
#include <plat/omapfb.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define SDP2430_LCD_PANEL_BACKLIGHT_GPIO 91
#define SDP2430_LCD_PANEL_ENABLE_GPIO 154
#define SDP3430_LCD_PANEL_BACKLIGHT_GPIO 24
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_ams_delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

#include <plat/board-ams-delta.h>
#include <mach/hardware.h>
#include <plat/omapfb.h>

#include "omapfb.h"

#define AMS_DELTA_DEFAULT_CONTRAST 112

Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_apollon.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

#include <mach/gpio.h>
#include <plat/mux.h>
#include <plat/omapfb.h>

#include "omapfb.h"

/* #define USE_35INCH_LCD 1 */

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/i2c/tps65010.h>

#include <mach/gpio.h>
#include <plat/omapfb.h>
#include "omapfb.h"

#define MODULE_NAME "omapfb-lcd_h3"

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>

#include <plat/omapfb.h>
#include "omapfb.h"

static int h4_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_htcherald.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>

#include <plat/omapfb.h>
#include "omapfb.h"

static int htcherald_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_inn1510.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/io.h>

#include <plat/fpga.h>
#include <plat/omapfb.h>
#include "omapfb.h"

static int innovator1510_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_inn1610.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/platform_device.h>

#include <mach/gpio.h>
#include <plat/omapfb.h>
#include "omapfb.h"

#define MODULE_NAME "omapfb-lcd_h3"

Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_ldp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@

#include <mach/gpio.h>
#include <plat/mux.h>
#include <plat/omapfb.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define LCD_PANEL_BACKLIGHT_GPIO (15 + OMAP_MAX_GPIO_LINES)
#define LCD_PANEL_ENABLE_GPIO (7 + OMAP_MAX_GPIO_LINES)

Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_mipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
#include <linux/workqueue.h>
#include <linux/spi/spi.h>

#include <plat/omapfb.h>
#include <plat/lcd_mipid.h>

#include "omapfb.h"

#define MIPID_MODULE_NAME "lcd_mipid"

#define MIPID_CMD_READ_DISP_ID 0x04
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_omap2evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
#include <linux/i2c/twl4030.h>

#include <plat/mux.h>
#include <plat/omapfb.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define LCD_PANEL_ENABLE_GPIO 154
#define LCD_PANEL_LR 128
#define LCD_PANEL_UD 129
Expand Down
4 changes: 3 additions & 1 deletion drivers/video/omap/lcd_omap3beagle.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
#include <linux/i2c/twl4030.h>

#include <plat/mux.h>
#include <plat/omapfb.h>
#include <plat/mux.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define LCD_PANEL_ENABLE_GPIO 170

static int omap3beagle_panel_init(struct lcd_panel *panel,
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_omap3evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
#include <linux/i2c/twl4030.h>

#include <plat/mux.h>
#include <plat/omapfb.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define LCD_PANEL_ENABLE_GPIO 153
#define LCD_PANEL_LR 2
#define LCD_PANEL_UD 3
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_osk.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <mach/gpio.h>
#include <plat/mux.h>
#include <plat/omapfb.h>
#include "omapfb.h"

static int osk_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev)
{
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcd_overo.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@

#include <mach/gpio.h>
#include <plat/mux.h>
#include <plat/omapfb.h>
#include <asm/mach-types.h>

#include "omapfb.h"

#define LCD_ENABLE 144

static int overo_panel_init(struct lcd_panel *panel,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_palmte.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/io.h>

#include <plat/fpga.h>
#include <plat/omapfb.h>
#include "omapfb.h"

static int palmte_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_palmtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GPIO13 - screen blanking
#include <linux/io.h>

#include <mach/gpio.h>
#include <plat/omapfb.h>
#include "omapfb.h"

static int palmtt_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap/lcd_palmz71.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/platform_device.h>
#include <linux/io.h>

#include <plat/omapfb.h>
#include "omapfb.h"

static int palmz71_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev)
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/omap/lcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
#include <linux/clk.h>

#include <plat/dma.h>
#include <plat/omapfb.h>

#include <asm/mach-types.h>

#include "omapfb.h"

#include "lcdc.h"

#define MODULE_NAME "lcdc"
Expand Down
Loading

0 comments on commit 91773a0

Please sign in to comment.