Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfab30ee authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Mark Brown
Browse files

spi/spi-atmel: add physical base address



Needed for future use with dmaengine enabled driver.

Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
[wenyou.yang@atmel.com: submit the patch]
Signed-off-by: default avatarWenyou Yang <wenyou.yang@atmel.com>
Tested-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 3af4ed70
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -196,6 +196,7 @@ struct atmel_spi_caps {
struct atmel_spi {
	spinlock_t		lock;

	phys_addr_t		phybase;
	void __iomem		*regs;
	int			irq;
	struct clk		*clk;
@@ -996,6 +997,7 @@ static int atmel_spi_probe(struct platform_device *pdev)
	as->regs = ioremap(regs->start, resource_size(regs));
	if (!as->regs)
		goto out_free_buffer;
	as->phybase = regs->start;
	as->irq = irq;
	as->clk = clk;