mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
spi: xilinx_spi: convert to livetree
Update the xilinx spi driver to support a live tree. Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
83ce646943
commit
6e9d9fcb4c
1 changed files with 2 additions and 3 deletions
|
@ -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, ®s->srr);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue