Lines Matching refs:ahub
21 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt);
29 for (i = 0; i < ahub->soc_data->reg_count; i++) {
34 reg_val &= ahub->soc_data->mask[i];
58 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt);
82 for (i = 0; i < ahub->soc_data->reg_count; i++) {
85 update[i].mask = ahub->soc_data->mask[i];
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);
574 regcache_cache_only(ahub->regmap, true);
575 regcache_mark_dirty(ahub->regmap);
577 clk_disable_unprepare(ahub->clk);
584 struct tegra_ahub *ahub = dev_get_drvdata(dev);
587 err = clk_prepare_enable(ahub->clk);
593 regcache_cache_only(ahub->regmap, false);
594 regcache_sync(ahub->regmap);
601 struct tegra_ahub *ahub;
605 ahub = devm_kzalloc(&pdev->dev, sizeof(*ahub), GFP_KERNEL);
606 if (!ahub)
609 ahub->soc_data = of_device_get_match_data(&pdev->dev);
611 platform_set_drvdata(pdev, ahub);
613 ahub->clk = devm_clk_get(&pdev->dev, "ahub");
614 if (IS_ERR(ahub->clk)) {
616 return PTR_ERR(ahub->clk);
623 ahub->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
624 ahub->soc_data->regmap_config);
625 if (IS_ERR(ahub->regmap)) {
627 return PTR_ERR(ahub->regmap);
630 regcache_cache_only(ahub->regmap, true);
633 ahub->soc_data->cmpnt_drv,
634 ahub->soc_data->dai_drv,
635 ahub->soc_data->num_dais);
669 .name = "tegra210-ahub",