]> Git Repo - linux.git/commitdiff
soundwire: debugfs: Add missing SCP registers
authorUday M Bhat <[email protected]>
Wed, 7 Jun 2023 02:06:32 +0000 (10:06 +0800)
committerVinod Koul <[email protected]>
Thu, 8 Jun 2023 11:40:32 +0000 (17:10 +0530)
SCP registers needs to be updated to accommodate additional
register entries as per the Soundwire 1.2 specification.

Signed-off-by: Uday M Bhat <[email protected]>
Signed-off-by: Yong Zhi <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/soundwire/debugfs.c

index c3a1a359ee5c3f91479c685cce76f876bf5035bd..d1553cb77187471b40e4601f3cd5399e241ad076 100644 (file)
@@ -86,10 +86,17 @@ static int sdw_slave_reg_show(struct seq_file *s_file, void *data)
 
        /* SCP registers */
        ret += scnprintf(buf + ret, RD_BUF - ret, "\nSCP\n");
-       for (i = SDW_SCP_INT1; i <= SDW_SCP_BANKDELAY; i++)
+       for (i = SDW_SCP_INT1; i <= SDW_SCP_BUS_CLOCK_BASE; i++)
                ret += sdw_sprintf(slave, buf, ret, i);
        for (i = SDW_SCP_DEVID_0; i <= SDW_SCP_DEVID_5; i++)
                ret += sdw_sprintf(slave, buf, ret, i);
+       for (i = SDW_SCP_FRAMECTRL_B0; i <= SDW_SCP_BUSCLOCK_SCALE_B0; i++)
+               ret += sdw_sprintf(slave, buf, ret, i);
+       for (i = SDW_SCP_FRAMECTRL_B1; i <= SDW_SCP_BUSCLOCK_SCALE_B1; i++)
+               ret += sdw_sprintf(slave, buf, ret, i);
+       for (i = SDW_SCP_PHY_OUT_CTRL_0; i <= SDW_SCP_PHY_OUT_CTRL_7; i++)
+               ret += sdw_sprintf(slave, buf, ret, i);
+
 
        /*
         * SCP Bank 0/1 registers are read-only and cannot be
This page took 0.061682 seconds and 4 git commands to generate.