mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01:00
net: mscc: serval: Remove delay when serdes is configured
When serdes configuration was written in hardware there was a delay of 100ms to be sure that configuration was written. But the delay is not needed because already the function serdes_write it is checking that the operation finished. Therefore remove the mdelay. This improves the speed of configuring the network driver. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
2529dea893
commit
149468699e
@ -356,8 +356,6 @@ static void serdes_write(void __iomem *base, u32 addr)
|
|||||||
do {
|
do {
|
||||||
data = readl(base + HSIO_MCB_SERDES1G_CFG);
|
data = readl(base + HSIO_MCB_SERDES1G_CFG);
|
||||||
} while (data & HSIO_MCB_SERDES1G_CFG_WR_ONE_SHOT);
|
} while (data & HSIO_MCB_SERDES1G_CFG_WR_ONE_SHOT);
|
||||||
|
|
||||||
mdelay(100);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void serdes1g_setup(void __iomem *base, uint32_t addr,
|
static void serdes1g_setup(void __iomem *base, uint32_t addr,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user