1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*
* Samsung HDMI Physical interface driver
*
* Copyright (C) 2012 Samsung Electronics Co.Ltd
* Author: Ayoung Sim <a.sim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <uapi/linux/v4l2-dv-timings.h>
#include "hdmi.h"
static const u8 hdmiphy_conf27[32] = {
0x01, 0xD2, 0x87, 0xB0, 0x01, 0x00, 0x88, 0x02,
0x4F, 0x30, 0x33, 0x65, 0x00, 0xE4, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x0B, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf27_027[32] = {
0x11, 0xD1, 0x5A, 0xFA, 0xE4, 0x12, 0x88, 0x43,
0x4F, 0x30, 0x33, 0x65, 0x00, 0xE4, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x0F, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf74_175[32] = {
0x01, 0xD1, 0x3E, 0x35, 0xDB, 0xA2, 0x88, 0x42,
0x4F, 0x30, 0x33, 0x65, 0x10, 0xA6, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x03, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf74_25[32] = {
0x01, 0xD1, 0x3E, 0x35, 0xC0, 0x90, 0x88, 0x42,
0x4F, 0x30, 0x33, 0x65, 0x10, 0xA6, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x03, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf148_352[32] = {
0x01, 0xD1, 0x3E, 0x15, 0xDB, 0xA2, 0x88, 0x42,
0x4F, 0x30, 0x33, 0x65, 0x20, 0xA6, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x01, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf148_5[32] = {
0x01, 0xD1, 0x3E, 0x15, 0xC0, 0x90, 0x88, 0x42,
0x4F, 0x30, 0x33, 0x65, 0x20, 0xA6, 0x24, 0x80,
0x6C, 0xF2, 0x67, 0x00, 0x10, 0x01, 0x00, 0x10,
0x60, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
static const u8 hdmiphy_conf297[32] = {
0x01, 0xD1, 0x7C, 0x1D, 0xC0, 0xA0, 0x88, 0x42,
0x4F, 0x30, 0x33, 0x65, 0x30, 0xA6, 0x24, 0x80,
0x6C, 0xF0, 0x17, 0x00, 0x10, 0x01, 0x00, 0xFF,
0x7E, 0x0F, 0x00, 0x00, 0x08, 0x00, 0x3E, 0x00,
};
const struct hdmiphy_conf hdmiphy_conf[] = {
{ V4L2_DV_BT_CEA_720X480P59_94, hdmiphy_conf27 },
{ V4L2_DV_BT_CEA_720X576P50, hdmiphy_conf27 },
{ V4L2_DV_BT_CEA_1280X720P50, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1280X720P60, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080I50, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080I60, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P24, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P25, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P30, hdmiphy_conf74_175 },
{ V4L2_DV_BT_CEA_1920X1080P50, hdmiphy_conf148_5 },
{ V4L2_DV_BT_CEA_1920X1080P60, hdmiphy_conf148_5 },
{ V4L2_DV_BT_CEA_3840X2160P24, hdmiphy_conf297 },
{ V4L2_DV_BT_CEA_3840X2160P25, hdmiphy_conf297 },
{ V4L2_DV_BT_CEA_3840X2160P30, hdmiphy_conf297 },
{ V4L2_DV_BT_CEA_4096X2160P24, hdmiphy_conf297 },
{ V4L2_DV_BT_CEA_1280X720P60_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1280X720P60_TB, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1280X720P50_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1280X720P50_TB, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P24_FP, hdmiphy_conf148_5 },
{ V4L2_DV_BT_CEA_1920X1080P24_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P24_TB, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080I60_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080I50_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P60_SB_HALF, hdmiphy_conf148_5 },
{ V4L2_DV_BT_CEA_1920X1080P60_TB, hdmiphy_conf148_5 },
{ V4L2_DV_BT_CEA_1920X1080P30_SB_HALF, hdmiphy_conf74_25 },
{ V4L2_DV_BT_CEA_1920X1080P30_TB, hdmiphy_conf74_25 },
};
const int hdmiphy_conf_cnt = ARRAY_SIZE(hdmiphy_conf);
|