Skip to content

Commit df74a96

Browse files
cristiccvinodkoul
authored andcommitted
phy: rockchip: samsung-hdptx: Cleanup *_cmn_init_seq lists
Drop redundant reg_sequence entries from rk_hdptx_common_cmn_init_seq[], i.e. those that are either duplicated or overridden in rk_hdptx_tmds_cmn_init_seq[]. Additionally, a few items do not really belong to the former, hence move them to the latter. That's mostly a preparatory step for adding FRL support. No functional changes intended at this point. Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Link: https://patch.msgid.link/20260113-phy-hdptx-frl-v6-6-8d5f97419c0b@collabora.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 8e8aa07 commit df74a96

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -433,27 +433,19 @@ static const struct reg_sequence rk_hdptx_common_cmn_init_seq[] = {
433433
REG_SEQ0(CMN_REG(000e), 0x0f),
434434
REG_SEQ0(CMN_REG(000f), 0x0f),
435435
REG_SEQ0(CMN_REG(0010), 0x04),
436-
REG_SEQ0(CMN_REG(0011), 0x00),
437436
REG_SEQ0(CMN_REG(0012), 0x26),
438437
REG_SEQ0(CMN_REG(0013), 0x22),
439438
REG_SEQ0(CMN_REG(0014), 0x24),
440439
REG_SEQ0(CMN_REG(0015), 0x77),
441440
REG_SEQ0(CMN_REG(0016), 0x08),
442-
REG_SEQ0(CMN_REG(0017), 0x00),
443441
REG_SEQ0(CMN_REG(0018), 0x04),
444442
REG_SEQ0(CMN_REG(0019), 0x48),
445443
REG_SEQ0(CMN_REG(001a), 0x01),
446444
REG_SEQ0(CMN_REG(001b), 0x00),
447445
REG_SEQ0(CMN_REG(001c), 0x01),
448446
REG_SEQ0(CMN_REG(001d), 0x64),
449447
REG_SEQ0(CMN_REG(001f), 0x00),
450-
REG_SEQ0(CMN_REG(0026), 0x53),
451448
REG_SEQ0(CMN_REG(0029), 0x01),
452-
REG_SEQ0(CMN_REG(0030), 0x00),
453-
REG_SEQ0(CMN_REG(0031), 0x20),
454-
REG_SEQ0(CMN_REG(0032), 0x30),
455-
REG_SEQ0(CMN_REG(0033), 0x0b),
456-
REG_SEQ0(CMN_REG(0034), 0x23),
457449
REG_SEQ0(CMN_REG(0035), 0x00),
458450
REG_SEQ0(CMN_REG(0038), 0x00),
459451
REG_SEQ0(CMN_REG(0039), 0x00),
@@ -464,7 +456,6 @@ static const struct reg_sequence rk_hdptx_common_cmn_init_seq[] = {
464456
REG_SEQ0(CMN_REG(003f), 0x83),
465457
REG_SEQ0(CMN_REG(0040), 0x06),
466458
REG_SEQ0(CMN_REG(0041), 0x20),
467-
REG_SEQ0(CMN_REG(0042), 0xb8),
468459
REG_SEQ0(CMN_REG(0043), 0x00),
469460
REG_SEQ0(CMN_REG(0044), 0x46),
470461
REG_SEQ0(CMN_REG(0045), 0x24),
@@ -474,14 +465,9 @@ static const struct reg_sequence rk_hdptx_common_cmn_init_seq[] = {
474465
REG_SEQ0(CMN_REG(004b), 0x00),
475466
REG_SEQ0(CMN_REG(004c), 0x01),
476467
REG_SEQ0(CMN_REG(004d), 0x64),
477-
REG_SEQ0(CMN_REG(004e), 0x14),
478468
REG_SEQ0(CMN_REG(004f), 0x00),
479469
REG_SEQ0(CMN_REG(0050), 0x00),
480-
REG_SEQ0(CMN_REG(005d), 0x0c),
481470
REG_SEQ0(CMN_REG(005f), 0x01),
482-
REG_SEQ0(CMN_REG(006b), 0x04),
483-
REG_SEQ0(CMN_REG(0073), 0x30),
484-
REG_SEQ0(CMN_REG(0074), 0x00),
485471
REG_SEQ0(CMN_REG(0075), 0x20),
486472
REG_SEQ0(CMN_REG(0076), 0x30),
487473
REG_SEQ0(CMN_REG(0077), 0x08),
@@ -493,13 +479,10 @@ static const struct reg_sequence rk_hdptx_common_cmn_init_seq[] = {
493479
REG_SEQ0(CMN_REG(007e), 0x00),
494480
REG_SEQ0(CMN_REG(007f), 0x00),
495481
REG_SEQ0(CMN_REG(0080), 0x00),
496-
REG_SEQ0(CMN_REG(0081), 0x09),
497482
REG_SEQ0(CMN_REG(0082), 0x04),
498483
REG_SEQ0(CMN_REG(0083), 0x24),
499484
REG_SEQ0(CMN_REG(0084), 0x20),
500485
REG_SEQ0(CMN_REG(0085), 0x03),
501-
REG_SEQ0(CMN_REG(0086), 0x01),
502-
REG_SEQ0(CMN_REG(0087), 0x0c),
503486
REG_SEQ0(CMN_REG(008a), 0x55),
504487
REG_SEQ0(CMN_REG(008b), 0x25),
505488
REG_SEQ0(CMN_REG(008c), 0x2c),
@@ -511,7 +494,6 @@ static const struct reg_sequence rk_hdptx_common_cmn_init_seq[] = {
511494
REG_SEQ0(CMN_REG(0092), 0x00),
512495
REG_SEQ0(CMN_REG(0093), 0x00),
513496
REG_SEQ0(CMN_REG(009a), 0x11),
514-
REG_SEQ0(CMN_REG(009b), 0x10),
515497
};
516498

517499
static const struct reg_sequence rk_hdptx_tmds_cmn_init_seq[] = {
@@ -545,9 +527,13 @@ static const struct reg_sequence rk_hdptx_tmds_cmn_init_seq[] = {
545527
REG_SEQ0(CMN_REG(0048), 0x11),
546528
REG_SEQ0(CMN_REG(004e), 0x34),
547529
REG_SEQ0(CMN_REG(005c), 0x25),
530+
REG_SEQ0(CMN_REG(005d), 0x0c),
548531
REG_SEQ0(CMN_REG(005e), 0x4f),
532+
REG_SEQ0(CMN_REG(006b), 0x04),
533+
REG_SEQ0(CMN_REG(0073), 0x30),
549534
REG_SEQ0(CMN_REG(0074), 0x04),
550535
REG_SEQ0(CMN_REG(0081), 0x01),
536+
REG_SEQ0(CMN_REG(0086), 0x01),
551537
REG_SEQ0(CMN_REG(0087), 0x04),
552538
REG_SEQ0(CMN_REG(0089), 0x00),
553539
REG_SEQ0(CMN_REG(0095), 0x00),

0 commit comments

Comments
 (0)