|
关于LCD中的fram buffer (dma)地址问题?
[复制链接]
- // Make sure this matches entry in config.bib
- // These buffs are now offset via a constant
- [color=#FF0000]#define DMA_BUFFER_BASE 0xAC000000
- #define DMA_PHYSICAL_BASE 0x30000000 // S3C2440X01[/color]
- #define AUDIO_DMA_BUFFER_BASE (DMA_BUFFER_BASE + 0x00002000)
- #define AUDIO_DMA_BUFFER_PHYS (DMA_PHYSICAL_BASE + 0x00002000)
- #define FRAMEBUF_BASE (DMA_BUFFER_BASE + 0x001d0000)
- #define FRAMEBUF_DMA_BASE (DMA_PHYSICAL_BASE + [color=#FF0000]0x001d0000[/color])
- s2440LCD->rLCDSADDR1 = ((FRAMEBUF_DMA_BASE >> 22) << 21) |
- ((M5D(FRAMEBUF_DMA_BASE >> 1)) << 0);
- s2440LCD->rLCDSADDR2 = M5D((FRAMEBUF_DMA_BASE + (LCD_XSIZE_TFT * LCD_YSIZE_TFT * 2)) >> 1);
- s2440LCD->rLCDSADDR3 = (((LCD_XSIZE_TFT - LCD_XSIZE_TFT) / 1) << 11) | (LCD_XSIZE_TFT / 1);
复制代码
主要就是LCDSADDR1、LCDSADDR2、LCDSADDR3这三个寄存器怎么配?
如果要用LCD 专用的DMA的话,那个地址是怎么来的!
|
|