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>
This commit is contained in:
parent
3af4ed7025
commit
dfab30ee61
|
@ -196,6 +196,7 @@ struct atmel_spi_caps {
|
||||||
struct atmel_spi {
|
struct atmel_spi {
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
|
|
||||||
|
phys_addr_t phybase;
|
||||||
void __iomem *regs;
|
void __iomem *regs;
|
||||||
int irq;
|
int irq;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
|
@ -996,6 +997,7 @@ static int atmel_spi_probe(struct platform_device *pdev)
|
||||||
as->regs = ioremap(regs->start, resource_size(regs));
|
as->regs = ioremap(regs->start, resource_size(regs));
|
||||||
if (!as->regs)
|
if (!as->regs)
|
||||||
goto out_free_buffer;
|
goto out_free_buffer;
|
||||||
|
as->phybase = regs->start;
|
||||||
as->irq = irq;
|
as->irq = irq;
|
||||||
as->clk = clk;
|
as->clk = clk;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue