spi/spi-atmel: add physical base address

Needed for future use with dmaengine enabled driver.

Signed-off-by: Nicolas Ferre <[email protected]>
[[email protected]: submit the patch]
Signed-off-by: Wenyou Yang <[email protected]>
Tested-by: Richard Genoud <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Nicolas Ferre 2013-04-03 13:57:42 +08:00 • committed by Mark Brown
commit dfab30ee61

View file

@ -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;