Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsl/qe: add rx_sync and tx_sync for TDM mode

Rx_sync and tx_sync are used by QE-TDM mode,
add them to struct ucc_fast_info.

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Zhao Qiang and committed by
David S. Miller
68f047e3 0b0f43fe

+10
+6
drivers/soc/fsl/qe/qe.c
··· 239 239 if (strcasecmp(source, "none") == 0) 240 240 return QE_CLK_NONE; 241 241 242 + if (strcmp(source, "tsync_pin") == 0) 243 + return QE_TSYNC_PIN; 244 + 245 + if (strcmp(source, "rsync_pin") == 0) 246 + return QE_RSYNC_PIN; 247 + 242 248 if (strncasecmp(source, "brg", 3) == 0) { 243 249 i = simple_strtoul(source + 3, NULL, 10); 244 250 if ((i >= 1) && (i <= 16))
+2
include/soc/fsl/qe/qe.h
··· 80 80 QE_CLK22, /* Clock 22 */ 81 81 QE_CLK23, /* Clock 23 */ 82 82 QE_CLK24, /* Clock 24 */ 83 + QE_RSYNC_PIN, /* RSYNC from pin */ 84 + QE_TSYNC_PIN, /* TSYNC from pin */ 83 85 QE_CLK_DUMMY 84 86 }; 85 87
+2
include/soc/fsl/qe/ucc_fast.h
··· 120 120 int ucc_num; 121 121 enum qe_clock rx_clock; 122 122 enum qe_clock tx_clock; 123 + enum qe_clock rx_sync; 124 + enum qe_clock tx_sync; 123 125 u32 regs; 124 126 int irq; 125 127 u32 uccm_mask;