|
104 | 104 |
|
105 | 105 | #define GCR_LTDCEN BIT(0) /* LTDC ENable */ |
106 | 106 | #define GCR_DEN BIT(16) /* Dither ENable */ |
107 | | -#define GCR_PCPOL BIT(28) /* Pixel Clock POLarity */ |
108 | | -#define GCR_DEPOL BIT(29) /* Data Enable POLarity */ |
109 | | -#define GCR_VSPOL BIT(30) /* Vertical Synchro POLarity */ |
110 | | -#define GCR_HSPOL BIT(31) /* Horizontal Synchro POLarity */ |
| 107 | +#define GCR_PCPOL BIT(28) /* Pixel Clock POLarity-Inverted */ |
| 108 | +#define GCR_DEPOL BIT(29) /* Data Enable POLarity-High */ |
| 109 | +#define GCR_VSPOL BIT(30) /* Vertical Synchro POLarity-High */ |
| 110 | +#define GCR_HSPOL BIT(31) /* Horizontal Synchro POLarity-High */ |
111 | 111 |
|
112 | 112 | #define GC1R_WBCH GENMASK(3, 0) /* Width of Blue CHannel output */ |
113 | 113 | #define GC1R_WGCH GENMASK(7, 4) /* Width of Green Channel output */ |
|
174 | 174 |
|
175 | 175 | #define LXCFBLNR_CFBLN GENMASK(10, 0) /* Color Frame Buffer Line Number */ |
176 | 176 |
|
177 | | -#define HSPOL_AL 0 /* Horizontal Sync POLarity Active Low */ |
178 | | -#define VSPOL_AL 0 /* Vertical Sync POLarity Active Low */ |
179 | | -#define DEPOL_AL 0 /* Data Enable POLarity Active Low */ |
180 | | -#define PCPOL_IPC 0 /* Input Pixel Clock */ |
181 | | -#define HSPOL_AH GCR_HSPOL /* Horizontal Sync POLarity Active High */ |
182 | | -#define VSPOL_AH GCR_VSPOL /* Vertical Sync POLarity Active High */ |
183 | | -#define DEPOL_AH GCR_DEPOL /* Data Enable POLarity Active High */ |
184 | | -#define PCPOL_IIPC GCR_PCPOL /* Inverted Input Pixel Clock */ |
185 | 177 | #define CONSTA_MAX 0xFF /* CONSTant Alpha MAX= 1.0 */ |
186 | 178 | #define BF1_PAXCA 0x600 /* Pixel Alpha x Constant Alpha */ |
187 | 179 | #define BF1_CA 0x400 /* Constant Alpha */ |
@@ -459,20 +451,20 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc) |
459 | 451 |
|
460 | 452 | clk_enable(ldev->pixel_clk); |
461 | 453 |
|
462 | | - /* Configures the HS, VS, DE and PC polarities. */ |
463 | | - val = HSPOL_AL | VSPOL_AL | DEPOL_AL | PCPOL_IPC; |
| 454 | + /* Configures the HS, VS, DE and PC polarities. Default Active Low */ |
| 455 | + val = 0; |
464 | 456 |
|
465 | 457 | if (vm.flags & DISPLAY_FLAGS_HSYNC_HIGH) |
466 | | - val |= HSPOL_AH; |
| 458 | + val |= GCR_HSPOL; |
467 | 459 |
|
468 | 460 | if (vm.flags & DISPLAY_FLAGS_VSYNC_HIGH) |
469 | | - val |= VSPOL_AH; |
| 461 | + val |= GCR_VSPOL; |
470 | 462 |
|
471 | 463 | if (vm.flags & DISPLAY_FLAGS_DE_HIGH) |
472 | | - val |= DEPOL_AH; |
| 464 | + val |= GCR_DEPOL; |
473 | 465 |
|
474 | 466 | if (vm.flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE) |
475 | | - val |= PCPOL_IIPC; |
| 467 | + val |= GCR_PCPOL; |
476 | 468 |
|
477 | 469 | reg_update_bits(ldev->regs, LTDC_GCR, |
478 | 470 | GCR_HSPOL | GCR_VSPOL | GCR_DEPOL | GCR_PCPOL, val); |
|
0 commit comments