Patchwork [04/23] spi/atmel_spi: add physical base address

login
register
mail settings
Submitter Richard Genoud
Date Aug. 14, 2012, 1:49 p.m.
Message ID <1344952177-18385-5-git-send-email-richard.genoud@gmail.com>
Download mbox | patch
Permalink /patch/177276/
State New
Headers show

Comments

Richard Genoud - Aug. 14, 2012, 1:49 p.m.
From: Nicolas Ferre <nicolas.ferre@atmel.com>

Needed for future use with dmaengine enabled driver.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Uwe Kleine-K├Ânig <u.kleine-koenig@pengutronix.de>
---
 drivers/spi/spi-atmel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index 7c41b07..a83f470 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -188,6 +188,7 @@ 
 struct atmel_spi {
 	spinlock_t		lock;
 
+	resource_size_t		phybase;
 	void __iomem		*regs;
 	int			irq;
 	struct clk		*clk;
@@ -962,6 +963,7 @@  static int __devinit 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;