/*
- * File: drivers/video/omap/omap2/dispc.c
- *
* OMAP2 display controller support
*
* Copyright (C) 2005 Nokia Corporation
enable_lcd_clocks(1);
if (orig_width < out_width) {
- /* Upsampling.
+ /*
+ * Upsampling.
* Currently you can only scale both dimensions in one way.
*/
if (orig_height > out_height ||
/*
- * File: drivers/video/omap/hwa742.c
- *
* Epson HWA742 LCD controller driver
*
* Copyright (C) 2004-2005 Nokia Corporation
/* time to transfer one pixel (16bpp) in ps */
hwa742.pix_tx_time = hwa742.reg_timings.we_cycle_time;
if (hwa742.extif->get_max_tx_rate != NULL) {
- /* The external interface might have a rate limitation,
+ /*
+ * The external interface might have a rate limitation,
* if so, we have to maximize our transfer rate.
*/
unsigned long min_tx_time;
hwa742.line_upd_time = (hdisp + hndp) * 1000000 / (pix_clk / 1000);
hwa742.line_upd_time *= 1000;
if (hdisp * hwa742.pix_tx_time > hwa742.line_upd_time)
- /* transfer speed too low, we might have to use both
- * HS and VS */
+ /*
+ * transfer speed too low, we might have to use both
+ * HS and VS
+ */
use_hsvs = 1;
else
/* decent transfer speed, we'll always use only VS */
use_hsvs = 0;
if (use_hsvs && (hs_pol_inv || vs_pol_inv)) {
- /* HS or'ed with VS doesn't work, use the active high
- * TE signal based on HNDP / VNDP */
+ /*
+ * HS or'ed with VS doesn't work, use the active high
+ * TE signal based on HNDP / VNDP
+ */
use_ndp = 1;
hs_pol_inv = 0;
vs_pol_inv = 0;
hs = hndp;
vs = vndp;
} else {
- /* Use HS or'ed with VS as a TE signal if both are needed
- * or VNDP if only vsync is needed. */
+ /*
+ * Use HS or'ed with VS as a TE signal if both are needed
+ * or VNDP if only vsync is needed.
+ */
use_ndp = 0;
hs = hsw;
vs = vsw;
/*
- * File: drivers/video/omap/lcd_apollon.c
- *
* LCD panel support for the Samsung OMAP2 Apollon board
*
* Copyright (C) 2005,2006 Samsung Electronics
/*
- * File: drivers/video/omap/lcd-h2.c
- *
* LCD panel support for the TI OMAP H2 board
*
* Copyright (C) 2004 Nokia Corporation
{
int r;
- /* Assert LCD_EN, BKLIGHT_EN pins on LCD panel
+ /*
+ * Assert LCD_EN, BKLIGHT_EN pins on LCD panel
* page2, GPIO config reg, GPIO(0,1) to out and asserted
*/
r = tsc2101_write_sync(h2_panel_dev.tsc2101_dev, 2, 0x23, 0xcc00);
static void h2_panel_disable(struct lcd_panel *panel)
{
- /* Deassert LCD_EN and BKLIGHT_EN pins on LCD panel
+ /*
+ * Deassert LCD_EN and BKLIGHT_EN pins on LCD panel
* page2, GPIO config reg, GPIO(0,1) to out and deasserted
*/
if (tsc2101_write_sync(h2_panel_dev.tsc2101_dev, 2, 0x23, 0x8800))
/*
- * File: drivers/video/omap/lcd-h3.c
- *
* LCD panel support for the TI OMAP H3 board
*
* Copyright (C) 2004 Nokia Corporation
/*
- * File: drivers/video/omap/lcd-h4.c
- *
* LCD panel support for the TI OMAP H4 board
*
* Copyright (C) 2004 Nokia Corporation
/*
- * File: drivers/video/omap/lcd-inn1510.c
- *
* LCD panel support for the TI OMAP1510 Innovator board
*
* Copyright (C) 2004 Nokia Corporation
/*
- * File: drivers/video/omap/lcd-inn1610.c
- *
* LCD panel support for the TI OMAP1610 Innovator board
*
* Copyright (C) 2004 Nokia Corporation
/*
- * File: drivers/video/omap/lcd_mipid.c
- *
* LCD driver for MIPI DBI-C / DCS compatible LCDs
*
* Copyright (C) 2006 Nokia Corporation
hw_guard_wait(md);
mipid_cmd(md, cmd);
hw_guard_start(md, 120);
- /* When we enable the panel, it seems we _have_ to sleep
+ /*
+ * When we enable the panel, it seems we _have_ to sleep
* 120 ms before sending the init string. When disabling the
* panel we'll sleep for the duration of 2 frames, so that the
* controller can still provide the PCLK,HS,VS signals. */
{
struct mipid_device *md = to_mipid_device(panel);
- /* A final ESD work might be called before returning,
- * so do this without holding the lock. */
+ /*
+ * A final ESD work might be called before returning,
+ * so do this without holding the lock.
+ */
mipid_esd_stop_check(md);
mutex_lock(&md->mutex);
/*
- * File: drivers/video/omap/lcd-osk.c
- *
* LCD panel support for the TI OMAP OSK board
*
* Copyright (C) 2004 Nokia Corporation
/*
- * File: drivers/video/omap/lcd-p2.c
- *
* LCD panel support for the TI OMAP P2 board
*
* Authors:
/*
- * File: drivers/video/omap/lcd_palmte.c
- *
* LCD panel support for the Palm Tungsten E
*
* Original version : Romain Goyet
/*
- * File: drivers/video/omap/lcd_palmtt.c
- *
* LCD panel support for Palm Tungsten|T
* Current version : Marek Vasut <marek.vasut@gmail.com>
*
/*
- * File: drivers/video/omap/lcd_palmz71.c
- *
* LCD panel support for the Palm Zire71
*
* Original version : Romain Goyet
/*
- * File: drivers/video/omap/lcd_sx1.c
- *
* LCD panel support for the Siemens SX1 mobile phone
*
- * Current version : Vovan888 at gmail com, great help from FCA00000
+ * Current version : Vovan888@gmail com, great help from FCA00000
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
#define GPIO_PIN_CONTROL 0xfffce018
-#define A_LCD_SSC_RD 3
+#define A_LCD_SSC_RD 3
#define A_LCD_SSC_SD 7
#define _A_LCD_RESET 9
#define _A_LCD_SSC_CS 12
OMAP_LCDC_INV_HSYNC | OMAP_LCDC_INV_PIX_CLOCK |
OMAP_LCDC_INV_OUTPUT_EN,
- .x_res = 176,
- .y_res = 220,
+ .x_res = 176,
+ .y_res = 220,
.data_lines = 16,
- .bpp = 16,
- .hsw = 5,
- .hfp = 5,
- .hbp = 5,
- .vsw = 2,
- .vfp = 1,
- .vbp = 1,
+ .bpp = 16,
+ .hsw = 5,
+ .hfp = 5,
+ .hbp = 5,
+ .vsw = 2,
+ .vfp = 1,
+ .vbp = 1,
.pixel_clock = 1500,
.init = sx1_panel_init,
/*
- * File: drivers/video/omap/omap1/lcdc.c
- *
* OMAP1 internal LCD controller
*
* Copyright (C) 2004 Nokia Corporation
l = omap_readl(OMAP_LCDC_CONTROL);
mask = OMAP_LCDC_CTRL_LCD_EN | OMAP_LCDC_IRQ_MASK;
- /* Preserve the DONE mask, since we still want to get the
+ /*
+ * Preserve the DONE mask, since we still want to get the
* final DONE irq. It will be disabled in the IRQ handler.
*/
mask &= ~OMAP_LCDC_IRQ_DONE;
}
}
-/* Configure the LCD DMA according to the current mode specified by parameters
+/*
+ * Configure the LCD DMA according to the current mode specified by parameters
* in lcdc.fbdev and fbdev->var.
*/
static void setup_lcd_dma(void)
if (!cpu_is_omap15xx()) {
int bpp = lcdc.bpp;
- /* YUV support is only for external mode when we have the
+ /*
+ * YUV support is only for external mode when we have the
* YUV window embedded in a 16bpp frame buffer.
*/
if (lcdc.color_mode == OMAPFB_COLOR_YUV420)
if (status & OMAP_LCDC_STAT_DONE) {
u32 l;
- /* Disable IRQ_DONE. The status bit will be cleared
+ /*
+ * Disable IRQ_DONE. The status bit will be cleared
* only when the controller is reenabled and we don't
* want to get more interrupts.
*/
}
}
- /* Clear these interrupt status bits.
+ /*
+ * Clear these interrupt status bits.
* Sync_lost, FUF bits were cleared by disabling the LCD controller
* LOADED_PALETTE can be cleared this way only in palette only
* load mode. In other load modes it's cleared by disabling the
return IRQ_HANDLED;
}
-/* Change to a new video mode. We defer this to a later time to avoid any
+/*
+ * Change to a new video mode. We defer this to a later time to avoid any
* flicker and not to mess up the current LCD DMA context. For this we disable
* the LCD controler, which will generate a DONE irq after the last frame has
* been transferred. Then it'll be safe to reconfigure both the LCD controller
return 0;
}
-/* Configure the LCD DMA for a palette load operation and do the palette
+/*
+ * Configure the LCD DMA for a palette load operation and do the palette
* downloading synchronously. We don't use the frame+palette load mode of
* the controller, since the palette can always be downloaded seperately.
*/
panel->pixel_clock = lck / pcd / 1000;
}
-/* Configure the LCD controller, download the color palette and start a looped
+/*
+ * Configure the LCD controller, download the color palette and start a looped
* DMA transfer of the frame image data. Called only in internal
* controller mode.
*/
/*
- * File: drivers/video/omap/omapfb_main.c
- *
* Framebuffer driver for TI OMAP boards
*
* Copyright (C) 2004 Nokia Corporation
OMAP_DMA_DATA_TYPE_S32,
};
-/* Allocate resources needed for LCD controller and LCD DMA operations. Video
+/*
+ * Allocate resources needed for LCD controller and LCD DMA operations. Video
* memory is allocated from system memory according to the virtual display
* size, except if a bigger memory size is specified explicitly as a kernel
* parameter.
omapfb_rqueue_unlock(fbdev);
}
-/* Set fb_info.fix fields and also updates fbdev.
+/*
+ * Set fb_info.fix fields and also updates fbdev.
* When calling this fb_info.var must be set up already.
*/
static void set_fb_fix(struct fb_info *fbi)
}
}
-/* Check the values in var against our capabilities and in case of out of
+/*
+ * Check the values in var against our capabilities and in case of out of
* bound values try to adjust them.
*/
static int set_fb_var(struct fb_info *fbi,
omapfb_rqueue_unlock(fbdev);
}
-/* Set new x,y offsets in the virtual display for the visible area and switch
+/*
+ * Set new x,y offsets in the virtual display for the visible area and switch
* to the new mode.
*/
static int omapfb_pan_display(struct fb_var_screeninfo *var,
return r;
}
-/* Check values in var, try to adjust them in case of out of bound values if
+/*
+ * Check values in var, try to adjust them in case of out of bound values if
* possible, or return error.
*/
static int omapfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fbi)
return r;
}
-/* Switch to a new mode. The parameters for it has been check already by
+/*
+ * Switch to a new mode. The parameters for it has been check already by
* omapfb_check_var.
*/
static int omapfb_set_par(struct fb_info *fbi)
omapfb_rqueue_lock(fbdev);
if (pi->enabled && !fbdev->mem_desc.region[plane->idx].size) {
- /* This plane's memory was freed, can't enable it
+ /*
+ * This plane's memory was freed, can't enable it
* until it's reallocated.
*/
r = -EINVAL;
rg->size = size;
rg->type = mi->type;
- /* size == 0 is a special case, for which we
+ /*
+ * size == 0 is a special case, for which we
* don't check / adjust the screen parameters.
* This isn't a problem since the plane can't
* be reenabled unless its size is > 0.
memcpy(&fbi->var, new_var, sizeof(fbi->var));
set_fb_fix(fbi);
} else {
- /* Set these explicitly to indicate that the
+ /*
+ * Set these explicitly to indicate that the
* plane memory is dealloce'd, the other
* screen parameters in var / fix are invalid.
*/
}
EXPORT_SYMBOL(omapfb_write_first_pixel);
-/* Ioctl interface. Part of the kernel mode frame buffer API is duplicated
+/*
+ * Ioctl interface. Part of the kernel mode frame buffer API is duplicated
* here to be accessible by user mode code.
*/
static int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd,
return r;
}
-/* Callback table for the frame buffer framework. Some of these pointers
+/*
+ * Callback table for the frame buffer framework. Some of these pointers
* will be changed according to the current setting of fb_info->accel_flags.
*/
static struct fb_ops omapfb_ops = {
return 0;
}
-/* Free driver resources. Can be called to rollback an aborted initialization
+/*
+ * Free driver resources. Can be called to rollback an aborted initialization
* sequence.
*/
static void omapfb_free_resources(struct omapfb_device *fbdev, int state)
#undef _C
}
-/* Called by LDM binding to probe and attach a new device.
+/*
+ * Called by LDM binding to probe and attach a new device.
* Initialization sequence:
* 1. allocate system omapfb_device structure
* 2. select controller type according to platform configuration
/*
- * File: drivers/video/omap/omap2/rfbi.c
- *
* OMAP2 Remote Frame Buffer Interface support
*
* Copyright (C) 2005 Nokia Corporation
/*
- * File: drivers/video/omap/omap1/sossi.c
- *
* OMAP1 Special OptimiSed Screen Interface support
*
* Copyright (C) 2004-2005 Nokia Corporation
int clk_div;
u8 clk_tw0[2];
u8 clk_tw1[2];
- /* if last_access is the same as current we don't have to change
+ /*
+ * if last_access is the same as current we don't have to change
* the timings
*/
int last_access;
int reon, reoff, recyc, actim;
int div = t->clk_div;
- /* Make sure that after conversion it still holds that:
+ /*
+ * Make sure that after conversion it still holds that:
* reoff > reon, recyc >= reoff, actim > reon
*/
reon = ps_to_sossi_ticks(t->re_on_time, div);
actim = ps_to_sossi_ticks(t->access_time, div);
if (actim < reoff)
actim++;
- /* access time (data hold time) will be exactly one sossi
+ /*
+ * access time (data hold time) will be exactly one sossi
* tick
*/
if (actim - reoff > 1)
int weon, weoff, wecyc;
int div = t->clk_div;
- /* Make sure that after conversion it still holds that:
+ /*
+ * Make sure that after conversion it still holds that:
* weoff > weon, wecyc >= weoff
*/
weon = ps_to_sossi_ticks(t->we_on_time, div);
{
int bus_pick_count, bus_pick_width;
- /* We set explicitly the the bus_pick_count as well, although
+ /*
+ * We set explicitly the the bus_pick_count as well, although
* with remapping/reordering disabled it will be calculated by HW
* as (32 / bus_pick_width).
*/
sossi_start_transfer();
if (sossi.tearsync_mode) {
- /* Wait for the sync signal and start the transfer only
+ /*
+ * Wait for the sync signal and start the transfer only
* then. We can't seem to be able to use HW sync DMA for
* this since LCD DMA shows huge latencies, as if it
* would ignore some of the DMA requests from SoSSI.
dev_err(fbdev->dev, "can't get DPLL1OUT clock\n");
return PTR_ERR(dpll1out_ck);
}
- /* We need the parent clock rate, which we might divide further
+ /*
+ * We need the parent clock rate, which we might divide further
* depending on the timing requirements of the controller. See
* _set_timings.
*/