xref: /linux/drivers/gpu/drm/sti/sti_hqvdp_lut.h (revision 552c69b36ebd966186573b9c7a286b390935cce1)
1*e2842570SBenjamin Gaignard /* SPDX-License-Identifier: GPL-2.0 */
24fdbc678SBenjamin Gaignard /*
34fdbc678SBenjamin Gaignard  * Copyright (C) STMicroelectronics SA 2014
44fdbc678SBenjamin Gaignard  * Authors: Fabien Dessenne <fabien.dessenne@st.com> for STMicroelectronics.
54fdbc678SBenjamin Gaignard  */
64fdbc678SBenjamin Gaignard 
74fdbc678SBenjamin Gaignard #ifndef _STI_HQVDP_LUT_H_
84fdbc678SBenjamin Gaignard #define _STI_HQVDP_LUT_H_
94fdbc678SBenjamin Gaignard 
104fdbc678SBenjamin Gaignard #define NB_COEF                 128
114fdbc678SBenjamin Gaignard 
124fdbc678SBenjamin Gaignard #define SHIFT_LUT_A_LEGACY      8
134fdbc678SBenjamin Gaignard #define SHIFT_LUT_B             8
144fdbc678SBenjamin Gaignard #define SHIFT_LUT_C_Y_LEGACY    8
154fdbc678SBenjamin Gaignard #define SHIFT_LUT_C_C_LEGACY    8
164fdbc678SBenjamin Gaignard #define SHIFT_LUT_D_Y_LEGACY    8
174fdbc678SBenjamin Gaignard #define SHIFT_LUT_D_C_LEGACY    8
184fdbc678SBenjamin Gaignard #define SHIFT_LUT_E_Y_LEGACY    8
194fdbc678SBenjamin Gaignard #define SHIFT_LUT_E_C_LEGACY    8
204fdbc678SBenjamin Gaignard #define SHIFT_LUT_F_Y_LEGACY    8
214fdbc678SBenjamin Gaignard #define SHIFT_LUT_F_C_LEGACY    8
224fdbc678SBenjamin Gaignard 
234fdbc678SBenjamin Gaignard static const u32 coef_lut_a_legacy[NB_COEF] = {
244fdbc678SBenjamin Gaignard 	0x0000ffff, 0x00010000, 0x000100ff, 0x00000000,
254fdbc678SBenjamin Gaignard 	0x00000000, 0x00050000, 0xfffc00ff, 0x00000000,
264fdbc678SBenjamin Gaignard 	0x00000000, 0x00090000, 0xfff900fe, 0x00000000,
274fdbc678SBenjamin Gaignard 	0x00000000, 0x0010ffff, 0xfff600fb, 0x00000000,
284fdbc678SBenjamin Gaignard 	0x00000000, 0x0017fffe, 0xfff400f7, 0x00000000,
294fdbc678SBenjamin Gaignard 	0x00000000, 0x001ffffd, 0xfff200f2, 0x00000000,
304fdbc678SBenjamin Gaignard 	0x00000000, 0x0027fffc, 0xfff100ec, 0x00000000,
314fdbc678SBenjamin Gaignard 	0x00000000, 0x0030fffb, 0xfff000e5, 0x00000000,
324fdbc678SBenjamin Gaignard 	0x00000000, 0x003afffa, 0xffee00de, 0x00000000,
334fdbc678SBenjamin Gaignard 	0x00000000, 0x0044fff9, 0xffed00d6, 0x00000000,
344fdbc678SBenjamin Gaignard 	0x00000000, 0x004efff8, 0xffed00cd, 0x00000000,
354fdbc678SBenjamin Gaignard 	0x00000000, 0x0059fff6, 0xffed00c4, 0x00000000,
364fdbc678SBenjamin Gaignard 	0x00000000, 0x0064fff5, 0xffed00ba, 0x00000000,
374fdbc678SBenjamin Gaignard 	0x00000000, 0x006ffff3, 0xffee00b0, 0x00000000,
384fdbc678SBenjamin Gaignard 	0x00000000, 0x007afff2, 0xffee00a6, 0x00000000,
394fdbc678SBenjamin Gaignard 	0x00000000, 0x0085fff1, 0xffef009b, 0x00000000,
404fdbc678SBenjamin Gaignard 	0x00000000, 0x0090fff0, 0xfff00090, 0x00000000,
414fdbc678SBenjamin Gaignard 	0x00000000, 0x009bffef, 0xfff10085, 0x00000000,
424fdbc678SBenjamin Gaignard 	0x00000000, 0x00a6ffee, 0xfff2007a, 0x00000000,
434fdbc678SBenjamin Gaignard 	0x00000000, 0x00b0ffee, 0xfff3006f, 0x00000000,
444fdbc678SBenjamin Gaignard 	0x00000000, 0x00baffed, 0xfff50064, 0x00000000,
454fdbc678SBenjamin Gaignard 	0x00000000, 0x00c4ffed, 0xfff60059, 0x00000000,
464fdbc678SBenjamin Gaignard 	0x00000000, 0x00cdffed, 0xfff8004e, 0x00000000,
474fdbc678SBenjamin Gaignard 	0x00000000, 0x00d6ffed, 0xfff90044, 0x00000000,
484fdbc678SBenjamin Gaignard 	0x00000000, 0x00deffee, 0xfffa003a, 0x00000000,
494fdbc678SBenjamin Gaignard 	0x00000000, 0x00e5fff0, 0xfffb0030, 0x00000000,
504fdbc678SBenjamin Gaignard 	0x00000000, 0x00ecfff1, 0xfffc0027, 0x00000000,
514fdbc678SBenjamin Gaignard 	0x00000000, 0x00f2fff2, 0xfffd001f, 0x00000000,
524fdbc678SBenjamin Gaignard 	0x00000000, 0x00f7fff4, 0xfffe0017, 0x00000000,
534fdbc678SBenjamin Gaignard 	0x00000000, 0x00fbfff6, 0xffff0010, 0x00000000,
544fdbc678SBenjamin Gaignard 	0x00000000, 0x00fefff9, 0x00000009, 0x00000000,
554fdbc678SBenjamin Gaignard 	0x00000000, 0x00fffffc, 0x00000005, 0x00000000
564fdbc678SBenjamin Gaignard };
574fdbc678SBenjamin Gaignard 
584fdbc678SBenjamin Gaignard static const u32 coef_lut_b[NB_COEF] = {
594fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
604fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
614fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
624fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
634fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
644fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
654fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
664fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
674fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
684fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
694fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
704fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
714fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
724fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
734fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
744fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
754fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
764fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
774fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
784fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
794fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
804fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
814fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
824fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
834fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
844fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
854fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
864fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
874fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
884fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
894fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000,
904fdbc678SBenjamin Gaignard 	0x00000000, 0x00000000, 0x00000100, 0x00000000
914fdbc678SBenjamin Gaignard };
924fdbc678SBenjamin Gaignard 
934fdbc678SBenjamin Gaignard static const u32 coef_lut_c_y_legacy[NB_COEF] = {
944fdbc678SBenjamin Gaignard 	0x00060004, 0x0038ffe1, 0x003800be, 0x0006ffe1,
954fdbc678SBenjamin Gaignard 	0x00050005, 0x0042ffe1, 0x003800b3, 0x0007ffe1,
964fdbc678SBenjamin Gaignard 	0x00040006, 0x0046ffe1, 0x003300b2, 0x0008ffe2,
974fdbc678SBenjamin Gaignard 	0x00030007, 0x004cffe1, 0x002e00b1, 0x0008ffe2,
984fdbc678SBenjamin Gaignard 	0x00020006, 0x0051ffe2, 0x002900b0, 0x0009ffe3,
994fdbc678SBenjamin Gaignard 	0x00010008, 0x0056ffe2, 0x002400ae, 0x0009ffe4,
1004fdbc678SBenjamin Gaignard 	0xffff0008, 0x005cffe3, 0x001f00ad, 0x000affe4,
1014fdbc678SBenjamin Gaignard 	0xfffe0008, 0x0062ffe4, 0x001a00ab, 0x000affe5,
1024fdbc678SBenjamin Gaignard 	0xfffd000a, 0x0066ffe5, 0x001500a8, 0x000bffe6,
1034fdbc678SBenjamin Gaignard 	0xfffc0009, 0x006bffe7, 0x001100a5, 0x000bffe8,
1044fdbc678SBenjamin Gaignard 	0xfffa000a, 0x0070ffe8, 0x000d00a3, 0x000bffe9,
1054fdbc678SBenjamin Gaignard 	0xfff9000b, 0x0076ffea, 0x0008009f, 0x000bffea,
1064fdbc678SBenjamin Gaignard 	0xfff7000b, 0x007affec, 0x0005009b, 0x000cffec,
1074fdbc678SBenjamin Gaignard 	0xfff6000b, 0x007effef, 0x00010098, 0x000cffed,
1084fdbc678SBenjamin Gaignard 	0xfff4000b, 0x0084fff1, 0xfffd0095, 0x000cffee,
1094fdbc678SBenjamin Gaignard 	0xfff3000b, 0x0088fff4, 0xfffa0090, 0x000cfff0,
1104fdbc678SBenjamin Gaignard 	0xfff1000b, 0x008dfff7, 0xfff7008d, 0x000bfff1,
1114fdbc678SBenjamin Gaignard 	0xfff0000c, 0x0090fffa, 0xfff40088, 0x000bfff3,
1124fdbc678SBenjamin Gaignard 	0xffee000c, 0x0095fffd, 0xfff10084, 0x000bfff4,
1134fdbc678SBenjamin Gaignard 	0xffed000c, 0x00980001, 0xffef007e, 0x000bfff6,
1144fdbc678SBenjamin Gaignard 	0xffec000c, 0x009b0005, 0xffec007a, 0x000bfff7,
1154fdbc678SBenjamin Gaignard 	0xffea000b, 0x009f0008, 0xffea0076, 0x000bfff9,
1164fdbc678SBenjamin Gaignard 	0xffe9000b, 0x00a3000d, 0xffe80070, 0x000afffa,
1174fdbc678SBenjamin Gaignard 	0xffe8000b, 0x00a50011, 0xffe7006b, 0x0009fffc,
1184fdbc678SBenjamin Gaignard 	0xffe6000b, 0x00a80015, 0xffe50066, 0x000afffd,
1194fdbc678SBenjamin Gaignard 	0xffe5000a, 0x00ab001a, 0xffe40062, 0x0008fffe,
1204fdbc678SBenjamin Gaignard 	0xffe4000a, 0x00ad001f, 0xffe3005c, 0x0008ffff,
1214fdbc678SBenjamin Gaignard 	0xffe40009, 0x00ae0024, 0xffe20056, 0x00080001,
1224fdbc678SBenjamin Gaignard 	0xffe30009, 0x00b00029, 0xffe20051, 0x00060002,
1234fdbc678SBenjamin Gaignard 	0xffe20008, 0x00b1002e, 0xffe1004c, 0x00070003,
1244fdbc678SBenjamin Gaignard 	0xffe20008, 0x00b20033, 0xffe10046, 0x00060004,
1254fdbc678SBenjamin Gaignard 	0xffe10007, 0x00b30038, 0xffe10042, 0x00050005
1264fdbc678SBenjamin Gaignard };
1274fdbc678SBenjamin Gaignard 
1284fdbc678SBenjamin Gaignard static const u32 coef_lut_c_c_legacy[NB_COEF] = {
1294fdbc678SBenjamin Gaignard 	0x0001fff3, 0x003afffb, 0x003a00a1, 0x0001fffb,
1304fdbc678SBenjamin Gaignard 	0x0001fff5, 0x0041fffb, 0x0038009a, 0x0001fffb,
1314fdbc678SBenjamin Gaignard 	0x0001fff5, 0x0046fffb, 0x00340099, 0x0001fffb,
1324fdbc678SBenjamin Gaignard 	0x0001fff7, 0x0049fffb, 0x00300098, 0x0001fffb,
1334fdbc678SBenjamin Gaignard 	0x0001fff9, 0x004cfffb, 0x002d0096, 0x0001fffb,
1344fdbc678SBenjamin Gaignard 	0x0001fffa, 0x004ffffc, 0x00290095, 0x0001fffb,
1354fdbc678SBenjamin Gaignard 	0x0001fff9, 0x0054fffd, 0x00250093, 0x0001fffc,
1364fdbc678SBenjamin Gaignard 	0x0001fffa, 0x0058fffd, 0x00220092, 0x0000fffc,
1374fdbc678SBenjamin Gaignard 	0x0001fffb, 0x005bfffe, 0x001f0090, 0x0000fffc,
1384fdbc678SBenjamin Gaignard 	0x0001fffd, 0x005effff, 0x001c008c, 0x0000fffd,
1394fdbc678SBenjamin Gaignard 	0x0001fffd, 0x00620000, 0x0019008a, 0x0000fffd,
1404fdbc678SBenjamin Gaignard 	0x0001fffe, 0x00660001, 0x00160088, 0xfffffffd,
1414fdbc678SBenjamin Gaignard 	0x0000fffe, 0x006a0003, 0x00130085, 0xfffffffe,
1424fdbc678SBenjamin Gaignard 	0x0000fffe, 0x006e0004, 0x00100083, 0xfffffffe,
1434fdbc678SBenjamin Gaignard 	0x0000fffe, 0x00710006, 0x000e007f, 0xffffffff,
1444fdbc678SBenjamin Gaignard 	0x0000fffe, 0x00750008, 0x000c007c, 0xfffeffff,
1454fdbc678SBenjamin Gaignard 	0xfffffffe, 0x0079000a, 0x000a0079, 0xfffeffff,
1464fdbc678SBenjamin Gaignard 	0xfffffffe, 0x007c000c, 0x00080075, 0xfffe0000,
1474fdbc678SBenjamin Gaignard 	0xffffffff, 0x007f000e, 0x00060071, 0xfffe0000,
1484fdbc678SBenjamin Gaignard 	0xfffeffff, 0x00830010, 0x0004006e, 0xfffe0000,
1494fdbc678SBenjamin Gaignard 	0xfffeffff, 0x00850013, 0x0003006a, 0xfffe0000,
1504fdbc678SBenjamin Gaignard 	0xfffdffff, 0x00880016, 0x00010066, 0xfffe0001,
1514fdbc678SBenjamin Gaignard 	0xfffd0000, 0x008a0019, 0x00000062, 0xfffd0001,
1524fdbc678SBenjamin Gaignard 	0xfffd0000, 0x008c001c, 0xffff005e, 0xfffd0001,
1534fdbc678SBenjamin Gaignard 	0xfffc0000, 0x0090001f, 0xfffe005b, 0xfffb0001,
1544fdbc678SBenjamin Gaignard 	0xfffc0000, 0x00920022, 0xfffd0058, 0xfffa0001,
1554fdbc678SBenjamin Gaignard 	0xfffc0001, 0x00930025, 0xfffd0054, 0xfff90001,
1564fdbc678SBenjamin Gaignard 	0xfffb0001, 0x00950029, 0xfffc004f, 0xfffa0001,
1574fdbc678SBenjamin Gaignard 	0xfffb0001, 0x0096002d, 0xfffb004c, 0xfff90001,
1584fdbc678SBenjamin Gaignard 	0xfffb0001, 0x00980030, 0xfffb0049, 0xfff70001,
1594fdbc678SBenjamin Gaignard 	0xfffb0001, 0x00990034, 0xfffb0046, 0xfff50001,
1604fdbc678SBenjamin Gaignard 	0xfffb0001, 0x009a0038, 0xfffb0041, 0xfff50001
1614fdbc678SBenjamin Gaignard };
1624fdbc678SBenjamin Gaignard 
1634fdbc678SBenjamin Gaignard static const u32 coef_lut_d_y_legacy[NB_COEF] = {
1644fdbc678SBenjamin Gaignard 	0xfff80009, 0x0046ffec, 0x004600a3, 0xfff8ffec,
1654fdbc678SBenjamin Gaignard 	0xfff70009, 0x004effed, 0x0044009d, 0xfff9ffeb,
1664fdbc678SBenjamin Gaignard 	0xfff6000a, 0x0052ffee, 0x003f009d, 0xfffaffea,
1674fdbc678SBenjamin Gaignard 	0xfff50009, 0x0057ffef, 0x003b009d, 0xfffbffe9,
1684fdbc678SBenjamin Gaignard 	0xfff50008, 0x005bfff0, 0x0037009c, 0xfffcffe9,
1694fdbc678SBenjamin Gaignard 	0xfff40008, 0x005ffff2, 0x0033009b, 0xfffcffe9,
1704fdbc678SBenjamin Gaignard 	0xfff30007, 0x0064fff3, 0x002f009b, 0xfffdffe8,
1714fdbc678SBenjamin Gaignard 	0xfff20007, 0x0068fff5, 0x002b0099, 0xfffeffe8,
1724fdbc678SBenjamin Gaignard 	0xfff10008, 0x006bfff7, 0x00270097, 0xffffffe8,
1734fdbc678SBenjamin Gaignard 	0xfff00007, 0x006ffff9, 0x00230097, 0xffffffe8,
1744fdbc678SBenjamin Gaignard 	0xffef0006, 0x0073fffb, 0x00200095, 0x0000ffe8,
1754fdbc678SBenjamin Gaignard 	0xffee0005, 0x0077fffe, 0x001c0093, 0x0000ffe9,
1764fdbc678SBenjamin Gaignard 	0xffee0005, 0x007a0000, 0x00180091, 0x0001ffe9,
1774fdbc678SBenjamin Gaignard 	0xffed0005, 0x007d0003, 0x0015008e, 0x0002ffe9,
1784fdbc678SBenjamin Gaignard 	0xffec0005, 0x00800006, 0x0012008b, 0x0002ffea,
1794fdbc678SBenjamin Gaignard 	0xffeb0004, 0x00840008, 0x000e008a, 0x0003ffea,
1804fdbc678SBenjamin Gaignard 	0xffeb0003, 0x0087000b, 0x000b0087, 0x0003ffeb,
1814fdbc678SBenjamin Gaignard 	0xffea0003, 0x008a000e, 0x00080084, 0x0004ffeb,
1824fdbc678SBenjamin Gaignard 	0xffea0002, 0x008b0012, 0x00060080, 0x0005ffec,
1834fdbc678SBenjamin Gaignard 	0xffe90002, 0x008e0015, 0x0003007d, 0x0005ffed,
1844fdbc678SBenjamin Gaignard 	0xffe90001, 0x00910018, 0x0000007a, 0x0005ffee,
1854fdbc678SBenjamin Gaignard 	0xffe90000, 0x0093001c, 0xfffe0077, 0x0005ffee,
1864fdbc678SBenjamin Gaignard 	0xffe80000, 0x00950020, 0xfffb0073, 0x0006ffef,
1874fdbc678SBenjamin Gaignard 	0xffe8ffff, 0x00970023, 0xfff9006f, 0x0007fff0,
1884fdbc678SBenjamin Gaignard 	0xffe8ffff, 0x00970027, 0xfff7006b, 0x0008fff1,
1894fdbc678SBenjamin Gaignard 	0xffe8fffe, 0x0099002b, 0xfff50068, 0x0007fff2,
1904fdbc678SBenjamin Gaignard 	0xffe8fffd, 0x009b002f, 0xfff30064, 0x0007fff3,
1914fdbc678SBenjamin Gaignard 	0xffe9fffc, 0x009b0033, 0xfff2005f, 0x0008fff4,
1924fdbc678SBenjamin Gaignard 	0xffe9fffc, 0x009c0037, 0xfff0005b, 0x0008fff5,
1934fdbc678SBenjamin Gaignard 	0xffe9fffb, 0x009d003b, 0xffef0057, 0x0009fff5,
1944fdbc678SBenjamin Gaignard 	0xffeafffa, 0x009d003f, 0xffee0052, 0x000afff6,
1954fdbc678SBenjamin Gaignard 	0xffebfff9, 0x009d0044, 0xffed004e, 0x0009fff7
1964fdbc678SBenjamin Gaignard };
1974fdbc678SBenjamin Gaignard 
1984fdbc678SBenjamin Gaignard static const u32 coef_lut_d_c_legacy[NB_COEF] = {
1994fdbc678SBenjamin Gaignard 	0xfffeffff, 0x003fffff, 0x003f0089, 0xfffeffff,
2004fdbc678SBenjamin Gaignard 	0xfffe0000, 0x00460000, 0x0042007d, 0xfffffffe,
2014fdbc678SBenjamin Gaignard 	0xfffe0000, 0x00490001, 0x003f007d, 0xfffffffd,
2024fdbc678SBenjamin Gaignard 	0xfffd0001, 0x004b0002, 0x003c007d, 0x0000fffc,
2034fdbc678SBenjamin Gaignard 	0xfffd0001, 0x004e0003, 0x0039007c, 0x0000fffc,
2044fdbc678SBenjamin Gaignard 	0xfffc0001, 0x00510005, 0x0036007c, 0x0000fffb,
2054fdbc678SBenjamin Gaignard 	0xfffc0001, 0x00540006, 0x0033007b, 0x0001fffa,
2064fdbc678SBenjamin Gaignard 	0xfffc0003, 0x00550008, 0x00310078, 0x0001fffa,
2074fdbc678SBenjamin Gaignard 	0xfffb0003, 0x00580009, 0x002e0078, 0x0001fffa,
2084fdbc678SBenjamin Gaignard 	0xfffb0002, 0x005b000b, 0x002b0077, 0x0002fff9,
2094fdbc678SBenjamin Gaignard 	0xfffa0003, 0x005e000d, 0x00280075, 0x0002fff9,
2104fdbc678SBenjamin Gaignard 	0xfffa0002, 0x0060000f, 0x00260074, 0x0002fff9,
2114fdbc678SBenjamin Gaignard 	0xfffa0004, 0x00610011, 0x00230072, 0x0002fff9,
2124fdbc678SBenjamin Gaignard 	0xfffa0004, 0x00640013, 0x00200070, 0x0002fff9,
2134fdbc678SBenjamin Gaignard 	0xfff90004, 0x00660015, 0x001e006e, 0x0003fff9,
2144fdbc678SBenjamin Gaignard 	0xfff90004, 0x00680017, 0x001c006c, 0x0003fff9,
2154fdbc678SBenjamin Gaignard 	0xfff90003, 0x006b0019, 0x0019006b, 0x0003fff9,
2164fdbc678SBenjamin Gaignard 	0xfff90003, 0x006c001c, 0x00170068, 0x0004fff9,
2174fdbc678SBenjamin Gaignard 	0xfff90003, 0x006e001e, 0x00150066, 0x0004fff9,
2184fdbc678SBenjamin Gaignard 	0xfff90002, 0x00700020, 0x00130064, 0x0004fffa,
2194fdbc678SBenjamin Gaignard 	0xfff90002, 0x00720023, 0x00110061, 0x0004fffa,
2204fdbc678SBenjamin Gaignard 	0xfff90002, 0x00740026, 0x000f0060, 0x0002fffa,
2214fdbc678SBenjamin Gaignard 	0xfff90002, 0x00750028, 0x000d005e, 0x0003fffa,
2224fdbc678SBenjamin Gaignard 	0xfff90002, 0x0077002b, 0x000b005b, 0x0002fffb,
2234fdbc678SBenjamin Gaignard 	0xfffa0001, 0x0078002e, 0x00090058, 0x0003fffb,
2244fdbc678SBenjamin Gaignard 	0xfffa0001, 0x00780031, 0x00080055, 0x0003fffc,
2254fdbc678SBenjamin Gaignard 	0xfffa0001, 0x007b0033, 0x00060054, 0x0001fffc,
2264fdbc678SBenjamin Gaignard 	0xfffb0000, 0x007c0036, 0x00050051, 0x0001fffc,
2274fdbc678SBenjamin Gaignard 	0xfffc0000, 0x007c0039, 0x0003004e, 0x0001fffd,
2284fdbc678SBenjamin Gaignard 	0xfffc0000, 0x007d003c, 0x0002004b, 0x0001fffd,
2294fdbc678SBenjamin Gaignard 	0xfffdffff, 0x007d003f, 0x00010049, 0x0000fffe,
2304fdbc678SBenjamin Gaignard 	0xfffeffff, 0x007d0042, 0x00000046, 0x0000fffe
2314fdbc678SBenjamin Gaignard };
2324fdbc678SBenjamin Gaignard 
2334fdbc678SBenjamin Gaignard static const u32 coef_lut_e_y_legacy[NB_COEF] = {
2344fdbc678SBenjamin Gaignard 	0xfff10001, 0x00490004, 0x00490083, 0xfff10004,
2354fdbc678SBenjamin Gaignard 	0xfff10000, 0x00500006, 0x004b007b, 0xfff10002,
2364fdbc678SBenjamin Gaignard 	0xfff10000, 0x00530007, 0x0048007b, 0xfff10001,
2374fdbc678SBenjamin Gaignard 	0xfff10000, 0x00550009, 0x0046007a, 0xfff10000,
2384fdbc678SBenjamin Gaignard 	0xfff1fffe, 0x0058000b, 0x0043007b, 0xfff2fffe,
2394fdbc678SBenjamin Gaignard 	0xfff1ffff, 0x005a000d, 0x0040007a, 0xfff2fffd,
2404fdbc678SBenjamin Gaignard 	0xfff1fffd, 0x005d000f, 0x003e007a, 0xfff2fffc,
2414fdbc678SBenjamin Gaignard 	0xfff1fffd, 0x005f0011, 0x003b0079, 0xfff3fffb,
2424fdbc678SBenjamin Gaignard 	0xfff1fffc, 0x00610013, 0x00390079, 0xfff3fffa,
2434fdbc678SBenjamin Gaignard 	0xfff1fffb, 0x00640015, 0x00360079, 0xfff3fff9,
2444fdbc678SBenjamin Gaignard 	0xfff1fffa, 0x00660017, 0x00340078, 0xfff4fff8,
2454fdbc678SBenjamin Gaignard 	0xfff1fffb, 0x00680019, 0x00310077, 0xfff4fff7,
2464fdbc678SBenjamin Gaignard 	0xfff2fff9, 0x006a001b, 0x002f0076, 0xfff5fff6,
2474fdbc678SBenjamin Gaignard 	0xfff2fff9, 0x006c001e, 0x002c0075, 0xfff5fff5,
2484fdbc678SBenjamin Gaignard 	0xfff2fff9, 0x006d0020, 0x002a0073, 0xfff6fff5,
2494fdbc678SBenjamin Gaignard 	0xfff3fff7, 0x00700022, 0x00270073, 0xfff6fff4,
2504fdbc678SBenjamin Gaignard 	0xfff3fff7, 0x00710025, 0x00250071, 0xfff7fff3,
2514fdbc678SBenjamin Gaignard 	0xfff4fff6, 0x00730027, 0x00220070, 0xfff7fff3,
2524fdbc678SBenjamin Gaignard 	0xfff5fff6, 0x0073002a, 0x0020006d, 0xfff9fff2,
2534fdbc678SBenjamin Gaignard 	0xfff5fff5, 0x0075002c, 0x001e006c, 0xfff9fff2,
2544fdbc678SBenjamin Gaignard 	0xfff6fff5, 0x0076002f, 0x001b006a, 0xfff9fff2,
2554fdbc678SBenjamin Gaignard 	0xfff7fff4, 0x00770031, 0x00190068, 0xfffbfff1,
2564fdbc678SBenjamin Gaignard 	0xfff8fff4, 0x00780034, 0x00170066, 0xfffafff1,
2574fdbc678SBenjamin Gaignard 	0xfff9fff3, 0x00790036, 0x00150064, 0xfffbfff1,
2584fdbc678SBenjamin Gaignard 	0xfffafff3, 0x00790039, 0x00130061, 0xfffcfff1,
2594fdbc678SBenjamin Gaignard 	0xfffbfff3, 0x0079003b, 0x0011005f, 0xfffdfff1,
2604fdbc678SBenjamin Gaignard 	0xfffcfff2, 0x007a003e, 0x000f005d, 0xfffdfff1,
2614fdbc678SBenjamin Gaignard 	0xfffdfff2, 0x007a0040, 0x000d005a, 0xfffffff1,
2624fdbc678SBenjamin Gaignard 	0xfffefff2, 0x007b0043, 0x000b0058, 0xfffefff1,
2634fdbc678SBenjamin Gaignard 	0x0000fff1, 0x007a0046, 0x00090055, 0x0000fff1,
2644fdbc678SBenjamin Gaignard 	0x0001fff1, 0x007b0048, 0x00070053, 0x0000fff1,
2654fdbc678SBenjamin Gaignard 	0x0002fff1, 0x007b004b, 0x00060050, 0x0000fff1
2664fdbc678SBenjamin Gaignard };
2674fdbc678SBenjamin Gaignard 
2684fdbc678SBenjamin Gaignard static const u32 coef_lut_e_c_legacy[NB_COEF] = {
2694fdbc678SBenjamin Gaignard 	0xfffa0001, 0x003f0010, 0x003f006d, 0xfffa0010,
2704fdbc678SBenjamin Gaignard 	0xfffb0002, 0x00440011, 0x00440062, 0xfffa000e,
2714fdbc678SBenjamin Gaignard 	0xfffb0001, 0x00460013, 0x00420062, 0xfffa000d,
2724fdbc678SBenjamin Gaignard 	0xfffb0000, 0x00480014, 0x00410062, 0xfffa000c,
2734fdbc678SBenjamin Gaignard 	0xfffb0001, 0x00490015, 0x003f0061, 0xfffb000b,
2744fdbc678SBenjamin Gaignard 	0xfffb0000, 0x004b0017, 0x003d0061, 0xfffb000a,
2754fdbc678SBenjamin Gaignard 	0xfffb0000, 0x004d0018, 0x003b0062, 0xfffb0008,
2764fdbc678SBenjamin Gaignard 	0xfffcffff, 0x004f001a, 0x00390061, 0xfffb0007,
2774fdbc678SBenjamin Gaignard 	0xfffc0000, 0x004f001c, 0x00380060, 0xfffb0006,
2784fdbc678SBenjamin Gaignard 	0xfffcffff, 0x0052001d, 0x00360060, 0xfffb0005,
2794fdbc678SBenjamin Gaignard 	0xfffdfffe, 0x0053001f, 0x00340060, 0xfffb0004,
2804fdbc678SBenjamin Gaignard 	0xfffdfffe, 0x00540021, 0x0032005e, 0xfffc0004,
2814fdbc678SBenjamin Gaignard 	0xfffeffff, 0x00550022, 0x0030005d, 0xfffc0003,
2824fdbc678SBenjamin Gaignard 	0xfffeffff, 0x00560024, 0x002f005c, 0xfffc0002,
2834fdbc678SBenjamin Gaignard 	0xfffffffd, 0x00580026, 0x002d005c, 0xfffc0001,
2844fdbc678SBenjamin Gaignard 	0xfffffffd, 0x005a0027, 0x002b005c, 0xfffc0000,
2854fdbc678SBenjamin Gaignard 	0x0000fffd, 0x005a0029, 0x0029005a, 0xfffd0000,
2864fdbc678SBenjamin Gaignard 	0x0000fffc, 0x005c002b, 0x0027005a, 0xfffdffff,
2874fdbc678SBenjamin Gaignard 	0x0001fffc, 0x005c002d, 0x00260058, 0xfffdffff,
2884fdbc678SBenjamin Gaignard 	0x0002fffc, 0x005c002f, 0x00240056, 0xfffffffe,
2894fdbc678SBenjamin Gaignard 	0x0003fffc, 0x005d0030, 0x00220055, 0xfffffffe,
2904fdbc678SBenjamin Gaignard 	0x0004fffc, 0x005e0032, 0x00210054, 0xfffefffd,
2914fdbc678SBenjamin Gaignard 	0x0004fffb, 0x00600034, 0x001f0053, 0xfffefffd,
2924fdbc678SBenjamin Gaignard 	0x0005fffb, 0x00600036, 0x001d0052, 0xfffffffc,
2934fdbc678SBenjamin Gaignard 	0x0006fffb, 0x00600038, 0x001c004f, 0x0000fffc,
2944fdbc678SBenjamin Gaignard 	0x0007fffb, 0x00610039, 0x001a004f, 0xfffffffc,
2954fdbc678SBenjamin Gaignard 	0x0008fffb, 0x0062003b, 0x0018004d, 0x0000fffb,
2964fdbc678SBenjamin Gaignard 	0x000afffb, 0x0061003d, 0x0017004b, 0x0000fffb,
2974fdbc678SBenjamin Gaignard 	0x000bfffb, 0x0061003f, 0x00150049, 0x0001fffb,
2984fdbc678SBenjamin Gaignard 	0x000cfffa, 0x00620041, 0x00140048, 0x0000fffb,
2994fdbc678SBenjamin Gaignard 	0x000dfffa, 0x00620042, 0x00130046, 0x0001fffb,
3004fdbc678SBenjamin Gaignard 	0x000efffa, 0x00620044, 0x00110044, 0x0002fffb
3014fdbc678SBenjamin Gaignard };
3024fdbc678SBenjamin Gaignard 
3034fdbc678SBenjamin Gaignard static const u32 coef_lut_f_y_legacy[NB_COEF] = {
3044fdbc678SBenjamin Gaignard 	0xfff6fff0, 0x00490012, 0x0049006e, 0xfff60012,
3054fdbc678SBenjamin Gaignard 	0xfff7fff1, 0x004e0013, 0x00490068, 0xfff60010,
3064fdbc678SBenjamin Gaignard 	0xfff7fff2, 0x004f0015, 0x00470067, 0xfff6000f,
3074fdbc678SBenjamin Gaignard 	0xfff7fff5, 0x004f0017, 0x00450065, 0xfff6000e,
3084fdbc678SBenjamin Gaignard 	0xfff8fff5, 0x00500018, 0x00440065, 0xfff6000c,
3094fdbc678SBenjamin Gaignard 	0xfff8fff6, 0x0051001a, 0x00420064, 0xfff6000b,
3104fdbc678SBenjamin Gaignard 	0xfff8fff6, 0x0052001c, 0x00400064, 0xfff6000a,
3114fdbc678SBenjamin Gaignard 	0xfff9fff6, 0x0054001d, 0x003e0064, 0xfff60008,
3124fdbc678SBenjamin Gaignard 	0xfff9fff8, 0x0054001f, 0x003c0063, 0xfff60007,
3134fdbc678SBenjamin Gaignard 	0xfffafff8, 0x00550021, 0x003a0062, 0xfff60006,
3144fdbc678SBenjamin Gaignard 	0xfffbfff7, 0x00560022, 0x00390062, 0xfff60005,
3154fdbc678SBenjamin Gaignard 	0xfffbfff8, 0x00570024, 0x00370061, 0xfff60004,
3164fdbc678SBenjamin Gaignard 	0xfffcfff8, 0x00580026, 0x00350060, 0xfff60003,
3174fdbc678SBenjamin Gaignard 	0xfffdfff8, 0x00590028, 0x0033005f, 0xfff60002,
3184fdbc678SBenjamin Gaignard 	0xfffdfff7, 0x005b002a, 0x0031005f, 0xfff60001,
3194fdbc678SBenjamin Gaignard 	0xfffefff7, 0x005c002c, 0x002f005e, 0xfff60000,
3204fdbc678SBenjamin Gaignard 	0xfffffff6, 0x005e002d, 0x002d005e, 0xfff6ffff,
3214fdbc678SBenjamin Gaignard 	0x0000fff6, 0x005e002f, 0x002c005c, 0xfff7fffe,
3224fdbc678SBenjamin Gaignard 	0x0001fff6, 0x005f0031, 0x002a005b, 0xfff7fffd,
3234fdbc678SBenjamin Gaignard 	0x0002fff6, 0x005f0033, 0x00280059, 0xfff8fffd,
3244fdbc678SBenjamin Gaignard 	0x0003fff6, 0x00600035, 0x00260058, 0xfff8fffc,
3254fdbc678SBenjamin Gaignard 	0x0004fff6, 0x00610037, 0x00240057, 0xfff8fffb,
3264fdbc678SBenjamin Gaignard 	0x0005fff6, 0x00620039, 0x00220056, 0xfff7fffb,
3274fdbc678SBenjamin Gaignard 	0x0006fff6, 0x0062003a, 0x00210055, 0xfff8fffa,
3284fdbc678SBenjamin Gaignard 	0x0007fff6, 0x0063003c, 0x001f0054, 0xfff8fff9,
3294fdbc678SBenjamin Gaignard 	0x0008fff6, 0x0064003e, 0x001d0054, 0xfff6fff9,
3304fdbc678SBenjamin Gaignard 	0x000afff6, 0x00640040, 0x001c0052, 0xfff6fff8,
3314fdbc678SBenjamin Gaignard 	0x000bfff6, 0x00640042, 0x001a0051, 0xfff6fff8,
3324fdbc678SBenjamin Gaignard 	0x000cfff6, 0x00650044, 0x00180050, 0xfff5fff8,
3334fdbc678SBenjamin Gaignard 	0x000efff6, 0x00650045, 0x0017004f, 0xfff5fff7,
3344fdbc678SBenjamin Gaignard 	0x000ffff6, 0x00670047, 0x0015004f, 0xfff2fff7,
3354fdbc678SBenjamin Gaignard 	0x0010fff6, 0x00680049, 0x0013004e, 0xfff1fff7
3364fdbc678SBenjamin Gaignard };
3374fdbc678SBenjamin Gaignard 
3384fdbc678SBenjamin Gaignard static const u32 coef_lut_f_c_legacy[NB_COEF] = {
3394fdbc678SBenjamin Gaignard 	0x0000fffb, 0x003a001a, 0x003a005d, 0x0000001a,
3404fdbc678SBenjamin Gaignard 	0x0001fffb, 0x003f001b, 0x00400051, 0x00000019,
3414fdbc678SBenjamin Gaignard 	0x0001fffc, 0x0040001c, 0x003f0051, 0x00000017,
3424fdbc678SBenjamin Gaignard 	0x0002fffb, 0x0042001d, 0x003e0051, 0xffff0016,
3434fdbc678SBenjamin Gaignard 	0x0002fffb, 0x0043001e, 0x003d0051, 0xffff0015,
3444fdbc678SBenjamin Gaignard 	0x0003fffc, 0x00430020, 0x003b0050, 0xffff0014,
3454fdbc678SBenjamin Gaignard 	0x0003fffb, 0x00450021, 0x003a0051, 0xfffe0013,
3464fdbc678SBenjamin Gaignard 	0x0004fffc, 0x00450022, 0x00390050, 0xfffe0012,
3474fdbc678SBenjamin Gaignard 	0x0005fffc, 0x00460023, 0x0038004f, 0xfffe0011,
3484fdbc678SBenjamin Gaignard 	0x0005fffb, 0x00480025, 0x00360050, 0xfffd0010,
3494fdbc678SBenjamin Gaignard 	0x0006fffc, 0x00480026, 0x0035004f, 0xfffd000f,
3504fdbc678SBenjamin Gaignard 	0x0006fffc, 0x00490027, 0x0034004f, 0xfffd000e,
3514fdbc678SBenjamin Gaignard 	0x0007fffd, 0x00490028, 0x0033004e, 0xfffd000d,
3524fdbc678SBenjamin Gaignard 	0x0008fffc, 0x004a002a, 0x0031004d, 0xfffd000d,
3534fdbc678SBenjamin Gaignard 	0x0009fffd, 0x004a002b, 0x0030004d, 0xfffc000c,
3544fdbc678SBenjamin Gaignard 	0x0009fffc, 0x004c002c, 0x002f004d, 0xfffc000b,
3554fdbc678SBenjamin Gaignard 	0x000afffc, 0x004c002e, 0x002e004c, 0xfffc000a,
3564fdbc678SBenjamin Gaignard 	0x000bfffc, 0x004d002f, 0x002c004c, 0xfffc0009,
3574fdbc678SBenjamin Gaignard 	0x000cfffc, 0x004d0030, 0x002b004a, 0xfffd0009,
3584fdbc678SBenjamin Gaignard 	0x000dfffd, 0x004d0031, 0x002a004a, 0xfffc0008,
3594fdbc678SBenjamin Gaignard 	0x000dfffd, 0x004e0033, 0x00280049, 0xfffd0007,
3604fdbc678SBenjamin Gaignard 	0x000efffd, 0x004f0034, 0x00270049, 0xfffc0006,
3614fdbc678SBenjamin Gaignard 	0x000ffffd, 0x004f0035, 0x00260048, 0xfffc0006,
3624fdbc678SBenjamin Gaignard 	0x0010fffd, 0x00500036, 0x00250048, 0xfffb0005,
3634fdbc678SBenjamin Gaignard 	0x0011fffe, 0x004f0038, 0x00230046, 0xfffc0005,
3644fdbc678SBenjamin Gaignard 	0x0012fffe, 0x00500039, 0x00220045, 0xfffc0004,
3654fdbc678SBenjamin Gaignard 	0x0013fffe, 0x0051003a, 0x00210045, 0xfffb0003,
3664fdbc678SBenjamin Gaignard 	0x0014ffff, 0x0050003b, 0x00200043, 0xfffc0003,
3674fdbc678SBenjamin Gaignard 	0x0015ffff, 0x0051003d, 0x001e0043, 0xfffb0002,
3684fdbc678SBenjamin Gaignard 	0x0016ffff, 0x0051003e, 0x001d0042, 0xfffb0002,
3694fdbc678SBenjamin Gaignard 	0x00170000, 0x0051003f, 0x001c0040, 0xfffc0001,
3704fdbc678SBenjamin Gaignard 	0x00190000, 0x00510040, 0x001b003f, 0xfffb0001
3714fdbc678SBenjamin Gaignard };
3724fdbc678SBenjamin Gaignard 
3734fdbc678SBenjamin Gaignard #endif
374