/external/u-boot/board/freescale/b4860qds/ |
D | b4860qds.c | 599 static int calibrate_pll(serdes_corenet_t *srds_regs, int pll_num) in calibrate_pll() argument 607 clrbits_be32(&srds_regs->bank[pll_num].rstctl, in calibrate_pll() 610 clrbits_be32(&srds_regs->bank[pll_num].rstctl, in calibrate_pll() 613 setbits_be32(&srds_regs->bank[pll_num].rstctl, in calibrate_pll() 615 setbits_be32(&srds_regs->bank[pll_num].rstctl, in calibrate_pll() 622 rst_err = in_be32(&srds_regs->bank[pll_num].rstctl) & in calibrate_pll() 632 static int check_pll_locks(serdes_corenet_t *srds_regs, int pll_num) in check_pll_locks() argument 637 if (calibrate_pll(srds_regs, pll_num)) { in check_pll_locks() 640 clrbits_be32(&srds_regs->bank[pll_num].pllcr0, in check_pll_locks() 642 fcap = in_be32(&srds_regs->bank[pll_num].pllsr2) & in check_pll_locks() [all …]
|
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
D | fsl_corenet2_serdes.c | 207 serdes_corenet_t __iomem *srds_regs = (void *)sd_addr; in serdes_init() local 231 pll_status = in_be32(&srds_regs->bank[pll_num].pllcr0); in serdes_init() 266 pll_cr1 = in_be32(&srds_regs->bank[pll_num].pllcr1); in serdes_init() 269 out_be32(&srds_regs->bank[pll_num].pllcr1, in serdes_init() 275 pll_cr0 = in_be32(&srds_regs->bank[pll_num].pllcr0); in serdes_init() 276 out_be32(&srds_regs->bank[pll_num].pllcr0, in serdes_init() 283 pll_cr1 = in_be32(&srds_regs->bank[pll_num].pllcr1); in serdes_init() 285 out_be32(&srds_regs->bank[pll_num].pllcr1, in serdes_init() 293 pll_sr2 = in_be32(&srds_regs->bank[pll_num].pllsr2); in serdes_init() 302 pll_cr0 = in_be32(&srds_regs->bank[pll_num].pllcr0); in serdes_init() [all …]
|
D | fsl_corenet_serdes.c | 466 serdes_corenet_t *srds_regs = in wait_for_rstdone() local 474 rstctl = in_be32(&srds_regs->bank[bank].rstctl); in wait_for_rstdone() 494 serdes_corenet_t *srds_regs; in fsl_serdes_init() local 528 srds_regs = (void *)(CONFIG_SYS_FSL_CORENET_SERDES_ADDR); in fsl_serdes_init() 646 setbits_be32(&srds_regs->bank[bank].rstctl, in fsl_serdes_init() 649 setbits_be32(&srds_regs->bank[bank].rstctl, in fsl_serdes_init() 679 if (in_be32(&srds_regs->lane[idx].gcr0) & SRDS_GCR0_UOTHL) { in fsl_serdes_init() 681 setbits_be32(&srds_regs->bank[bank].pllcr0, in fsl_serdes_init() 737 out_be32(&srds_regs->lane[idx].ttlcr0, in fsl_serdes_init() 820 p4080_erratum_serdes_a005(srds_regs, cfg); in fsl_serdes_init() [all …]
|
D | cmd_errata.c | 85 const serdes_corenet_t __iomem *srds_regs = in check_erratum_a4580() local 92 &srds_regs->lane[serdes_get_lane_idx(lane)]; in check_erratum_a4580()
|
/external/u-boot/arch/powerpc/cpu/mpc8xxx/ |
D | srio.c | 74 serdes_corenet_t *srds_regs; in srio_erratum_a004034() local 82 srds_regs = (void *)(CONFIG_SYS_FSL_CORENET_SERDES_ADDR); in srio_erratum_a004034() 83 conf_lane = (in_be32((void *)&srds_regs->srdspccr0) in srio_erratum_a004034() 93 if (in_be32((void *)&srds_regs->bank[0].rstctl) in srio_erratum_a004034() 149 clrbits_be32(&srds_regs->lane[idx].gcr0, in srio_erratum_a004034() 156 in_be32(&srds_regs->lane[idx].gcr0); in srio_erratum_a004034() 166 setbits_be32(&srds_regs->lane[idx].gcr0, in srio_erratum_a004034() 173 in_be32(&srds_regs->lane[idx].gcr0); in srio_erratum_a004034()
|
/external/u-boot/board/freescale/t208xqds/ |
D | eth_t208xqds.c | 207 serdes_corenet_t *srds_regs = in board_ft_fman_fixup_port() local 209 u32 srds1_pccr1 = in_be32(&srds_regs->srdspccr1); in board_ft_fman_fixup_port() 228 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port() 240 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port() 252 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port() 265 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port() 287 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port() 299 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
|
/external/u-boot/board/freescale/corenet_ds/ |
D | corenet_ds.c | 135 serdes_corenet_t *srds_regs = (void *)CONFIG_SYS_FSL_CORENET_SERDES_ADDR; in misc_init_r() local 176 u32 expected = srds_regs->bank[i].pllcr0 & SRDS_PLLCR0_RFCK_SEL_MASK; in misc_init_r()
|
/external/u-boot/board/freescale/t1040qds/ |
D | t1040qds.c | 205 serdes_corenet_t *srds_regs = in misc_init_r() local 228 u32 pllcr0 = srds_regs->bank[i].pllcr0; in misc_init_r()
|
/external/u-boot/drivers/pci/ |
D | pcie_fsl.c | 446 serdes_corenet_t *srds_regs; in fsl_pcie_init_port() local 448 srds_regs = (void *)CONFIG_SYS_FSL_CORENET_SERDES_ADDR; in fsl_pcie_init_port() 449 val_32 = in_be32(&srds_regs->srdspccr0); in fsl_pcie_init_port() 454 out_be32(&srds_regs->srdspccr0, 2 << 28); in fsl_pcie_init_port()
|
D | fsl_pci_init.c | 507 serdes_corenet_t *srds_regs = (void *)CONFIG_SYS_FSL_CORENET_SERDES_ADDR; in fsl_pci_init() local 508 temp32 = in_be32(&srds_regs->srdspccr0); in fsl_pci_init() 513 out_be32(&srds_regs->srdspccr0, 2 << 28); in fsl_pci_init()
|
/external/u-boot/board/freescale/t4qds/ |
D | t4240qds.c | 644 serdes_corenet_t *srds_regs; in misc_init_r() local 669 srds_regs = srds_base + i * 0x1000; in misc_init_r() 670 pllcr0 = srds_regs->bank[0].pllcr0; in misc_init_r()
|