Commit 6e9d9fcb authored by Vipul Kumar's avatar Vipul Kumar Committed by Jagan Teki

spi: xilinx_spi: convert to livetree

Update the xilinx spi driver to support a live tree.
Signed-off-by: default avatarVipul Kumar <>
Reviewed-by: default avatarJagan Teki <>
parent 83ce6469
......@@ -113,10 +113,9 @@ static int xilinx_spi_probe(struct udevice *bus)
struct xilinx_spi_priv *priv = dev_get_priv(bus);
struct xilinx_spi_regs *regs = priv->regs;
priv->regs = (struct xilinx_spi_regs *)devfdt_get_addr(bus);
priv->regs = (struct xilinx_spi_regs *)dev_read_addr(bus);
priv->fifo_depth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(bus),
"fifo-size", 0);
priv->fifo_depth = dev_read_u32_default(bus, "fifo-size", 0);
writel(SPISSR_RESET_VALUE, &regs->srr);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment