Lines Matching +full:1 +full:- +full:bit

1 // SPDX-License-Identifier: GPL-2.0+
3 * R-Car Display Unit DRM driver
5 * Copyright (C) 2013-2015 Renesas Electronics Corporation
11 #include <linux/dma-mapping.h>
31 /* -----------------------------------------------------------------------------
41 .channels_mask = BIT(1) | BIT(0),
47 .possible_crtcs = BIT(1) | BIT(0),
51 .possible_crtcs = BIT(0),
52 .port = 1,
55 .num_lvds = 1,
65 .channels_mask = BIT(1) | BIT(0),
71 .possible_crtcs = BIT(0),
75 .possible_crtcs = BIT(1),
76 .port = 1,
88 .channels_mask = BIT(1) | BIT(0),
95 .possible_crtcs = BIT(0),
99 .possible_crtcs = BIT(1),
100 .port = 1,
103 .possible_crtcs = BIT(0) | BIT(1),
117 .channels_mask = BIT(2) | BIT(1) | BIT(0),
124 .possible_crtcs = BIT(2),
128 .possible_crtcs = BIT(1),
129 .port = 1,
132 .possible_crtcs = BIT(0),
136 .num_lvds = 1,
138 .dpll_mask = BIT(1),
148 .channels_mask = BIT(3) | BIT(1) | BIT(0),
155 .possible_crtcs = BIT(2),
159 .possible_crtcs = BIT(1),
160 .port = 1,
163 .possible_crtcs = BIT(0),
167 .num_lvds = 1,
169 .dpll_mask = BIT(1),
177 .channels_mask = BIT(1) | BIT(0),
183 .possible_crtcs = BIT(0) | BIT(1),
187 .possible_crtcs = BIT(0),
188 .port = 1,
191 .possible_crtcs = BIT(1),
197 .lvds_clk_mask = BIT(1) | BIT(0),
207 .channels_mask = BIT(3) | BIT(1) | BIT(0),
214 .possible_crtcs = BIT(2),
218 .possible_crtcs = BIT(1),
219 .port = 1,
222 .possible_crtcs = BIT(0),
226 .num_lvds = 1,
228 .dpll_mask = BIT(1),
232 .gen = 1,
235 .channels_mask = BIT(1) | BIT(0),
242 .possible_crtcs = BIT(0),
246 .possible_crtcs = BIT(1) | BIT(0),
247 .port = 1,
259 .channels_mask = BIT(2) | BIT(1) | BIT(0),
267 .possible_crtcs = BIT(2) | BIT(1) | BIT(0),
271 .possible_crtcs = BIT(0),
272 .port = 1,
275 .possible_crtcs = BIT(2) | BIT(1),
283 /* M2-W (r8a7791) and M2-N (r8a7793) are identical */
290 .channels_mask = BIT(1) | BIT(0),
297 .possible_crtcs = BIT(1) | BIT(0),
301 .possible_crtcs = BIT(0),
302 .port = 1,
305 .num_lvds = 1,
315 .channels_mask = BIT(1) | BIT(0),
319 .possible_crtcs = BIT(0),
323 .possible_crtcs = BIT(1),
324 .port = 1,
336 .channels_mask = BIT(1) | BIT(0),
343 .possible_crtcs = BIT(0),
347 .possible_crtcs = BIT(1),
348 .port = 1,
361 .channels_mask = BIT(3) | BIT(2) | BIT(1) | BIT(0),
368 .possible_crtcs = BIT(3),
372 .possible_crtcs = BIT(1),
373 .port = 1,
376 .possible_crtcs = BIT(2),
380 .possible_crtcs = BIT(0),
384 .num_lvds = 1,
386 .dpll_mask = BIT(2) | BIT(1),
396 .channels_mask = BIT(2) | BIT(1) | BIT(0),
403 .possible_crtcs = BIT(2),
407 .possible_crtcs = BIT(1),
408 .port = 1,
411 .possible_crtcs = BIT(0),
415 .num_lvds = 1,
417 .dpll_mask = BIT(1),
427 .channels_mask = BIT(3) | BIT(1) | BIT(0),
434 .possible_crtcs = BIT(2),
438 .possible_crtcs = BIT(1),
439 .port = 1,
442 .possible_crtcs = BIT(0),
446 .num_lvds = 1,
448 .dpll_mask = BIT(1),
458 .channels_mask = BIT(0),
465 .possible_crtcs = BIT(0),
469 .possible_crtcs = BIT(0),
470 .port = 1,
473 .num_lvds = 1,
482 .channels_mask = BIT(1) | BIT(0),
489 .possible_crtcs = BIT(0) | BIT(1),
493 .possible_crtcs = BIT(0),
494 .port = 1,
497 .possible_crtcs = BIT(1),
503 .lvds_clk_mask = BIT(1) | BIT(0),
511 .channels_mask = BIT(1) | BIT(0),
515 .possible_crtcs = BIT(0),
519 .possible_crtcs = BIT(1),
520 .port = 1,
524 .dsi_clk_mask = BIT(1) | BIT(0),
532 .channels_mask = BIT(1) | BIT(0),
536 .possible_crtcs = BIT(0),
540 .possible_crtcs = BIT(1),
541 .port = 1,
545 .dsi_clk_mask = BIT(1) | BIT(0),
549 { .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info },
550 { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
551 { .compatible = "renesas,du-r8a7744", .data = &rzg1_du_r8a7743_info },
552 { .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },
553 { .compatible = "renesas,du-r8a77470", .data = &rzg1_du_r8a77470_info },
554 { .compatible = "renesas,du-r8a774a1", .data = &rcar_du_r8a774a1_info },
555 { .compatible = "renesas,du-r8a774b1", .data = &rcar_du_r8a774b1_info },
556 { .compatible = "renesas,du-r8a774c0", .data = &rcar_du_r8a774c0_info },
557 { .compatible = "renesas,du-r8a774e1", .data = &rcar_du_r8a774e1_info },
558 { .compatible = "renesas,du-r8a7779", .data = &rcar_du_r8a7779_info },
559 { .compatible = "renesas,du-r8a7790", .data = &rcar_du_r8a7790_info },
560 { .compatible = "renesas,du-r8a7791", .data = &rcar_du_r8a7791_info },
561 { .compatible = "renesas,du-r8a7792", .data = &rcar_du_r8a7792_info },
562 { .compatible = "renesas,du-r8a7793", .data = &rcar_du_r8a7791_info },
563 { .compatible = "renesas,du-r8a7794", .data = &rcar_du_r8a7794_info },
564 { .compatible = "renesas,du-r8a7795", .data = &rcar_du_r8a7795_info },
565 { .compatible = "renesas,du-r8a7796", .data = &rcar_du_r8a7796_info },
566 { .compatible = "renesas,du-r8a77961", .data = &rcar_du_r8a7796_info },
567 { .compatible = "renesas,du-r8a77965", .data = &rcar_du_r8a77965_info },
568 { .compatible = "renesas,du-r8a77970", .data = &rcar_du_r8a77970_info },
569 { .compatible = "renesas,du-r8a77980", .data = &rcar_du_r8a77970_info },
570 { .compatible = "renesas,du-r8a77990", .data = &rcar_du_r8a7799x_info },
571 { .compatible = "renesas,du-r8a77995", .data = &rcar_du_r8a7799x_info },
572 { .compatible = "renesas,du-r8a779a0", .data = &rcar_du_r8a779a0_info },
573 { .compatible = "renesas,du-r8a779g0", .data = &rcar_du_r8a779g0_info },
599 /* -----------------------------------------------------------------------------
610 .name = "rcar-du",
611 .desc = "Renesas R-Car Display Unit",
613 .major = 1,
617 /* -----------------------------------------------------------------------------
625 return drm_mode_config_helper_suspend(&rcdu->ddev); in rcar_du_pm_suspend()
632 return drm_mode_config_helper_resume(&rcdu->ddev); in rcar_du_pm_resume()
638 /* -----------------------------------------------------------------------------
645 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove()
657 drm_atomic_helper_shutdown(&rcdu->ddev); in rcar_du_shutdown()
667 return -ENODEV; in rcar_du_probe()
669 /* Allocate and initialize the R-Car device structure. */ in rcar_du_probe()
670 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver, in rcar_du_probe()
675 rcdu->dev = &pdev->dev; in rcar_du_probe()
677 rcdu->info = of_device_get_match_data(rcdu->dev); in rcar_du_probe()
682 rcdu->mmio = devm_platform_ioremap_resource(pdev, 0); in rcar_du_probe()
683 if (IS_ERR(rcdu->mmio)) in rcar_du_probe()
684 return PTR_ERR(rcdu->mmio); in rcar_du_probe()
687 * Set the DMA coherent mask to reflect the DU 32-bit DMA address space in rcar_du_probe()
692 ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(mask)); in rcar_du_probe()
703 if (ret != -EPROBE_DEFER) in rcar_du_probe()
704 dev_err(&pdev->dev, in rcar_du_probe()
713 ret = drm_dev_register(&rcdu->ddev, 0); in rcar_du_probe()
717 drm_info(&rcdu->ddev, "Device %s probed\n", dev_name(&pdev->dev)); in rcar_du_probe()
719 drm_fbdev_dma_setup(&rcdu->ddev, 32); in rcar_du_probe()
724 drm_kms_helper_poll_fini(&rcdu->ddev); in rcar_du_probe()
733 .name = "rcar-du",
742 MODULE_DESCRIPTION("Renesas R-Car Display Unit DRM Driver");