Skip to content

Commit

Permalink
fsl/qe: add rx_sync and tx_sync for TDM mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhao Qiang authored and David S. Miller committed Jun 7, 2016
1 parent 0b0f43f commit 68f047e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/soc/fsl/qe/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ enum qe_clock qe_clock_source(const char *source)
if (strcasecmp(source, "none") == 0)
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) {
i = simple_strtoul(source + 3, NULL, 10);
if ((i >= 1) && (i <= 16))
Expand Down
2 changes: 2 additions & 0 deletions include/soc/fsl/qe/qe.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ enum qe_clock {
QE_CLK22, /* Clock 22 */
QE_CLK23, /* Clock 23 */
QE_CLK24, /* Clock 24 */
QE_RSYNC_PIN, /* RSYNC from pin */
QE_TSYNC_PIN, /* TSYNC from pin */
QE_CLK_DUMMY
};

Expand Down
2 changes: 2 additions & 0 deletions include/soc/fsl/qe/ucc_fast.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ struct ucc_fast_info {
int ucc_num;
enum qe_clock rx_clock;
enum qe_clock tx_clock;
enum qe_clock rx_sync;
enum qe_clock tx_sync;
u32 regs;
int irq;
u32 uccm_mask;
Expand Down

0 comments on commit 68f047e

Please sign in to comment.