Commit 68f047e3 authored by Zhao Qiang's avatar Zhao Qiang Committed by David S. Miller

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: default avatarZhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b0f43fe
...@@ -239,6 +239,12 @@ enum qe_clock qe_clock_source(const char *source) ...@@ -239,6 +239,12 @@ enum qe_clock qe_clock_source(const char *source)
if (strcasecmp(source, "none") == 0) if (strcasecmp(source, "none") == 0)
return QE_CLK_NONE; return QE_CLK_NONE;
if (strcmp(source, "tsync_pin") == 0)
return QE_TSYNC_PIN;
if (strcmp(source, "rsync_pin") == 0)
return QE_RSYNC_PIN;
if (strncasecmp(source, "brg", 3) == 0) { if (strncasecmp(source, "brg", 3) == 0) {
i = simple_strtoul(source + 3, NULL, 10); i = simple_strtoul(source + 3, NULL, 10);
if ((i >= 1) && (i <= 16)) if ((i >= 1) && (i <= 16))
......
...@@ -80,6 +80,8 @@ enum qe_clock { ...@@ -80,6 +80,8 @@ enum qe_clock {
QE_CLK22, /* Clock 22 */ QE_CLK22, /* Clock 22 */
QE_CLK23, /* Clock 23 */ QE_CLK23, /* Clock 23 */
QE_CLK24, /* Clock 24 */ QE_CLK24, /* Clock 24 */
QE_RSYNC_PIN, /* RSYNC from pin */
QE_TSYNC_PIN, /* TSYNC from pin */
QE_CLK_DUMMY QE_CLK_DUMMY
}; };
......
...@@ -120,6 +120,8 @@ struct ucc_fast_info { ...@@ -120,6 +120,8 @@ struct ucc_fast_info {
int ucc_num; int ucc_num;
enum qe_clock rx_clock; enum qe_clock rx_clock;
enum qe_clock tx_clock; enum qe_clock tx_clock;
enum qe_clock rx_sync;
enum qe_clock tx_sync;
u32 regs; u32 regs;
int irq; int irq;
u32 uccm_mask; u32 uccm_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment