Lines Matching full:caps

61 #define LAY_OFS	(ldev->caps.layer_ofs)
87 #define LTDC_L1C0R (ldev->caps.layer_regs[0]) /* L1 configuration 0 */
88 #define LTDC_L1C1R (ldev->caps.layer_regs[1]) /* L1 configuration 1 */
89 #define LTDC_L1RCR (ldev->caps.layer_regs[2]) /* L1 reload control */
90 #define LTDC_L1CR (ldev->caps.layer_regs[3]) /* L1 control register */
91 #define LTDC_L1WHPCR (ldev->caps.layer_regs[4]) /* L1 window horizontal position configuration */
92 #define LTDC_L1WVPCR (ldev->caps.layer_regs[5]) /* L1 window vertical position configuration */
93 #define LTDC_L1CKCR (ldev->caps.layer_regs[6]) /* L1 color keying configuration */
94 #define LTDC_L1PFCR (ldev->caps.layer_regs[7]) /* L1 pixel format configuration */
95 #define LTDC_L1CACR (ldev->caps.layer_regs[8]) /* L1 constant alpha configuration */
96 #define LTDC_L1DCCR (ldev->caps.layer_regs[9]) /* L1 default color configuration */
97 #define LTDC_L1BFCR (ldev->caps.layer_regs[10]) /* L1 blending factors configuration */
98 #define LTDC_L1BLCR (ldev->caps.layer_regs[11]) /* L1 burst length configuration */
99 #define LTDC_L1PCR (ldev->caps.layer_regs[12]) /* L1 planar configuration */
100 #define LTDC_L1CFBAR (ldev->caps.layer_regs[13]) /* L1 color frame buffer address */
101 #define LTDC_L1CFBLR (ldev->caps.layer_regs[14]) /* L1 color frame buffer length */
102 #define LTDC_L1CFBLNR (ldev->caps.layer_regs[15]) /* L1 color frame buffer line number */
103 #define LTDC_L1AFBA0R (ldev->caps.layer_regs[16]) /* L1 auxiliary frame buffer address 0 */
104 #define LTDC_L1AFBA1R (ldev->caps.layer_regs[17]) /* L1 auxiliary frame buffer address 1 */
105 #define LTDC_L1AFBLR (ldev->caps.layer_regs[18]) /* L1 auxiliary frame buffer length */
106 #define LTDC_L1AFBLNR (ldev->caps.layer_regs[19]) /* L1 auxiliary frame buffer line number */
107 #define LTDC_L1CLUTWR (ldev->caps.layer_regs[20]) /* L1 CLUT write */
108 #define LTDC_L1CYR0R (ldev->caps.layer_regs[21]) /* L1 Conversion YCbCr RGB 0 */
109 #define LTDC_L1CYR1R (ldev->caps.layer_regs[22]) /* L1 Conversion YCbCr RGB 1 */
110 #define LTDC_L1FPF0R (ldev->caps.layer_regs[23]) /* L1 Flexible Pixel Format 0 */
111 #define LTDC_L1FPF1R (ldev->caps.layer_regs[24]) /* L1 Flexible Pixel Format 1 */
788 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_enable()
806 for (layer_index = 0; layer_index < ldev->caps.nb_layers; layer_index++) in ltdc_crtc_atomic_disable()
813 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_disable()
843 if (result > ldev->caps.pad_max_freq_hz) in ltdc_crtc_mode_valid()
999 if (ldev->caps.ycbcr_output) { in ltdc_crtc_mode_set_nofb()
1041 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_flush()
1307 if (ldev->caps.pix_fmt_hw[val] == pf) in ltdc_plane_atomic_update()
1311 if (ldev->caps.pix_fmt_flex && val == NB_PF) in ltdc_plane_atomic_update()
1331 if (ldev->caps.non_alpha_only_l1 && in ltdc_plane_atomic_update()
1335 if (ldev->caps.dynamic_zorder) { in ltdc_plane_atomic_update()
1358 (x1 - x0 + 1) + (ldev->caps.bus_width >> 3) - 1; in ltdc_plane_atomic_update()
1373 if (ldev->caps.ycbcr_input) { in ltdc_plane_atomic_update()
1442 (ldev->caps.bus_width >> 3) - 1; in ltdc_plane_atomic_update()
1475 if (ldev->caps.plane_reg_shadow) in ltdc_plane_atomic_update()
1487 if (ldev->caps.fifo_threshold) { in ltdc_plane_atomic_update()
1516 if (ldev->caps.plane_reg_shadow) in ltdc_plane_atomic_disable()
1574 formats = devm_kzalloc(dev, (ldev->caps.pix_fmt_nb + in ltdc_plane_create()
1582 for (i = 0; i < ldev->caps.pix_fmt_nb; i++) { in ltdc_plane_create()
1583 drm_fmt = ldev->caps.pix_fmt_drm[i]; in ltdc_plane_create()
1586 if (ldev->caps.non_alpha_only_l1) in ltdc_plane_create()
1595 if (ldev->caps.ycbcr_input) { in ltdc_plane_create()
1620 if (ldev->caps.ycbcr_input) { in ltdc_plane_create()
1654 if (ldev->caps.dynamic_zorder) in ltdc_crtc_init()
1655 drm_plane_create_zpos_property(primary, 0, 0, ldev->caps.nb_layers - 1); in ltdc_crtc_init()
1659 if (ldev->caps.plane_rotation) in ltdc_crtc_init()
1664 if (ldev->caps.crc) in ltdc_crtc_init()
1683 for (i = 1; i < ldev->caps.nb_layers; i++) { in ltdc_crtc_init()
1689 if (ldev->caps.dynamic_zorder) in ltdc_crtc_init()
1690 drm_plane_create_zpos_property(overlay, i, 0, ldev->caps.nb_layers - 1); in ltdc_crtc_init()
1694 if (ldev->caps.plane_rotation) in ltdc_crtc_init()
1724 if (ldev->caps.fifo_threshold) in ltdc_encoder_enable()
1789 ldev->caps.nb_layers = clamp((int)lcr, 1, LTDC_MAX_LAYER); in ltdc_get_caps()
1794 ldev->caps.bus_width = 8 << bus_width_log2; in ltdc_get_caps()
1795 regmap_read(ldev->regmap, LTDC_IDR, &ldev->caps.hw_version); in ltdc_get_caps()
1797 switch (ldev->caps.hw_version) { in ltdc_get_caps()
1800 ldev->caps.layer_ofs = LAY_OFS_0; in ltdc_get_caps()
1801 ldev->caps.layer_regs = ltdc_layer_regs_a0; in ltdc_get_caps()
1802 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a0; in ltdc_get_caps()
1803 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a0; in ltdc_get_caps()
1804 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a0); in ltdc_get_caps()
1805 ldev->caps.pix_fmt_flex = false; in ltdc_get_caps()
1813 ldev->caps.non_alpha_only_l1 = true; in ltdc_get_caps()
1814 ldev->caps.pad_max_freq_hz = 90000000; in ltdc_get_caps()
1815 if (ldev->caps.hw_version == HWVER_10200) in ltdc_get_caps()
1816 ldev->caps.pad_max_freq_hz = 65000000; in ltdc_get_caps()
1817 ldev->caps.nb_irq = 2; in ltdc_get_caps()
1818 ldev->caps.ycbcr_input = false; in ltdc_get_caps()
1819 ldev->caps.ycbcr_output = false; in ltdc_get_caps()
1820 ldev->caps.plane_reg_shadow = false; in ltdc_get_caps()
1821 ldev->caps.crc = false; in ltdc_get_caps()
1822 ldev->caps.dynamic_zorder = false; in ltdc_get_caps()
1823 ldev->caps.plane_rotation = false; in ltdc_get_caps()
1824 ldev->caps.fifo_threshold = false; in ltdc_get_caps()
1827 ldev->caps.layer_ofs = LAY_OFS_0; in ltdc_get_caps()
1828 ldev->caps.layer_regs = ltdc_layer_regs_a1; in ltdc_get_caps()
1829 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a1; in ltdc_get_caps()
1830 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a1; in ltdc_get_caps()
1831 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a1); in ltdc_get_caps()
1832 ldev->caps.pix_fmt_flex = false; in ltdc_get_caps()
1833 ldev->caps.non_alpha_only_l1 = false; in ltdc_get_caps()
1834 ldev->caps.pad_max_freq_hz = 150000000; in ltdc_get_caps()
1835 ldev->caps.nb_irq = 4; in ltdc_get_caps()
1836 ldev->caps.ycbcr_input = false; in ltdc_get_caps()
1837 ldev->caps.ycbcr_output = false; in ltdc_get_caps()
1838 ldev->caps.plane_reg_shadow = false; in ltdc_get_caps()
1839 ldev->caps.crc = false; in ltdc_get_caps()
1840 ldev->caps.dynamic_zorder = false; in ltdc_get_caps()
1841 ldev->caps.plane_rotation = false; in ltdc_get_caps()
1842 ldev->caps.fifo_threshold = false; in ltdc_get_caps()
1845 ldev->caps.layer_ofs = LAY_OFS_1; in ltdc_get_caps()
1846 ldev->caps.layer_regs = ltdc_layer_regs_a2; in ltdc_get_caps()
1847 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a2; in ltdc_get_caps()
1848 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a2; in ltdc_get_caps()
1849 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a2); in ltdc_get_caps()
1850 ldev->caps.pix_fmt_flex = true; in ltdc_get_caps()
1851 ldev->caps.non_alpha_only_l1 = false; in ltdc_get_caps()
1852 ldev->caps.pad_max_freq_hz = 90000000; in ltdc_get_caps()
1853 ldev->caps.nb_irq = 2; in ltdc_get_caps()
1854 ldev->caps.ycbcr_input = true; in ltdc_get_caps()
1855 ldev->caps.ycbcr_output = true; in ltdc_get_caps()
1856 ldev->caps.plane_reg_shadow = true; in ltdc_get_caps()
1857 ldev->caps.crc = true; in ltdc_get_caps()
1858 ldev->caps.dynamic_zorder = true; in ltdc_get_caps()
1859 ldev->caps.plane_rotation = true; in ltdc_get_caps()
1860 ldev->caps.fifo_threshold = true; in ltdc_get_caps()
1987 ldev->caps.hw_version); in ltdc_load()
1994 DRM_DEBUG_DRIVER("ltdc hw version 0x%08x\n", ldev->caps.hw_version); in ltdc_load()
2002 for (i = 0; i < ldev->caps.nb_irq; i++) { in ltdc_load()