{ if ((reg >= TEGRA20_DAS_DAP_CTRL_SEL) && (reg <= LAST_REG(DAP_CTRL_SEL))) return true; if ((reg >= TEGRA20_DAS_DAC_INPUT_DATA_CLK_SEL) && (reg <= LAST_REG(DAC_INPUT_DATA_CLK_SEL))) return true; return false; } static const struct regmap_config tegra20_das_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, .max_register = LAST_REG(DAC_INPUT_DATA_CLK_SEL), .writeable_reg = tegra20_das_wr_rd_reg, .readable_reg = tegra20_das_wr_rd_reg, .cache_type = REGCACHE_FLAT, }; static int tegra20_das_probe(struct platform_device *pdev) { struct resource *res, *region; void __iomem *regs; int ret = 0; if (das) return -ENODEV; das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL);
}; static bool tegra30_ahub_ahub_wr_rd_reg(struct device *dev, unsigned int reg) { if (REG_IN_ARRAY(reg, AUDIO_RX)) return true; return false; } static const struct regmap_config tegra30_ahub_ahub_regmap_config = { .name = "ahub", .reg_bits = 32, .val_bits = 32, .reg_stride = 4, .max_register = LAST_REG(AUDIO_RX), .writeable_reg = tegra30_ahub_ahub_wr_rd_reg, .readable_reg = tegra30_ahub_ahub_wr_rd_reg, .cache_type = REGCACHE_RBTREE, }; static struct tegra30_ahub_soc_data soc_data_tegra30 = { .clk_list_mask = CLK_LIST_MASK_TEGRA30, }; static struct tegra30_ahub_soc_data soc_data_tegra114 = { .clk_list_mask = CLK_LIST_MASK_TEGRA114, }; static const struct of_device_id tegra30_ahub_of_match[] = { { .compatible = "nvidia,tegra114-ahub", .data = &soc_data_tegra114 },