The patch titled lxfb: set the H- and V-SYNC polarity of the flatpanel output has been added to the -mm tree. Its filename is lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: lxfb: set the H- and V-SYNC polarity of the flatpanel output From: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx> Fixup for the flatpanel output. The geode_modedb attribute flags are used to set the SYNC polarity of the flatpanel. Without this patch our flatpanel registers stayed unconfigured, so we just saw garbage output. Signed-off-by: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx> Cc: Andres Salomon <dilinger@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/geode/lxfb.h | 2 ++ drivers/video/geode/lxfb_ops.c | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff -puN drivers/video/geode/lxfb.h~lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output drivers/video/geode/lxfb.h --- a/drivers/video/geode/lxfb.h~lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output +++ a/drivers/video/geode/lxfb.h @@ -365,6 +365,8 @@ enum fp_registers { FP_CRC, /* 0x458 */ }; +#define FP_PT2_HSP (1 << 22) +#define FP_PT2_VSP (1 << 23) #define FP_PT2_SCRC (1 << 27) /* shfclk free */ #define FP_PM_P (1 << 24) /* panel power ctl */ diff -puN drivers/video/geode/lxfb_ops.c~lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output drivers/video/geode/lxfb_ops.c --- a/drivers/video/geode/lxfb_ops.c~lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output +++ a/drivers/video/geode/lxfb_ops.c @@ -274,7 +274,15 @@ static void lx_graphics_enable(struct fb u32 msrlo, msrhi; write_fp(par, FP_PT1, 0); - write_fp(par, FP_PT2, FP_PT2_SCRC); + temp = FP_PT2_SCRC; + + if (info->var.sync & FB_SYNC_HOR_HIGH_ACT) + temp |= FP_PT2_HSP; + + if (info->var.sync & FB_SYNC_VERT_HIGH_ACT) + temp |= FP_PT2_VSP; + + write_fp(par, FP_PT2, temp); write_fp(par, FP_DFC, FP_DFC_BC); msrlo = MSR_LX_MSR_PADSEL_TFT_SEL_LOW; _ Patches currently in -mm which might be from m.grzeschik@xxxxxxxxxxxxxx are lxfb-set-the-h-and-v-sync-polarity-of-the-flatpanel-output.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html