diff options
author | Jiucheng Xu <Jiucheng.Xu@freescale.com> | 2012-08-31 17:05:38 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-05 16:00:03 (GMT) |
commit | 3174d42c30dc3f3c77e7caf8bd2b5c9e3fab95b1 (patch) | |
tree | a572c139b5812fe926557fc412f26942fc389db7 /arch | |
parent | 55363c286dd2e012404073ca7543c5ed8b1db74e (diff) | |
download | linux-fsl-qoriq-3174d42c30dc3f3c77e7caf8bd2b5c9e3fab95b1.tar.xz |
P1025RDB: Add QE TDM support
The P1025RDB-PC have PMC sockets that support QE-TDM function.
The patch enable Quicc Engine and the related signals of QE-TDM.
Change-Id: Ia694253a9b16754aed41ae04e7c136905dea69d6
Signed-off-by: Jiucheng Xu <Jiucheng.Xu@freescale.com>
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/908
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 226f78f..e3f9a68 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c @@ -121,6 +121,10 @@ static void __init mpc85xx_rdb_setup_arch(void) for_each_node_by_name(ucc, "ucc") par_io_of_config(ucc); + + /* To P1025 QE/TDM, the name of ucc nodes is "tdm@xxxx" */ + for_each_node_by_name(ucc, "tdm") + par_io_of_config(ucc); #ifdef CONFIG_SPI_FSL_SPI for_each_node_by_name(qe_spi, "spi") par_io_of_config(qe_spi); @@ -152,7 +156,7 @@ static void __init mpc85xx_rdb_setup_arch(void) #endif #ifdef CONFIG_FSL_UCC_TDM - if (machine_is(p1021_rdb_pc)) { + if (machine_is(p1021_rdb_pc) || machine_is(p1025_rdb)) { /* Clear QE12 for releasing the LBCTL */ clrbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(12)); @@ -171,11 +175,13 @@ static void __init mpc85xx_rdb_setup_arch(void) #endif /* CONFIG_FSL_UCC_TDM */ #ifdef CONFIG_SPI_FSL_SPI + if (of_find_compatible_node(NULL, NULL, "fsl,mpc8569-qe-spi")) { clrbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(12)); /*QE-SPI*/ setbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(6) | MPC85xx_PMUXCR_QE(9) | MPC85xx_PMUXCR_QE(10)); + } #endif /* CONFIG_SPI_FSL_SPI */ iounmap(guts); } |