Maxime Ripard
277b51a1d7
drm/vc4: crtc: Assign output to channel automatically
...
The HVS found in the BCM2711 has 6 outputs and 3 FIFOs, with each output
being connected to a pixelvalve, and some muxing between the FIFOs and
outputs.
Any output cannot feed from any FIFO though, and they all have a bunch of
constraints.
In order to support this, let's store the possible FIFOs each output can be
assigned to in the vc4_crtc_data, and use that information at atomic_check
time to iterate over all the CRTCs enabled and assign them FIFOs.
The channel assigned is then set in the vc4_crtc_state so that the rest of
the driver can use it.
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2020-05-20 13:49:49 +01:00
..
2020-04-21 09:06:43 +02:00
2019-11-14 09:28:46 +10:00
2019-12-20 15:23:51 +00:00
2019-08-14 18:31:10 +02:00
2019-08-14 19:27:26 +02:00
2019-10-17 13:59:16 +02:00
2020-02-11 04:37:05 -08:00
2020-04-08 09:09:57 +02:00
2020-04-17 16:12:18 +02:00
2019-10-24 13:55:56 +02:00
2020-04-17 16:12:14 +02:00
2020-04-01 10:59:59 +02:00
2019-08-28 22:11:03 +02:00
2020-02-24 08:37:59 +01:00
2020-03-12 07:18:41 +01:00
2019-10-21 14:23:25 +02:00
2019-10-04 17:04:05 +01:00
2020-04-21 09:06:43 +02:00
2019-10-03 16:38:50 +02:00
2020-02-24 08:38:15 +01:00
2019-10-17 23:42:02 +08:00
2019-12-09 17:13:19 +10:00
2020-03-25 08:26:53 +01:00
2019-12-12 13:12:17 +10:00
2019-06-30 09:48:05 +02:00
2019-12-06 16:05:09 +01:00
2020-03-12 07:18:25 +01:00
2019-10-14 22:19:32 +02:00
2020-02-28 17:23:37 +01:00
2019-12-04 19:11:28 +02:00
2020-02-24 08:38:11 +01:00
2020-03-12 07:18:40 +01:00
2019-10-24 13:55:56 +02:00
2020-02-24 08:37:59 +01:00
2019-07-17 12:52:55 +02:00
2020-04-01 11:00:10 +02:00
2020-02-24 08:38:00 +01:00
2020-01-13 14:31:59 +01:00
2019-06-05 20:31:04 +02:00
2020-04-17 16:11:50 +02:00
2020-05-20 13:49:41 +01:00
2019-07-15 18:11:31 +02:00
2019-06-05 20:29:57 +02:00
2019-09-16 15:14:43 +02:00
2019-09-16 15:14:10 +02:00
2020-03-12 07:18:41 +01:00
2019-07-17 12:52:55 +02:00
2020-02-11 04:37:14 -08:00
2019-10-11 09:30:53 +10:00
2019-10-17 13:59:16 +02:00
2020-03-12 07:18:41 +01:00
2019-09-08 19:04:23 +02:00
2019-09-16 15:13:02 -07:00
2020-05-20 13:49:43 +01:00
2020-04-17 16:12:14 +02:00
2020-05-20 13:49:49 +01:00
2020-02-19 19:54:07 +01:00
2019-09-24 15:54:08 -07:00
2020-03-12 07:18:39 +01:00
2019-10-10 15:45:35 +02:00
2020-02-24 08:38:30 +01:00
2019-10-24 13:55:56 +02:00
2019-07-22 21:24:10 +02:00
2019-07-19 23:24:16 +02:00
2019-07-16 11:25:02 +02:00
2019-11-14 05:53:10 +10:00
2019-09-18 18:43:36 +02:00
2019-10-03 16:38:50 +02:00
2019-09-23 15:31:53 +08:00
2019-05-27 18:07:03 +02:00
2019-10-09 20:04:55 +02:00
2019-06-13 13:00:29 -04:00
2019-07-15 19:04:27 -07:00
2019-10-25 09:35:06 +02:00
2020-03-25 08:26:59 +01:00
2019-08-01 15:01:29 +02:00
2019-05-27 18:07:03 +02:00
2019-11-27 17:45:48 -08:00
2019-05-27 18:07:03 +02:00
2019-09-16 15:13:02 -07:00
2019-10-03 16:38:50 +02:00
2019-06-08 16:46:37 +02:00
2019-06-13 16:39:16 +02:00
2019-10-08 09:41:06 -04:00
2020-02-24 08:38:24 +01:00
2019-06-14 16:59:51 +02:00
2019-07-16 11:25:02 +02:00
2019-07-25 16:39:35 -04:00
2019-10-08 18:29:00 +02:00
2019-05-06 16:00:48 +03:00
2019-10-23 18:22:10 +02:00
2019-09-03 19:30:06 -04:00
2020-04-17 16:12:19 +02:00
2019-10-03 16:38:50 +02:00
2019-09-30 20:15:53 +03:00
2019-08-07 11:56:48 -04:00
2019-10-02 16:28:55 +03:00
2019-10-23 11:14:11 -04:00
2019-08-28 22:11:03 +02:00
2019-05-30 11:26:37 -07:00
2020-01-07 16:54:03 +01:00
2019-06-21 11:48:09 +02:00
2019-05-27 18:07:03 +02:00
2019-05-20 13:35:56 +02:00
2020-05-20 13:49:41 +01:00
2019-07-22 16:04:53 -04:00
2019-06-19 12:07:29 +02:00
2019-08-13 09:09:30 +02:00
2020-03-12 07:18:36 +01:00
2019-11-15 08:00:08 +01:00
2019-10-25 11:40:51 +02:00
2019-11-15 08:00:08 +01:00
2019-05-27 18:07:03 +02:00
2019-08-06 13:18:42 +05:30
2019-06-17 17:37:01 +02:00
2019-07-22 21:24:10 +02:00
2019-09-18 18:42:21 +02:00
2019-05-27 18:07:03 +02:00
2019-08-22 10:41:06 +03:00
2020-03-25 08:27:06 +01:00
2019-07-16 11:25:02 +02:00
2019-05-27 18:06:47 +02:00
2019-07-16 11:25:02 +02:00
2019-09-30 20:16:28 +03:00
2020-02-24 08:38:02 +01:00
2019-07-30 13:07:41 +02:00
2019-10-04 13:43:43 +01:00
2019-10-23 11:00:41 +02:00
2019-09-18 11:27:18 +02:00
2020-05-20 13:49:41 +01:00
2019-07-16 12:21:41 -07:00
2019-09-20 15:03:42 -04:00
2019-07-01 16:58:09 +02:00
2019-09-08 19:04:01 +02:00
2020-04-17 16:12:14 +02:00
2019-05-27 18:07:03 +02:00
2019-04-24 11:30:32 +02:00
2020-04-17 16:12:14 +02:00
2019-10-02 16:28:55 +03:00
2019-09-16 15:13:53 -07:00
2019-12-04 19:44:13 -08:00
2020-02-11 04:37:05 -08:00
2019-07-16 11:25:02 +02:00
2019-05-27 18:07:03 +02:00
2019-11-06 13:00:21 -05:00
2019-10-24 13:55:56 +02:00
2019-10-18 12:24:56 +02:00
2019-08-06 13:16:54 +05:30
2019-05-27 18:07:03 +02:00
2019-09-03 09:46:18 +02:00
2019-10-08 18:43:26 -04:00
2019-07-16 11:25:02 +02:00
2019-05-27 18:07:03 +02:00
2019-09-12 19:54:42 +02:00
2019-09-23 15:32:53 +08:00
2019-12-05 11:11:11 +10:00
2019-10-03 16:38:50 +02:00