Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321089
b: refs/heads/master
c: fb8fa94
h: refs/heads/master
i:
  321087: db7025c
v: v3
  • Loading branch information
Manjunathappa, Prakash authored and Florian Tobias Schandinat committed Jul 29, 2012
1 parent a2a1766 commit 0ce14e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: deb95c6c958f5ba97b6b89ab18917bf79cb8ce7b
refs/heads/master: fb8fa9431971b9847aafaf89281570ca41bd0b40
11 changes: 7 additions & 4 deletions trunk/drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ static void lcd_blit(int load_mode, struct da8xx_fb_par *par)
lcd_enable_raster();
}

/* Configure the Burst Size of DMA */
static int lcd_cfg_dma(int burst_size)
/* Configure the Burst Size and fifo threhold of DMA */
static int lcd_cfg_dma(int burst_size, int fifo_th)
{
u32 reg;

Expand All @@ -378,6 +378,9 @@ static int lcd_cfg_dma(int burst_size)
default:
return -EINVAL;
}

reg |= (fifo_th << 8);

lcdc_write(reg, LCD_DMA_CTRL_REG);

return 0;
Expand Down Expand Up @@ -679,8 +682,8 @@ static int lcd_init(struct da8xx_fb_par *par, const struct lcd_ctrl_config *cfg,
lcdc_write((lcdc_read(LCD_RASTER_TIMING_2_REG) &
~LCD_INVERT_PIXEL_CLOCK), LCD_RASTER_TIMING_2_REG);

/* Configure the DMA burst size. */
ret = lcd_cfg_dma(cfg->dma_burst_sz);
/* Configure the DMA burst size and fifo threshold. */
ret = lcd_cfg_dma(cfg->dma_burst_sz, cfg->fifo_th);
if (ret < 0)
return ret;

Expand Down
3 changes: 3 additions & 0 deletions trunk/include/video/da8xx-fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ struct lcd_ctrl_config {

/* Raster Data Order Select: 1=Most-to-least 0=Least-to-most */
unsigned char raster_order;

/* DMA FIFO threshold */
int fifo_th;
};

struct lcd_sync_arg {
Expand Down

0 comments on commit 0ce14e0

Please sign in to comment.