Lines Matching refs: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 */
791 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_enable()
809 for (layer_index = 0; layer_index < ldev->caps.nb_layers; layer_index++) in ltdc_crtc_atomic_disable()
817 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_disable()
847 if (result > ldev->caps.pad_max_freq_hz) in ltdc_crtc_mode_valid()
1003 if (ldev->caps.ycbcr_output) { in ltdc_crtc_mode_set_nofb()
1045 if (!ldev->caps.plane_reg_shadow) in ltdc_crtc_atomic_flush()
1311 if (ldev->caps.pix_fmt_hw[val] == pf) in ltdc_plane_atomic_update()
1315 if (ldev->caps.pix_fmt_flex && val == NB_PF) in ltdc_plane_atomic_update()
1335 if (ldev->caps.non_alpha_only_l1 && in ltdc_plane_atomic_update()
1339 if (ldev->caps.dynamic_zorder) { in ltdc_plane_atomic_update()
1362 (x1 - x0 + 1) + (ldev->caps.bus_width >> 3) - 1; in ltdc_plane_atomic_update()
1377 if (ldev->caps.ycbcr_input) { in ltdc_plane_atomic_update()
1446 (ldev->caps.bus_width >> 3) - 1; in ltdc_plane_atomic_update()
1479 if (ldev->caps.plane_reg_shadow) in ltdc_plane_atomic_update()
1491 if (ldev->caps.fifo_threshold) { in ltdc_plane_atomic_update()
1520 if (ldev->caps.plane_reg_shadow) in ltdc_plane_atomic_disable()
1578 formats = devm_kzalloc(dev, (ldev->caps.pix_fmt_nb + in ltdc_plane_create()
1586 for (i = 0; i < ldev->caps.pix_fmt_nb; i++) { in ltdc_plane_create()
1587 drm_fmt = ldev->caps.pix_fmt_drm[i]; in ltdc_plane_create()
1590 if (ldev->caps.non_alpha_only_l1) in ltdc_plane_create()
1599 if (ldev->caps.ycbcr_input) { in ltdc_plane_create()
1624 if (ldev->caps.ycbcr_input) { in ltdc_plane_create()
1658 if (ldev->caps.dynamic_zorder) in ltdc_crtc_init()
1659 drm_plane_create_zpos_property(primary, 0, 0, ldev->caps.nb_layers - 1); in ltdc_crtc_init()
1663 if (ldev->caps.plane_rotation) in ltdc_crtc_init()
1668 if (ldev->caps.crc) in ltdc_crtc_init()
1687 for (i = 1; i < ldev->caps.nb_layers; i++) { in ltdc_crtc_init()
1693 if (ldev->caps.dynamic_zorder) in ltdc_crtc_init()
1694 drm_plane_create_zpos_property(overlay, i, 0, ldev->caps.nb_layers - 1); in ltdc_crtc_init()
1698 if (ldev->caps.plane_rotation) in ltdc_crtc_init()
1728 if (ldev->caps.fifo_threshold) in ltdc_encoder_enable()
1793 ldev->caps.nb_layers = clamp((int)lcr, 1, LTDC_MAX_LAYER); in ltdc_get_caps()
1798 ldev->caps.bus_width = 8 << bus_width_log2; in ltdc_get_caps()
1799 regmap_read(ldev->regmap, LTDC_IDR, &ldev->caps.hw_version); in ltdc_get_caps()
1801 switch (ldev->caps.hw_version) { in ltdc_get_caps()
1804 ldev->caps.layer_ofs = LAY_OFS_0; in ltdc_get_caps()
1805 ldev->caps.layer_regs = ltdc_layer_regs_a0; in ltdc_get_caps()
1806 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a0; in ltdc_get_caps()
1807 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a0; in ltdc_get_caps()
1808 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a0); in ltdc_get_caps()
1809 ldev->caps.pix_fmt_flex = false; in ltdc_get_caps()
1817 ldev->caps.non_alpha_only_l1 = true; in ltdc_get_caps()
1818 ldev->caps.pad_max_freq_hz = 90000000; in ltdc_get_caps()
1819 if (ldev->caps.hw_version == HWVER_10200) in ltdc_get_caps()
1820 ldev->caps.pad_max_freq_hz = 65000000; in ltdc_get_caps()
1821 ldev->caps.nb_irq = 2; in ltdc_get_caps()
1822 ldev->caps.ycbcr_input = false; in ltdc_get_caps()
1823 ldev->caps.ycbcr_output = false; in ltdc_get_caps()
1824 ldev->caps.plane_reg_shadow = false; in ltdc_get_caps()
1825 ldev->caps.crc = false; in ltdc_get_caps()
1826 ldev->caps.dynamic_zorder = false; in ltdc_get_caps()
1827 ldev->caps.plane_rotation = false; in ltdc_get_caps()
1828 ldev->caps.fifo_threshold = false; in ltdc_get_caps()
1831 ldev->caps.layer_ofs = LAY_OFS_0; in ltdc_get_caps()
1832 ldev->caps.layer_regs = ltdc_layer_regs_a1; in ltdc_get_caps()
1833 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a1; in ltdc_get_caps()
1834 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a1; in ltdc_get_caps()
1835 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a1); in ltdc_get_caps()
1836 ldev->caps.pix_fmt_flex = false; in ltdc_get_caps()
1837 ldev->caps.non_alpha_only_l1 = false; in ltdc_get_caps()
1838 ldev->caps.pad_max_freq_hz = 150000000; in ltdc_get_caps()
1839 ldev->caps.nb_irq = 4; in ltdc_get_caps()
1840 ldev->caps.ycbcr_input = false; in ltdc_get_caps()
1841 ldev->caps.ycbcr_output = false; in ltdc_get_caps()
1842 ldev->caps.plane_reg_shadow = false; in ltdc_get_caps()
1843 ldev->caps.crc = false; in ltdc_get_caps()
1844 ldev->caps.dynamic_zorder = false; in ltdc_get_caps()
1845 ldev->caps.plane_rotation = false; in ltdc_get_caps()
1846 ldev->caps.fifo_threshold = false; in ltdc_get_caps()
1849 ldev->caps.layer_ofs = LAY_OFS_1; in ltdc_get_caps()
1850 ldev->caps.layer_regs = ltdc_layer_regs_a2; in ltdc_get_caps()
1851 ldev->caps.pix_fmt_hw = ltdc_pix_fmt_a2; in ltdc_get_caps()
1852 ldev->caps.pix_fmt_drm = ltdc_drm_fmt_a2; in ltdc_get_caps()
1853 ldev->caps.pix_fmt_nb = ARRAY_SIZE(ltdc_drm_fmt_a2); in ltdc_get_caps()
1854 ldev->caps.pix_fmt_flex = true; in ltdc_get_caps()
1855 ldev->caps.non_alpha_only_l1 = false; in ltdc_get_caps()
1856 ldev->caps.pad_max_freq_hz = 90000000; in ltdc_get_caps()
1857 ldev->caps.nb_irq = 2; in ltdc_get_caps()
1858 ldev->caps.ycbcr_input = true; in ltdc_get_caps()
1859 ldev->caps.ycbcr_output = true; in ltdc_get_caps()
1860 ldev->caps.plane_reg_shadow = true; in ltdc_get_caps()
1861 ldev->caps.crc = true; in ltdc_get_caps()
1862 ldev->caps.dynamic_zorder = true; in ltdc_get_caps()
1863 ldev->caps.plane_rotation = true; in ltdc_get_caps()
1864 ldev->caps.fifo_threshold = true; in ltdc_get_caps()
1991 ldev->caps.hw_version); in ltdc_load()
1996 if (ldev->caps.fifo_threshold) in ltdc_load()
2003 DRM_DEBUG_DRIVER("ltdc hw version 0x%08x\n", ldev->caps.hw_version); in ltdc_load()
2011 for (i = 0; i < ldev->caps.nb_irq; i++) { in ltdc_load()