summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-atmel.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2013-04-03 13:57:42 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-23 19:30:10 +0100
commitdfab30ee6184210ac3b91e3f70efaa47f14be4c4 (patch)
tree687c3e765e0e80d35fd4274bed93583d88b6fc47 /drivers/spi/spi-atmel.c
parent3af4ed70252b172dd5b83ac9222ff38bbac6fdbe (diff)
downloadlinux-dfab30ee6184210ac3b91e3f70efaa47f14be4c4.tar.bz2
spi/spi-atmel: add physical base address
Needed for future use with dmaengine enabled driver. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> [wenyou.yang@atmel.com: submit the patch] Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Tested-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-atmel.c')
-rw-r--r--drivers/spi/spi-atmel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index ab2ed75d42f4..7e10bdb4a714 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -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;