diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2014-05-04 20:21:15 -0700 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-06 10:50:22 -0700 |
commit | 7195780d0b7150725084926a7febada7dcd77476 (patch) | |
tree | f85d5c28a4eb8f05c4a28827e162871741801cac /drivers/platform | |
parent | 31b72fb68dda584ff983122d402148aca5a495f5 (diff) |
tegra: Remove old SOC/Board support
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I06582980f2e9e88ab0e34bc5febc5d939fb77cc4
Reviewed-on: http://git-master/r/404934
(cherry picked from commit d1095251dadc17cb2c4f885f0d5d23359536f02b)
Reviewed-on: http://git-master/r/405472
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/tegra/Makefile | 3 | ||||
-rw-r--r-- | drivers/platform/tegra/mc/Makefile | 3 | ||||
-rw-r--r-- | drivers/platform/tegra/mc/mcerr-t11.c | 198 | ||||
-rw-r--r-- | drivers/platform/tegra/mc/mcerr-t14.c | 194 | ||||
-rw-r--r-- | drivers/platform/tegra/mc/mcerr-t3.c | 104 | ||||
-rw-r--r-- | drivers/platform/tegra/tegra11x_la.c | 2 | ||||
-rw-r--r-- | drivers/platform/tegra/tegra14x_la.c | 2 | ||||
-rw-r--r-- | drivers/platform/tegra/tegra3_la.c | 2 | ||||
-rw-r--r-- | drivers/platform/tegra/timer-t3.c | 2 |
9 files changed, 0 insertions, 510 deletions
diff --git a/drivers/platform/tegra/Makefile b/drivers/platform/tegra/Makefile index ef369ad3a0ca..fe619dc3f6f9 100644 --- a/drivers/platform/tegra/Makefile +++ b/drivers/platform/tegra/Makefile @@ -64,9 +64,6 @@ obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra3_throttle.o endif obj-y += latency_allowance.o -obj-y += tegra3_la.o -obj-y += tegra11x_la.o -obj-y += tegra14x_la.o obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra12x_la.o obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra13_speedo.o diff --git a/drivers/platform/tegra/mc/Makefile b/drivers/platform/tegra/mc/Makefile index 31d86edca45d..070569e0a80c 100644 --- a/drivers/platform/tegra/mc/Makefile +++ b/drivers/platform/tegra/mc/Makefile @@ -6,10 +6,7 @@ obj-y += mc.o # MC error reporting. obj-y += mcerr.o -obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += mcerr-t3.o -obj-$(CONFIG_ARCH_TEGRA_11x_SOC) += mcerr-t11.o obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += mcerr-t12.o -obj-$(CONFIG_ARCH_TEGRA_14x_SOC) += mcerr-t14.o ifeq ($(CONFIG_PM_SLEEP),y) obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += mc-timing-t12x.o diff --git a/drivers/platform/tegra/mc/mcerr-t11.c b/drivers/platform/tegra/mc/mcerr-t11.c deleted file mode 100644 index 5cfc1b9b8e22..000000000000 --- a/drivers/platform/tegra/mc/mcerr-t11.c +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Tegra 11x SoC-specific mcerr code. - * - * Copyright (c) 2010-2014, NVIDIA Corporation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <mach/mcerr.h> - -/*** Auto generated by `mcp.pl'. Do not modify! ***/ - -#define dummy_client client("dummy", "dummy") - -struct mc_client mc_clients[] = { - client("ptc", "csr_ptcr"), - client("dc", "csr_display0a"), - client("dcb", "csr_display0ab"), - client("dc", "csr_display0b"), - client("dcb", "csr_display0bb"), - client("dc", "csr_display0c"), - client("dcb", "csr_display0cb"), - dummy_client, - dummy_client, - client("epp", "cbr_eppup"), - client("g2", "cbr_g2pr"), - client("g2", "cbr_g2sr"), - dummy_client, - dummy_client, - dummy_client, - client("avpc", "csr_avpcarm7r"), - client("dc", "csr_displayhc"), - client("dcb", "csr_displayhcb"), - client("nv", "csr_fdcdrd"), - client("nv", "csr_fdcdrd2"), - client("g2", "csr_g2dr"), - client("hda", "csr_hdar"), - client("hc", "csr_host1xdmar"), - client("hc", "csr_host1xr"), - client("nv", "csr_idxsrd"), - dummy_client, - dummy_client, - dummy_client, - client("msenc", "csr_msencsrd"), - client("ppcs", "csr_ppcsahbdmar"), - client("ppcs", "csr_ppcsahbslvr"), - dummy_client, - client("nv", "csr_texl2srd"), - dummy_client, - client("vde", "csr_vdebsevr"), - client("vde", "csr_vdember"), - client("vde", "csr_vdemcer"), - client("vde", "csr_vdetper"), - client("mpcorelp", "csr_mpcorelpr"), - client("mpcore", "csr_mpcorer"), - client("epp", "cbw_eppu"), - client("epp", "cbw_eppv"), - client("epp", "cbw_eppy"), - client("msenc", "csw_msencswr"), - client("vi", "cbw_viwsb"), - client("vi", "cbw_viwu"), - client("vi", "cbw_viwv"), - client("vi", "cbw_viwy"), - client("g2", "ccw_g2dw"), - dummy_client, - client("avpc", "csw_avpcarm7w"), - client("nv", "csw_fdcdwr"), - client("nv", "csw_fdcdwr2"), - client("hda", "csw_hdaw"), - client("hc", "csw_host1xw"), - client("isp", "csw_ispw"), - client("mpcorelp", "csw_mpcorelpw"), - client("mpcore", "csw_mpcorew"), - dummy_client, - client("ppcs", "csw_ppcsahbdmaw"), - client("ppcs", "csw_ppcsahbslvw"), - dummy_client, - client("vde", "csw_vdebsevw"), - client("vde", "csw_vdedbgw"), - client("vde", "csw_vdembew"), - client("vde", "csw_vdetpmw"), - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - client("xusb_host", "csr_xusb_hostr"), - client("xusb_host", "csw_xusb_hostw"), - client("xusb_dev", "csr_xusb_devr"), - client("xusb_dev", "csw_xusb_devw"), - client("nv", "csw_fdcdwr3"), - client("nv", "csr_fdcdrd3"), - client("nv", "csw_fdcdwr4"), - client("nv", "csr_fdcdrd4"), - client("emucif", "csr_emucifr"), - client("emucif", "csw_emucifw"), - client("tsec", "csr_tsecsrd"), - client("tsec", "csw_tsecswr"), -}; -int mc_client_last = ARRAY_SIZE(mc_clients) - 1; -/*** Done. ***/ - -static void mcerr_t11x_info_update(struct mc_client *c, u32 stat) -{ - if (stat & MC_INT_DECERR_EMEM) - c->intr_counts[0]++; - if (stat & MC_INT_SECURITY_VIOLATION) - c->intr_counts[1]++; - if (stat & MC_INT_INVALID_SMMU_PAGE) - c->intr_counts[2]++; - if (stat & MC_INT_DECERR_VPR) - c->intr_counts[3]++; - if (stat & MC_INT_SECERR_SEC) - c->intr_counts[4]++; - - if (stat & ~MC_INT_EN_MASK) - c->intr_counts[5]++; -} - -/* - * T11x reports addresses in a 32 byte range thus we can only give an - * approximate location for the invalid memory request, not the exact address. - */ -static void mcerr_t11x_print(const struct mc_error *err, - const struct mc_client *client, - u32 status, phys_addr_t addr, - int secure, int rw, const char *smmu_info) -{ - pr_err("[mcerr] (%s) %s: %s\n", client->swgid, client->name, err->msg); - pr_err("[mcerr] status = 0x%08x; addr = [0x%08lx -> 0x%08lx]", - status, (ulong)(addr & ~0x1f), (ulong)(addr | 0x1f)); - pr_err("[mcerr] secure: %s, access-type: %s, SMMU fault: %s\n", - secure ? "yes" : "no", rw ? "write" : "read", - smmu_info ? smmu_info : "none"); -} - -#define fmt_hdr "%-18s %-18s %-9s %-9s %-9s %-10s %-10s %-9s\n" -#define fmt_cli "%-18s %-18s %-9u %-9u %-9u %-10u %-10u %-9u\n" -static int mcerr_t11x_debugfs_show(struct seq_file *s, void *v) -{ - int i, j; - int do_print; - - seq_printf(s, fmt_hdr, - "swgid", "client", "decerr", "secerr", "smmuerr", - "decerr-VPR", "secerr-SEC", "unknown"); - for (i = 0; i < ARRAY_SIZE(mc_clients); i++) { - do_print = 0; - if (strcmp(mc_clients[i].name, "dummy") == 0) - continue; - /* Only print clients who actually have errors. */ - for (j = 0; j < INTR_COUNT; j++) { - if (mc_clients[i].intr_counts[j]) { - do_print = 1; - break; - } - } - if (do_print) - seq_printf(s, fmt_cli, - mc_clients[i].swgid, - mc_clients[i].name, - mc_clients[i].intr_counts[0], - mc_clients[i].intr_counts[1], - mc_clients[i].intr_counts[2], - mc_clients[i].intr_counts[3], - mc_clients[i].intr_counts[4], - mc_clients[i].intr_counts[5]); - } - return 0; -} - -/* - * Set up chip specific functions and data for handling this particular chip's - * error decoding and logging. - */ -void mcerr_chip_specific_setup(struct mcerr_chip_specific *spec) -{ - spec->mcerr_print = mcerr_t11x_print; - spec->mcerr_info_update = mcerr_t11x_info_update; - spec->mcerr_debugfs_show = mcerr_t11x_debugfs_show; - spec->nr_clients = ARRAY_SIZE(mc_clients); - return; -} diff --git a/drivers/platform/tegra/mc/mcerr-t14.c b/drivers/platform/tegra/mc/mcerr-t14.c deleted file mode 100644 index 4400f8a4e7af..000000000000 --- a/drivers/platform/tegra/mc/mcerr-t14.c +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Tegra 14x SoC-specific mcerr code. - * - * Copyright (c) 2012-2014, NVIDIA Corporation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <mach/mcerr.h> - -/*** Auto generated by `mcp.pl'. Do not modify! ***/ - -#define dummy_client client("dummy", "dummy") - -struct mc_client mc_clients[] = { - client("ptc", "csr_ptcr"), - client("dc", "csr_display0a"), - client("dcb", "cbr_display0ab"), - client("dc", "csr_display0b"), - client("dcb", "csr_display0bb"), - client("dc", "csr_display0c"), - client("dcb", "cbr_display0cb"), - dummy_client, - dummy_client, - client("epp", "cbr_eppup"), - client("g2", "cbr_g2pr"), - client("g2", "cbr_g2sr"), - dummy_client, - dummy_client, - dummy_client, - client("avpc", "csr_avpcarm7r"), - client("dc", "csr_displayhc"), - client("dcb", "csr_displayhcb"), - client("nv", "csr_fdcdrd"), - client("nv", "csr_fdcdrd2"), - client("g2", "csr_g2dr"), - client("hda", "csr_hdar"), - client("hc", "csr_host1xdmar"), - client("hc", "csr_host1xr"), - client("nv", "csr_idxsrd"), - dummy_client, - dummy_client, - dummy_client, - client("msenc", "csr_msencsrd"), - client("ppcs", "csr_ppcsahbdmar"), - client("ppcs", "csr_ppcsahbslvr"), - dummy_client, - client("nv", "csr_texl2srd"), - dummy_client, - client("vde", "csr_vdebsevr"), - client("vde", "csr_vdember"), - client("vde", "csr_vdemcer"), - client("vde", "csr_vdetper"), - client("mpcorelp", "csr_mpcorelpr"), - client("mpcore", "csr_mpcorer"), - client("epp", "cbw_eppu"), - client("epp", "cbw_eppv"), - client("epp", "cbw_eppy"), - client("msenc", "csw_msencswr"), - client("vi", "cbw_viwsb"), - client("vi", "cbw_viwu"), - client("vi", "cbw_viwv"), - client("vi", "cbw_viwy"), - client("g2", "ccw_g2dw"), - dummy_client, - client("avpc", "csw_avpcarm7w"), - client("nv", "csw_fdcdwr"), - client("nv", "csw_fdcdwr2"), - client("hda", "csw_hdaw"), - client("hc", "csw_host1xw"), - client("isp", "csw_ispw"), - client("mpcorelp", "csw_mpcorelpw"), - client("mpcore", "csw_mpcorew"), - dummy_client, - client("ppcs", "csw_ppcsahbdmaw"), - client("ppcs", "csw_ppcsahbslvw"), - dummy_client, - client("vde", "csw_vdebsevw"), - client("vde", "csw_vdedbgw"), - client("vde", "csw_vdembew"), - client("vde", "csw_vdetpmw"), - dummy_client, - dummy_client, - client("isp", "csr_ispra"), - dummy_client, - client("isp", "csw_ispwa"), - client("isp", "csw_ispwb"), - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - dummy_client, - client("emucif", "csr_emucifr"), - client("emucif", "csw_emucifw"), - client("tsec", "csr_tsecsrd"), - client("tsec", "csw_tsecswr"), - client("vi", "csw_viw"), - client("bbmci", "csr_bbcr"), - client("bbmci", "csw_bbcw"), - client("bbmcill", "csr_bbcllr"), - client("dc", "csr_displayt"), - dummy_client, - client("dc", "csr_displayd"), -}; -int mc_client_last = ARRAY_SIZE(mc_clients) - 1; -/*** Done. ***/ - -static void mcerr_t14x_info_update(struct mc_client *c, u32 stat) -{ - if (stat & MC_INT_DECERR_EMEM) - c->intr_counts[0]++; - if (stat & MC_INT_SECURITY_VIOLATION) - c->intr_counts[1]++; - if (stat & MC_INT_INVALID_SMMU_PAGE) - c->intr_counts[2]++; - if (stat & MC_INT_DECERR_VPR) - c->intr_counts[3]++; - if (stat & MC_INT_SECERR_SEC) - c->intr_counts[4]++; - if (stat & MC_INT_BBC_PRIVATE_MEM_VIOLATION) - c->intr_counts[5]++; - if (stat & MC_INT_DECERR_BBC) - c->intr_counts[6]++; - - if (stat & ~MC_INT_EN_MASK) - c->intr_counts[7]++; -} - -#define fmt_hdr "%-18s %-18s %-9s %-9s %-9s %-10s %-10s %-9s %-9s %-9s\n" -#define fmt_cli "%-18s %-18s %-9u %-9u %-9u %-10u %-10u %-9u %-9u %-9u\n"; -static int mcerr_t14x_debugfs_show(struct seq_file *s, void *v) -{ - int i, j; - int do_print; - - seq_printf(s, fmt_hdr, - "swgid", "client", "decerr", "secerr", "smmuerr", - "decerr-VPR", "secerr-SEC", "priv-bbc", "decerr-bbc", - "unknown"); - for (i = 0; i < ARRAY_SIZE(mc_clients); i++) { - do_print = 0; - if (strcmp(mc_clients[i].name, "dummy") == 0) - continue; - /* Only print clients who actually have errors. */ - for (j = 0; j < INTR_COUNT; j++) { - if (mc_clients[i].intr_counts[j]) { - do_print = 1; - break; - } - } - if (do_print) - seq_printf(s, fmt_cli, - mc_clients[i].swgid, - mc_clients[i].name, - mc_clients[i].intr_counts[0], - mc_clients[i].intr_counts[1], - mc_clients[i].intr_counts[2], - mc_clients[i].intr_counts[3], - mc_clients[i].intr_counts[4], - mc_clients[i].intr_counts[5], - mc_clients[i].intr_counts[6], - mc_clients[i].intr_counts[7]); - } - return 0; -} - -/* - * Set up chip specific functions and data for handling this particular chip's - * error decoding and logging. - */ -void mcerr_chip_specific_setup(struct mcerr_chip_specific *spec) -{ - spec->mcerr_info_update = mcerr_t14x_info_update; - spec->mcerr_debugfs_show = mcerr_t14x_debugfs_show; - spec->nr_clients = ARRAY_SIZE(mc_clients); - return; -} diff --git a/drivers/platform/tegra/mc/mcerr-t3.c b/drivers/platform/tegra/mc/mcerr-t3.c deleted file mode 100644 index 50118f726879..000000000000 --- a/drivers/platform/tegra/mc/mcerr-t3.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Tegra 3 SoC-specific mcerr code. - * - * Copyright (c) 2010-2014, NVIDIA Corporation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <mach/mcerr.h> - -/*** Auto generated by `mcp.pl'. Do not modify! ***/ - -#define dummy_client client("dummy", "dummy") - -struct mc_client mc_clients[] = { - client("ptc", "csr_ptcr"), - client("dc", "cbr_display0a"), - client("dcb", "cbr_display0ab"), - client("dc", "cbr_display0b"), - client("dcb", "cbr_display0bb"), - client("dc", "cbr_display0c"), - client("dcb", "cbr_display0cb"), - client("dc", "cbr_display1b"), - client("dcb", "cbr_display1bb"), - client("epp", "cbr_eppup"), - client("g2", "cbr_g2pr"), - client("g2", "cbr_g2sr"), - client("mpe", "cbr_mpeunifbr"), - client("vi", "cbr_viruv"), - client("afi", "csr_afir"), - client("avpc", "csr_avpcarm7r"), - client("dc", "csr_displayhc"), - client("dcb", "csr_displayhcb"), - client("nv", "csr_fdcdrd"), - client("nv2", "csr_fdcdrd2"), - client("g2", "csr_g2dr"), - client("hda", "csr_hdar"), - client("hc", "csr_host1xdmar"), - client("hc", "csr_host1xr"), - client("nv", "csr_idxsrd"), - client("nv2", "csr_idxsrd2"), - client("mpe", "csr_mpe_ipred"), - client("mpe", "csr_mpeamemrd"), - client("mpe", "csr_mpecsrd"), - client("ppcs", "csr_ppcsahbdmar"), - client("ppcs", "csr_ppcsahbslvr"), - client("sata", "csr_satar"), - client("nv", "csr_texsrd"), - client("nv2", "csr_texsrd2"), - client("vde", "csr_vdebsevr"), - client("vde", "csr_vdember"), - client("vde", "csr_vdemcer"), - client("vde", "csr_vdetper"), - client("mpcorelp", "csr_mpcorelpr"), - client("mpcore", "csr_mpcorer"), - client("epp", "cbw_eppu"), - client("epp", "cbw_eppv"), - client("epp", "cbw_eppy"), - client("mpe", "cbw_mpeunifbw"), - client("vi", "cbw_viwsb"), - client("vi", "cbw_viwu"), - client("vi", "cbw_viwv"), - client("vi", "cbw_viwy"), - client("g2", "ccw_g2dw"), - client("afi", "csw_afiw"), - client("avpc", "csw_avpcarm7w"), - client("nv", "csw_fdcdwr"), - client("nv2", "csw_fdcdwr2"), - client("hda", "csw_hdaw"), - client("hc", "csw_host1xw"), - client("isp", "csw_ispw"), - client("mpcorelp", "csw_mpcorelpw"), - client("mpcore", "csw_mpcorew"), - client("mpe", "csw_mpecswr"), - client("ppcs", "csw_ppcsahbdmaw"), - client("ppcs", "csw_ppcsahbslvw"), - client("sata", "csw_sataw"), - client("vde", "csw_vdebsevw"), - client("vde", "csw_vdedbgw"), - client("vde", "csw_vdembew"), - client("vde", "csw_vdetpmw"), -}; -int mc_client_last = ARRAY_SIZE(mc_clients) - 1; -/*** Done. ***/ - -/* - * Defaults work for T30. - */ -void mcerr_chip_specific_setup(struct mcerr_chip_specific *spec) -{ - return; -} diff --git a/drivers/platform/tegra/tegra11x_la.c b/drivers/platform/tegra/tegra11x_la.c deleted file mode 100644 index 36b136a47651..000000000000 --- a/drivers/platform/tegra/tegra11x_la.c +++ /dev/null @@ -1,2 +0,0 @@ -/* Automatically generated file; DO NOT EDIT. */ -#include "../../../arch/arm/mach-tegra/tegra11x_la.c" diff --git a/drivers/platform/tegra/tegra14x_la.c b/drivers/platform/tegra/tegra14x_la.c deleted file mode 100644 index dad4e31b5498..000000000000 --- a/drivers/platform/tegra/tegra14x_la.c +++ /dev/null @@ -1,2 +0,0 @@ -/* Automatically generated file; DO NOT EDIT. */ -#include "../../../arch/arm/mach-tegra/tegra14x_la.c" diff --git a/drivers/platform/tegra/tegra3_la.c b/drivers/platform/tegra/tegra3_la.c deleted file mode 100644 index e7f2bd2c4a78..000000000000 --- a/drivers/platform/tegra/tegra3_la.c +++ /dev/null @@ -1,2 +0,0 @@ -/* Automatically generated file; DO NOT EDIT. */ -#include "../../../arch/arm/mach-tegra/tegra3_la.c" diff --git a/drivers/platform/tegra/timer-t3.c b/drivers/platform/tegra/timer-t3.c deleted file mode 100644 index ddfb1511aa7f..000000000000 --- a/drivers/platform/tegra/timer-t3.c +++ /dev/null @@ -1,2 +0,0 @@ -/* Automatically generated file; DO NOT EDIT. */ -#include "../../../arch/arm/mach-tegra/timer-t3.c" |