From b3d02b9f7fbd809ffb28f06630f3487e343b5578 Mon Sep 17 00:00:00 2001 From: Joy Cho Date: Tue, 14 Feb 2017 18:03:35 +0900 Subject: [PATCH] drm/exynos: Add new hdmi pll and resolutions Change-Id: Ie958ff586d663f066ab333319e2bb13bbd915b6d --- arch/arm/configs/odroidxu3_defconfig | 2 +- drivers/gpu/drm/exynos/exynos_hdmi.c | 81 +++++++++++++++++++++++++++ firmware/edid/1360x768.bin | Bin 0 -> 128 bytes firmware/edid/1366x768.bin | Bin 0 -> 128 bytes firmware/edid/1600x1200.bin | Bin 128 -> 128 bytes firmware/edid/1600x900.bin | Bin 0 -> 128 bytes firmware/edid/1920x1200_30hz.bin | Bin 0 -> 128 bytes 7 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 firmware/edid/1360x768.bin create mode 100644 firmware/edid/1366x768.bin create mode 100644 firmware/edid/1600x900.bin create mode 100644 firmware/edid/1920x1200_30hz.bin diff --git a/arch/arm/configs/odroidxu3_defconfig b/arch/arm/configs/odroidxu3_defconfig index e2081068b0f6..370af911cb0b 100644 --- a/arch/arm/configs/odroidxu3_defconfig +++ b/arch/arm/configs/odroidxu3_defconfig @@ -917,7 +917,7 @@ CONFIG_STANDALONE=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set CONFIG_FW_LOADER=y CONFIG_FIRMWARE_IN_KERNEL=y -CONFIG_EXTRA_FIRMWARE="edid/1024x768.bin edid/1280x800.bin edid/1920x1080.bin edid/720x480.bin edid/800x600.bin edid/800x480.bin edid/1280x1024.bin edid/1280x720.bin edid/1440x900.bin edid/1680x1050.bin edid/1920x1080_50hz.bin edid/640x480.bin edid/720x576.bin edid/1024x600.bin" +CONFIG_EXTRA_FIRMWARE="edid/1024x768.bin edid/1280x800.bin edid/1920x1080.bin edid/720x480.bin edid/800x600.bin edid/800x480.bin edid/1280x1024.bin edid/1280x720.bin edid/1440x900.bin edid/1680x1050.bin edid/1360x768.bin edid/1366x768.bin edid/1600x1200.bin edid/1600x900.bin edid/1920x1200_30hz.bin edid/1920x1080_50hz.bin edid/640x480.bin edid/720x576.bin edid/1024x600.bin" CONFIG_EXTRA_FIRMWARE_DIR="firmware" # CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set CONFIG_WANT_DEV_COREDUMP=y diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 57ab1405b409..8d49074701e9 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -497,6 +497,24 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = { 0x54, 0x4A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, }, }, + { + .pixel_clock = 84750000, + .conf = { + 0x01, 0xD1, 0x23, 0x11, 0x40, 0x30, 0x1E, 0xC7, + 0x84, 0xE8, 0xD4, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 85860000, + .conf = { + 0x01, 0xD1, 0x24, 0x11, 0x40, 0x30, 0xD2, 0xC8, + 0x84, 0xE8, 0xD5, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, + }, + }, { .pixel_clock = 88750000, .conf = { @@ -506,6 +524,15 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = { 0x54, 0x45, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, }, }, + { + .pixel_clock = 89750000, + .conf = { + 0x01, 0xD1, 0x25, 0x11, 0x40, 0x30, 0x26, 0xC9, + 0x83, 0xE8, 0xE0, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x89, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, { .pixel_clock = 106500000, .conf = { @@ -515,6 +542,24 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = { 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, }, }, + { + .pixel_clock = 106560000, + .conf = { + 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x78, 0x73, 0xCA, + 0x85, 0xE8, 0x0B, 0xD9, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 107800000, + .conf = { + 0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8, + 0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, + 0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, { .pixel_clock = 108000000, .conf = { @@ -533,6 +578,15 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = { 0x54, 0x6A, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, }, }, + { + .pixel_clock = 119000000, + .conf = { + 0x01, 0xD1, 0x31, 0x14, 0x40, 0x78, 0x41, 0xCB, + 0x89, 0xE8, 0x28, 0xD9, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x68, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, { .pixel_clock = 146250000, .conf = { @@ -551,6 +605,33 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = { 0x54, 0x4B, 0x25, 0x03, 0x00, 0x80, 0x01, 0x80, }, }, + { + .pixel_clock = 162000000, + .conf = { + 0x01, 0xD1, 0x22, 0x01, 0x40, 0x30, 0xD4, 0xCD, + 0x89, 0xE8, 0xC9, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x31, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 164100000, + .conf = { + 0x01, 0xD1, 0x22, 0x89, 0x49, 0xB0, 0x15, 0xCE, + 0x8A, 0xF8, 0xCD, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0x2B, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 196900000, + .conf = { + 0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF, + 0x8D, 0x168, 0xF5, 0xD8, 0x45, 0xA0, 0xAC, 0x80, + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, + 0x54, 0xFA, 0x24, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, }; static const struct hdmiphy_config hdmiphy_5433_configs[] = { diff --git a/firmware/edid/1360x768.bin b/firmware/edid/1360x768.bin new file mode 100644 index 0000000000000000000000000000000000000000..a6502e171e4782424f75d18313711508f4731f46 GIT binary patch literal 128 zcmZSh4+ac|HyFTxRg952S6QUuRosCkkzO-Y6#_zl;@t-rQGm2!z=A*qX#Ji~M0QG&VD literal 0 HcmV?d00001 diff --git a/firmware/edid/1600x1200.bin b/firmware/edid/1600x1200.bin index f2048c8260fa72735e2bddfcdd3e9df107b9a465..369fc35a6464431d3c02fadf1a83c62775e16161 100644 GIT binary patch delta 81 zcmZo*Y+#&V=JmwR!60damP5t{VFv95iVO@g3=9na8GJJHN-GqU4Y(A504Va8!P?f- ZTaW?F2aEh+Ff=nTs4z4#04rj!1OQ545#;~? delta 81 zcmZo*Y+#&V=H+4UV34%I$id-&FoX62MFs{r1_p-z3_h88r4egGK&8)r3a4I|4-+<^ljHlM>|s diff --git a/firmware/edid/1600x900.bin b/firmware/edid/1600x900.bin new file mode 100644 index 0000000000000000000000000000000000000000..02023c6ae60791153f4715d3647100a7492994bb GIT binary patch literal 128 zcmZSh4+ac|HyFTxRg952S5v&=RosCkkzO-Y6#_zl;wuj@qJSDb2Z5v(1%reY!VC*u y2{16o02Tdb@X5?8tx!-l;8FkrpvYeaYg;o59tJQUEb@oJ(9FP~!qNb$#t#77FdhK_ literal 0 HcmV?d00001 diff --git a/firmware/edid/1920x1200_30hz.bin b/firmware/edid/1920x1200_30hz.bin new file mode 100644 index 0000000000000000000000000000000000000000..b2b13db1d670609af32dfa7c22ffdba6d10fe422 GIT binary patch literal 128 zcmZSh4+ac|HyFTxRg952*GRtNRosCkkzO-Y6#_zl;ujw=q5yv727#gtq7EJhgc-hA z2r@9p02Tdb@X5?8tx!-l;8FkrpvYeaS$SnuP6jX^Eb@oJ(9+1D!qCV7tcYPQ0NZgM A0RR91 literal 0 HcmV?d00001