Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123754
b: refs/heads/master
c: 74b114f
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed Dec 16, 2008
1 parent 5f913a7 commit 8f0ab48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 54 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: 60e8c5ab0b09e85de62008f508d8ddfa72c15c1b
refs/heads/master: 74b114fe2cfff9986b2469b3eb0035ca3d325d00
53 changes: 0 additions & 53 deletions trunk/drivers/video/imxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,57 +357,6 @@ static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *inf
return 0;
}

static void imxfb_setup_gpio(struct imxfb_info *fbi)
{
int width;

LCDC_RMCR &= ~(RMCR_LCDC_EN | RMCR_SELF_REF);

if( fbi->pcr & PCR_TFT )
width = 16;
else
width = 1 << ((fbi->pcr >> 28) & 0x3);

switch(width) {
case 16:
imx_gpio_mode(PD30_PF_LD15);
imx_gpio_mode(PD29_PF_LD14);
imx_gpio_mode(PD28_PF_LD13);
imx_gpio_mode(PD27_PF_LD12);
imx_gpio_mode(PD26_PF_LD11);
imx_gpio_mode(PD25_PF_LD10);
imx_gpio_mode(PD24_PF_LD9);
imx_gpio_mode(PD23_PF_LD8);
case 8:
imx_gpio_mode(PD22_PF_LD7);
imx_gpio_mode(PD21_PF_LD6);
imx_gpio_mode(PD20_PF_LD5);
imx_gpio_mode(PD19_PF_LD4);
case 4:
imx_gpio_mode(PD18_PF_LD3);
imx_gpio_mode(PD17_PF_LD2);
case 2:
imx_gpio_mode(PD16_PF_LD1);
case 1:
imx_gpio_mode(PD15_PF_LD0);
}

/* initialize GPIOs */
imx_gpio_mode(PD6_PF_LSCLK);
imx_gpio_mode(PD11_PF_CONTRAST);
imx_gpio_mode(PD14_PF_FLM_VSYNC);
imx_gpio_mode(PD13_PF_LP_HSYNC);
imx_gpio_mode(PD12_PF_ACD_OE);

/* These are only needed for Sharp HR TFT displays */
if (fbi->pcr & PCR_SHARP) {
imx_gpio_mode(PD7_PF_REV);
imx_gpio_mode(PD8_PF_CLS);
imx_gpio_mode(PD9_PF_PS);
imx_gpio_mode(PD10_PF_SPL_SPR);
}
}

#ifdef CONFIG_PM
/*
* Power management hooks. Note that we won't be called from IRQ context,
Expand Down Expand Up @@ -594,8 +543,6 @@ static int __init imxfb_probe(struct platform_device *pdev)
if (ret < 0)
goto failed_cmap;

imxfb_setup_gpio(fbi);

imxfb_set_par(info);
ret = register_framebuffer(info);
if (ret < 0) {
Expand Down

0 comments on commit 8f0ab48

Please sign in to comment.