Skip to content

Commit

Permalink
spi/spi-atmel: add physical base address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Ferre authored and Mark Brown committed Apr 23, 2013
1 parent 3af4ed7 commit dfab30e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spi-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit dfab30e

Please sign in to comment.