forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
....@@ -806,12 +806,12 @@
806806 init->offset += 3;
807807
808808 switch (cond) {
809
- case 0:
809
+ case 0: /* CONDITION_ID_INT_DP. */
810810 if (init_conn(init) != DCB_CONNECTOR_eDP)
811811 init_exec_set(init, false);
812812 break;
813
- case 1:
814
- case 2:
813
+ case 1: /* CONDITION_ID_USE_SPPLL0. */
814
+ case 2: /* CONDITION_ID_USE_SPPLL1. */
815815 if ( init->outp &&
816816 (data = nvbios_dpout_match(bios, DCB_OUTPUT_DP,
817817 (init->outp->or << 0) |
....@@ -826,12 +826,15 @@
826826 if (init_exec(init))
827827 warn("script needs dp output table data\n");
828828 break;
829
- case 5:
829
+ case 5: /* CONDITION_ID_ASSR_SUPPORT. */
830830 if (!(init_rdauxr(init, 0x0d) & 1))
831831 init_exec_set(init, false);
832832 break;
833
+ case 7: /* CONDITION_ID_NO_PANEL_SEQ_DELAYS. */
834
+ init_exec_set(init, false);
835
+ break;
833836 default:
834
- warn("INIT_GENERIC_CONDITON: unknown 0x%02x\n", cond);
837
+ warn("INIT_GENERIC_CONDITION: unknown 0x%02x\n", cond);
835838 init->offset += size;
836839 break;
837840 }
....@@ -1932,6 +1935,28 @@
19321935 }
19331936
19341937 /**
1938
+ * INIT_RESET_BEGUN - opcode 0x8c
1939
+ *
1940
+ */
1941
+static void
1942
+init_reset_begun(struct nvbios_init *init)
1943
+{
1944
+ trace("RESET_BEGUN\n");
1945
+ init->offset += 1;
1946
+}
1947
+
1948
+/**
1949
+ * INIT_RESET_END - opcode 0x8d
1950
+ *
1951
+ */
1952
+static void
1953
+init_reset_end(struct nvbios_init *init)
1954
+{
1955
+ trace("RESET_END\n");
1956
+ init->offset += 1;
1957
+}
1958
+
1959
+/**
19351960 * INIT_GPIO - opcode 0x8e
19361961 *
19371962 */
....@@ -2257,8 +2282,8 @@
22572282 [0x79] = { init_pll },
22582283 [0x7a] = { init_zm_reg },
22592284 [0x87] = { init_ram_restrict_pll },
2260
- [0x8c] = { init_reserved },
2261
- [0x8d] = { init_reserved },
2285
+ [0x8c] = { init_reset_begun },
2286
+ [0x8d] = { init_reset_end },
22622287 [0x8e] = { init_gpio },
22632288 [0x8f] = { init_ram_restrict_zm_reg_group },
22642289 [0x90] = { init_copy_zm_reg },