Bladeren bron

Merge "soc: swr-mstr: Update hparams for all swr master ports"

Linux Build Service Account 6 jaren geleden
bovenliggende
commit
708004630d
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      soc/swr-mstr-ctrl.c

+ 6 - 0
soc/swr-mstr-ctrl.c

@@ -41,6 +41,8 @@
 			((reg) | ((id) << 16) | ((dev) << 20) | ((data) << 24))
 
 #define SWR_INVALID_PARAM 0xFF
+#define SWR_HSTOP_MAX_VAL 0xF
+#define SWR_HSTART_MIN_VAL 0x0
 
 #define SWRM_INTERRUPT_STATUS_MASK 0x1FDFD
 /* pm runtime auto suspend timer in msecs */
@@ -927,6 +929,10 @@ static void swrm_copy_data_port_config(struct swr_master *master, u8 bank)
 			reg[len] = SWRM_DP_PORT_HCTRL_BANK(i + 1, bank);
 			hparams = (mport->hstop << 4) | mport->hstart;
 			val[len++] = hparams;
+		} else {
+			reg[len] = SWRM_DP_PORT_HCTRL_BANK(i + 1, bank);
+			hparams = (SWR_HSTOP_MAX_VAL << 4) | SWR_HSTART_MIN_VAL;
+			val[len++] = hparams;
 		}
 		if (mport->blk_pack_mode != SWR_INVALID_PARAM) {
 			reg[len] = SWRM_DP_BLOCK_CTRL3_BANK(i + 1, bank);