mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08:00
ASoC: atmel-ssc: add phybase in device structure
Useful for future dmaengine use. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
531f67e41d
commit
3197436176
@ -157,6 +157,8 @@ static int ssc_probe(struct platform_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ssc->phybase = regs->start;
|
||||
|
||||
ssc->clk = devm_clk_get(&pdev->dev, "pclk");
|
||||
if (IS_ERR(ssc->clk)) {
|
||||
dev_dbg(&pdev->dev, "no pclk clock defined\n");
|
||||
|
@ -11,6 +11,7 @@ struct atmel_ssc_platform_data {
|
||||
|
||||
struct ssc_device {
|
||||
struct list_head list;
|
||||
resource_size_t phybase;
|
||||
void __iomem *regs;
|
||||
struct platform_device *pdev;
|
||||
struct atmel_ssc_platform_data *pdata;
|
||||
|
Loading…
Reference in New Issue
Block a user