Skip to content

Commit 86c93aa

Browse files
authored
Merge pull request codesnake#4 from codesnake/meson6_no_4k
meson6: Do not report 4K resolutions in display capabilities
2 parents 8b1bb2b + 240f04a commit 86c93aa

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

arch/arm/mach-meson6/include/mach/tvregs.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -995,11 +995,6 @@ static const reg_t tvregs_1080p_24hz[] = {
995995
{MREG_END_MARKER, 0 }
996996
};
997997

998-
static const reg_t tvregs_4k2k_30hz[] = {{MREG_END_MARKER, 0},};
999-
static const reg_t tvregs_4k2k_25hz[] = {{MREG_END_MARKER, 0},};
1000-
static const reg_t tvregs_4k2k_24hz[] = {{MREG_END_MARKER, 0},};
1001-
static const reg_t tvregs_4k2k_smpte[] = {{MREG_END_MARKER, 0},};
1002-
1003998
static const reg_t tvregs_vga_640x480[] = { // 25.17mhz 800 *525
1004999
{VENC_VDAC_SETTING, 0xff, },
10051000
{ENCI_VIDEO_EN, 0, },
@@ -1485,10 +1480,6 @@ static struct tvregs_set_t tvregsTab[] = {
14851480
{TVMODE_1080I_50HZ, tvregs_1080i_50hz},
14861481
{TVMODE_1080P_50HZ, tvregs_1080p_50hz},
14871482
{TVMODE_1080P_24HZ, tvregs_1080p_24hz},
1488-
{TVMODE_4K2K_30HZ, tvregs_4k2k_30hz},
1489-
{TVMODE_4K2K_25HZ, tvregs_4k2k_25hz},
1490-
{TVMODE_4K2K_24HZ, tvregs_4k2k_24hz},
1491-
{TVMODE_4K2K_SMPTE, tvregs_4k2k_smpte},
14921483
{TVMODE_VGA, tvregs_vga_640x480,},
14931484
{TVMODE_SVGA, tvregs_svga_800x600,},
14941485
{TVMODE_XGA, tvregs_xga_1024x768,},
@@ -1498,8 +1489,6 @@ static struct tvregs_set_t tvregsTab[] = {
14981489
{TVMODE_1080I_59HZ, tvregs_1080i,},
14991490
{TVMODE_1080P_59HZ, tvregs_1080p,},
15001491
{TVMODE_1080P_23HZ, tvregs_1080p_24hz,},
1501-
{TVMODE_4K2K_29HZ, tvregs_4k2k_30hz,},
1502-
{TVMODE_4K2K_23HZ, tvregs_4k2k_24hz,},
15031492
#endif
15041493
};
15051494

@@ -1521,10 +1510,6 @@ static const tvinfo_t tvinfoTab[] = {
15211510
{.tvmode = TVMODE_1080I_50HZ, .xres = 1920, .yres = 1080, .id = "1080i50hz"},
15221511
{.tvmode = TVMODE_1080P_50HZ, .xres = 1920, .yres = 1080, .id = "1080p50hz"},
15231512
{.tvmode = TVMODE_1080P_24HZ, .xres = 1920, .yres = 1080, .id = "1080p24hz"},
1524-
{.tvmode = TVMODE_4K2K_30HZ, .xres = 3840, .yres = 2160, .id = "4k2k30hz"},
1525-
{.tvmode = TVMODE_4K2K_25HZ, .xres = 3840, .yres = 2160, .id = "4k2k25hz"},
1526-
{.tvmode = TVMODE_4K2K_24HZ, .xres = 3840, .yres = 2160, .id = "4k2k24hz"},
1527-
{.tvmode = TVMODE_4K2K_SMPTE, .xres = 4096, .yres = 2160, .id = "4k2ksmpte"},
15281513
{.tvmode = TVMODE_VGA, .xres = 640, .yres = 480, .id = "vga"},
15291514
{.tvmode = TVMODE_SVGA, .xres = 800, .yres = 600, .id = "svga"},
15301515
{.tvmode = TVMODE_XGA, .xres = 1024, .yres = 768, .id = "xga"},
@@ -1534,8 +1519,6 @@ static const tvinfo_t tvinfoTab[] = {
15341519
{.tvmode = TVMODE_1080I_59HZ, .xres = 1920, .yres = 1080, .id = "1080i59hz"},
15351520
{.tvmode = TVMODE_1080P_59HZ, .xres = 1920, .yres = 1080, .id = "1080p59hz"},
15361521
{.tvmode = TVMODE_1080P_23HZ, .xres = 1920, .yres = 1080, .id = "1080p23hz"},
1537-
{.tvmode = TVMODE_4K2K_29HZ, .xres = 3840, .yres = 2160, .id = "4k2k29hz"},
1538-
{.tvmode = TVMODE_4K2K_23HZ, .xres = 3840, .yres = 2160, .id = "4k2k23hz"},
15391522
#endif
15401523
};
15411524

drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_edid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@ static dispmode_vic_t dispmode_VIC_tab[]=
14101410
#ifdef CONFIG_AML_VOUT_FRAMERATE_AUTOMATION
14111411
{"1080p59hz", HDMI_1080p60},
14121412
#endif
1413+
#if MESON_CPU_TYPE > MESON_CPU_TYPE_MESON6
14131414
{"4k2k30hz", HDMI_4k2k_30},
14141415
#ifdef CONFIG_AML_VOUT_FRAMERATE_AUTOMATION
14151416
{"4k2k29hz", HDMI_4k2k_30},
@@ -1420,6 +1421,7 @@ static dispmode_vic_t dispmode_VIC_tab[]=
14201421
{"4k2k23hz", HDMI_4k2k_24},
14211422
#endif
14221423
{"4k2ksmpte", HDMI_4k2k_smpte_24},
1424+
#endif // MESON_CPU_TYPE > MESON_CPU_TYPE_MESON6
14231425
};
14241426

14251427
int hdmitx_edid_VIC_support(HDMI_Video_Codes_t vic)

0 commit comments

Comments
 (0)