Lines Matching full:ahub

3 // tegra210_ahub.c - Tegra210 AHUB driver
21 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt); in tegra_ahub_get_value_enum() local
29 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_get_value_enum()
34 reg_val &= ahub->soc_data->mask[i]; in tegra_ahub_get_value_enum()
58 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt); in tegra_ahub_put_value_enum() local
82 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_put_value_enum()
85 update[i].mask = ahub->soc_data->mask[i]; in tegra_ahub_put_value_enum()
564 { .compatible = "nvidia,tegra210-ahub", .data = &soc_data_tegra210 },
565 { .compatible = "nvidia,tegra186-ahub", .data = &soc_data_tegra186 },
572 struct tegra_ahub *ahub = dev_get_drvdata(dev); in tegra_ahub_runtime_suspend() local
574 regcache_cache_only(ahub->regmap, true); in tegra_ahub_runtime_suspend()
575 regcache_mark_dirty(ahub->regmap); in tegra_ahub_runtime_suspend()
577 clk_disable_unprepare(ahub->clk); in tegra_ahub_runtime_suspend()
584 struct tegra_ahub *ahub = dev_get_drvdata(dev); in tegra_ahub_runtime_resume() local
587 err = clk_prepare_enable(ahub->clk); in tegra_ahub_runtime_resume()
589 dev_err(dev, "failed to enable AHUB clock, err: %d\n", err); in tegra_ahub_runtime_resume()
593 regcache_cache_only(ahub->regmap, false); in tegra_ahub_runtime_resume()
594 regcache_sync(ahub->regmap); in tegra_ahub_runtime_resume()
601 struct tegra_ahub *ahub; in tegra_ahub_probe() local
605 ahub = devm_kzalloc(&pdev->dev, sizeof(*ahub), GFP_KERNEL); in tegra_ahub_probe()
606 if (!ahub) in tegra_ahub_probe()
609 ahub->soc_data = of_device_get_match_data(&pdev->dev); in tegra_ahub_probe()
611 platform_set_drvdata(pdev, ahub); in tegra_ahub_probe()
613 ahub->clk = devm_clk_get(&pdev->dev, "ahub"); in tegra_ahub_probe()
614 if (IS_ERR(ahub->clk)) { in tegra_ahub_probe()
615 dev_err(&pdev->dev, "can't retrieve AHUB clock\n"); in tegra_ahub_probe()
616 return PTR_ERR(ahub->clk); in tegra_ahub_probe()
623 ahub->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra_ahub_probe()
624 ahub->soc_data->regmap_config); in tegra_ahub_probe()
625 if (IS_ERR(ahub->regmap)) { in tegra_ahub_probe()
627 return PTR_ERR(ahub->regmap); in tegra_ahub_probe()
630 regcache_cache_only(ahub->regmap, true); in tegra_ahub_probe()
633 ahub->soc_data->cmpnt_drv, in tegra_ahub_probe()
634 ahub->soc_data->dai_drv, in tegra_ahub_probe()
635 ahub->soc_data->num_dais); in tegra_ahub_probe()
637 dev_err(&pdev->dev, "can't register AHUB component, err: %d\n", in tegra_ahub_probe()
669 .name = "tegra210-ahub",
678 MODULE_DESCRIPTION("Tegra210 ASoC AHUB driver");