Lines Matching +full:speed +full:- +full:map

1 // SPDX-License-Identifier: GPL-2.0-only
70 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
72 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
75 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
77 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
81 /* Configure DLL - enable or bypass in xcv_init_hw()
84 cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
87 writeq_relaxed(cfg, xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
92 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
94 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
95 readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
100 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
102 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
104 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
106 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
113 int speed = 2; in xcv_setup_link() local
121 speed = 1; in xcv_setup_link()
123 speed = 0; in xcv_setup_link()
126 /* set operating speed */ in xcv_setup_link()
127 cfg = readq_relaxed(xcv->reg_base + XCV_CTL); in xcv_setup_link()
129 cfg |= speed; in xcv_setup_link()
130 writeq_relaxed(cfg, xcv->reg_base + XCV_CTL); in xcv_setup_link()
133 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
135 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
138 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
140 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
143 writeq_relaxed(0x01, xcv->reg_base + XCV_BATCH_CRD_RET); in xcv_setup_link()
146 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
148 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
149 readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
157 struct device *dev = &pdev->dev; in xcv_probe()
161 return -ENOMEM; in xcv_probe()
162 xcv->pdev = pdev; in xcv_probe()
178 /* MAP configuration registers */ in xcv_probe()
179 xcv->reg_base = pcim_iomap(pdev, PCI_CFG_REG_BAR_NUM, 0); in xcv_probe()
180 if (!xcv->reg_base) { in xcv_probe()
181 dev_err(dev, "XCV: Cannot map CSR memory space, aborting\n"); in xcv_probe()
182 err = -ENOMEM; in xcv_probe()
200 struct device *dev = &pdev->dev; in xcv_remove()