change only polarity bits in LTDC_GCR

This commit is contained in:
Titus von Boxberg 2017-07-29 12:15:54 +02:00
parent 5de2468521
commit 28a53d8e25

View File

@ -1012,9 +1012,10 @@ static void stm32_ltdc_periphconfig(void)
putreg32(regval, STM32_LTDC_TWCR); putreg32(regval, STM32_LTDC_TWCR);
reginfo("configured LTDC_TWCR=%08x\n", getreg32(STM32_LTDC_TWCR)); reginfo("configured LTDC_TWCR=%08x\n", getreg32(STM32_LTDC_TWCR));
/* Configure LTDC_GCR */ /* Configure signal polarities */
regval = getreg32(STM32_LTDC_GCR);
regval = (STM32_LTDC_GCR_PCPOL | STM32_LTDC_GCR_DEPOL regval &= ~(LTDC_GCR_PCPOL | LTDC_GCR_DEPOL | LTDC_GCR_VSPOL | LTDC_GCR_HSPOL);
regval |= (STM32_LTDC_GCR_PCPOL | STM32_LTDC_GCR_DEPOL
| STM32_LTDC_GCR_VSPOL | STM32_LTDC_GCR_HSPOL); | STM32_LTDC_GCR_VSPOL | STM32_LTDC_GCR_HSPOL);
reginfo("set LTDC_GCR=%08x\n", regval); reginfo("set LTDC_GCR=%08x\n", regval);
putreg32(regval, STM32_LTDC_GCR); putreg32(regval, STM32_LTDC_GCR);