mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
This commit is contained in:
commit
cf9fe114e3
745 changed files with 30125 additions and 9829 deletions
|
|
@ -29,14 +29,8 @@
|
|||
|
||||
/* configurable parameters */
|
||||
#define ATMEL_LCDC_CVAL_DEFAULT 0xc8
|
||||
#define ATMEL_LCDC_DMA_BURST_LEN 8
|
||||
|
||||
#if defined(CONFIG_ARCH_AT91SAM9263) || defined(CONFIG_ARCH_AT91CAP9) || \
|
||||
defined(CONFIG_ARCH_AT91SAM9RL)
|
||||
#define ATMEL_LCDC_FIFO_SIZE 2048
|
||||
#else
|
||||
#define ATMEL_LCDC_FIFO_SIZE 512
|
||||
#endif
|
||||
#define ATMEL_LCDC_DMA_BURST_LEN 8 /* words */
|
||||
#define ATMEL_LCDC_FIFO_SIZE 512 /* words */
|
||||
|
||||
#if defined(CONFIG_ARCH_AT91)
|
||||
#define ATMEL_LCDFB_FBINFO_DEFAULT (FBINFO_DEFAULT \
|
||||
|
|
|
|||
|
|
@ -947,7 +947,8 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
|
|||
int win;
|
||||
|
||||
for (win = 0; win <= S3C_FB_MAX_WIN; win++)
|
||||
s3c_fb_release_win(sfb, sfb->windows[win]);
|
||||
if (sfb->windows[win])
|
||||
s3c_fb_release_win(sfb, sfb->windows[win]);
|
||||
|
||||
iounmap(sfb->regs);
|
||||
|
||||
|
|
@ -985,11 +986,20 @@ static int s3c_fb_suspend(struct platform_device *pdev, pm_message_t state)
|
|||
static int s3c_fb_resume(struct platform_device *pdev)
|
||||
{
|
||||
struct s3c_fb *sfb = platform_get_drvdata(pdev);
|
||||
struct s3c_fb_platdata *pd = sfb->pdata;
|
||||
struct s3c_fb_win *win;
|
||||
int win_no;
|
||||
|
||||
clk_enable(sfb->bus_clk);
|
||||
|
||||
/* setup registers */
|
||||
writel(pd->vidcon1, sfb->regs + VIDCON1);
|
||||
|
||||
/* zero all windows before we do anything */
|
||||
for (win_no = 0; win_no < S3C_FB_MAX_WIN; win_no++)
|
||||
s3c_fb_clear_win(sfb, win_no);
|
||||
|
||||
/* restore framebuffers */
|
||||
for (win_no = 0; win_no < S3C_FB_MAX_WIN; win_no++) {
|
||||
win = sfb->windows[win_no];
|
||||
if (!win)
|
||||
|
|
|
|||
Loading…
Reference in a new issue