Commit 88c857df8cf4956195b10afbbe08cc3912d45429
Committed by
York Sun
1 parent
340848b185
Exists in
v2017.01-smarct4x
and in
33 other branches
arm/ls102xa: Add little-endian mode support for audio IPs
As SCFG_ENDIANCR register is added to choose little-endian or big-endian for audio IPs on Rev2.0 silion, little-endian mode is selected. Signed-off-by: Alison Wang <alison.wang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Showing 3 changed files with 8 additions and 1 deletions Side-by-side Diff
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
| ... | ... | @@ -149,6 +149,7 @@ |
| 149 | 149 | #define SCFG_ETSECCMCR_GE1_CLK125 0x08000000 |
| 150 | 150 | #define SCFG_PIXCLKCR_PXCKEN 0x80000000 |
| 151 | 151 | #define SCFG_QSPI_CLKSEL 0xc0100000 |
| 152 | +#define SCFG_ENDIANCR_LE 0x80000000 | |
| 152 | 153 | |
| 153 | 154 | /* Supplemental Configuration Unit */ |
| 154 | 155 | struct ccsr_scfg { |
| ... | ... | @@ -207,7 +208,7 @@ |
| 207 | 208 | u32 qos2; |
| 208 | 209 | u32 qos3; |
| 209 | 210 | u32 cci_cfg; |
| 210 | - u32 resv8[1]; | |
| 211 | + u32 endiancr; | |
| 211 | 212 | u32 etsecdmamcr; |
| 212 | 213 | u32 usb3prm3cr; |
| 213 | 214 | u32 resv9[1]; |
board/freescale/ls1021aqds/ls1021aqds.c
| ... | ... | @@ -209,6 +209,9 @@ |
| 209 | 209 | out_be32(&scfg->pixclkcr, SCFG_PIXCLKCR_PXCKEN); |
| 210 | 210 | #endif |
| 211 | 211 | |
| 212 | + /* Configure Little endian for SAI, ASRC and SPDIF */ | |
| 213 | + out_be32(&scfg->endiancr, SCFG_ENDIANCR_LE); | |
| 214 | + | |
| 212 | 215 | /* |
| 213 | 216 | * Enable snoop requests and DVM message requests for |
| 214 | 217 | * Slave insterface S4 (A7 core cluster) |
board/freescale/ls1021atwr/ls1021atwr.c
| ... | ... | @@ -368,6 +368,9 @@ |
| 368 | 368 | out_be32(&scfg->qspi_cfg, SCFG_QSPI_CLKSEL); |
| 369 | 369 | #endif |
| 370 | 370 | |
| 371 | + /* Configure Little endian for SAI, ASRC and SPDIF */ | |
| 372 | + out_be32(&scfg->endiancr, SCFG_ENDIANCR_LE); | |
| 373 | + | |
| 371 | 374 | /* |
| 372 | 375 | * Enable snoop requests and DVM message requests for |
| 373 | 376 | * Slave insterface S4 (A7 core cluster) |