hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/include/edid.h
....@@ -882,6 +882,38 @@
882882 u32 fps;
883883 };
884884
885
+struct csc_info {
886
+ u16 hue;
887
+ u16 saturation;
888
+ u16 contrast;
889
+ u16 brightness;
890
+ u16 r_gain;
891
+ u16 g_gain;
892
+ u16 b_gain;
893
+ u16 r_offset;
894
+ u16 g_offset;
895
+ u16 b_offset;
896
+ u16 csc_enable;
897
+};
898
+
899
+
900
+#define ACM_GAIN_LUT_HY_LENGTH (9*17)
901
+#define ACM_GAIN_LUT_HY_TOTAL_LENGTH (ACM_GAIN_LUT_HY_LENGTH * 3)
902
+#define ACM_GAIN_LUT_HS_LENGTH (13*17)
903
+#define ACM_GAIN_LUT_HS_TOTAL_LENGTH (ACM_GAIN_LUT_HS_LENGTH * 3)
904
+#define ACM_DELTA_LUT_H_LENGTH 65
905
+#define ACM_DELTA_LUT_H_TOTAL_LENGTH (ACM_DELTA_LUT_H_LENGTH * 3)
906
+
907
+struct acm_data {
908
+ s16 delta_lut_h[ACM_DELTA_LUT_H_TOTAL_LENGTH];
909
+ s16 gain_lut_hy[ACM_GAIN_LUT_HY_TOTAL_LENGTH];
910
+ s16 gain_lut_hs[ACM_GAIN_LUT_HS_TOTAL_LENGTH];
911
+ u16 y_gain;
912
+ u16 h_gain;
913
+ u16 s_gain;
914
+ u16 acm_enable;
915
+};
916
+
885917 struct base2_disp_info {
886918 char disp_head_flag[6];
887919 struct base2_screen_info screen_info[4];
....@@ -890,8 +922,15 @@
890922 struct base2_gamma_lut_data gamma_lut_data;
891923 struct base2_cubic_lut_data cubic_lut_data;
892924 struct framebuffer_info framebuffer_info;
893
- u32 reserved[244];
925
+ u32 cacm_header;
926
+ u32 reserved[243];
894927 u32 crc;
928
+ /* baseparameter version 3.0 add */
929
+ struct csc_info csc_info;
930
+ struct acm_data acm_data;
931
+ u8 resv2[10*1024]; /* */
932
+ u32 crc2;
933
+ /* baseparameter version 3.0 add */
895934 };
896935
897936 struct base2_disp_header {