MIPS: Octeon: Unify QLM data types in CIU header.
Data types 'cvmx_ciu_qlm0' and 'cvmx_ciu_qlm1' are identical in their usage and structure. Combine them and update the PCIe code. Signed-off-by: Steven J. Hill <steven.hill@cavium.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19708/ Cc: linux-mips@linux-mips.org Cc: Chandrakala Chavva <cchavva@caviumnetworks.com>
This commit is contained in:

committed by
Paul Burton

parent
67701aea34
commit
769f4372b2
@@ -1237,14 +1237,14 @@ static int __cvmx_pcie_rc_initialize_gen2(int pcie_port)
|
||||
/* CN63XX Pass 1.0 errata G-14395 requires the QLM De-emphasis be programmed */
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN63XX_PASS1_0)) {
|
||||
if (pcie_port) {
|
||||
union cvmx_ciu_qlm1 ciu_qlm;
|
||||
union cvmx_ciu_qlm ciu_qlm;
|
||||
ciu_qlm.u64 = cvmx_read_csr(CVMX_CIU_QLM1);
|
||||
ciu_qlm.s.txbypass = 1;
|
||||
ciu_qlm.s.txdeemph = 5;
|
||||
ciu_qlm.s.txmargin = 0x17;
|
||||
cvmx_write_csr(CVMX_CIU_QLM1, ciu_qlm.u64);
|
||||
} else {
|
||||
union cvmx_ciu_qlm0 ciu_qlm;
|
||||
union cvmx_ciu_qlm ciu_qlm;
|
||||
ciu_qlm.u64 = cvmx_read_csr(CVMX_CIU_QLM0);
|
||||
ciu_qlm.s.txbypass = 1;
|
||||
ciu_qlm.s.txdeemph = 5;
|
||||
|
Reference in New Issue
Block a user