tegra124.c (e660df07ab90f4f61ed743522067a8dbaa6fa567) tegra124.c (242b1d713386e8e2fd7f62cc1ed4681a12290848)
1/*
2 * Copyright (C) 2014 NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8

--- 979 unchanged lines hidden (view full) ---

988const struct tegra_mc_soc tegra124_mc_soc = {
989 .clients = tegra124_mc_clients,
990 .num_clients = ARRAY_SIZE(tegra124_mc_clients),
991 .num_address_bits = 34,
992 .atom_size = 32,
993 .smmu = &tegra124_smmu_soc,
994};
995#endif /* CONFIG_ARCH_TEGRA_124_SOC */
1/*
2 * Copyright (C) 2014 NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8

--- 979 unchanged lines hidden (view full) ---

988const struct tegra_mc_soc tegra124_mc_soc = {
989 .clients = tegra124_mc_clients,
990 .num_clients = ARRAY_SIZE(tegra124_mc_clients),
991 .num_address_bits = 34,
992 .atom_size = 32,
993 .smmu = &tegra124_smmu_soc,
994};
995#endif /* CONFIG_ARCH_TEGRA_124_SOC */
996
997#ifdef CONFIG_ARCH_TEGRA_132_SOC
998static void tegra132_flush_dcache(struct page *page, unsigned long offset,
999 size_t size)
1000{
1001 void *virt = page_address(page) + offset;
1002
1003 __flush_dcache_area(virt, size);
1004}
1005
1006static const struct tegra_smmu_ops tegra132_smmu_ops = {
1007 .flush_dcache = tegra132_flush_dcache,
1008};
1009
1010static const struct tegra_smmu_soc tegra132_smmu_soc = {
1011 .clients = tegra124_mc_clients,
1012 .num_clients = ARRAY_SIZE(tegra124_mc_clients),
1013 .swgroups = tegra124_swgroups,
1014 .num_swgroups = ARRAY_SIZE(tegra124_swgroups),
1015 .supports_round_robin_arbitration = true,
1016 .supports_request_limit = true,
1017 .num_asids = 128,
1018 .ops = &tegra132_smmu_ops,
1019};
1020
1021const struct tegra_mc_soc tegra132_mc_soc = {
1022 .clients = tegra124_mc_clients,
1023 .num_clients = ARRAY_SIZE(tegra124_mc_clients),
1024 .num_address_bits = 34,
1025 .atom_size = 32,
1026 .smmu = &tegra132_smmu_soc,
1027};
1028#endif /* CONFIG_ARCH_TEGRA_132_SOC */