diff options
author | Timo Alho <talho@nvidia.com> | 2014-04-23 11:04:29 +0300 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-01 15:58:08 -0700 |
commit | ec681a02fd5daea244fd88c35a645a477fe76a82 (patch) | |
tree | 76c77bae551ac54d3efff43ede55b75b386647c5 /drivers/platform | |
parent | df755a60d9c5491e836afc9c87574474743980d0 (diff) |
arm: tegra: sysedp: Add initial AP+DRAM table for T132
Bug 1469388
Change-Id: I020174ab09b008ddf36a6848eed9a3e25837d0b7
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/400176
(cherry picked from commit 4993c23beb775f696ccdda7b203b88a89a5bbf35)
Reviewed-on: http://git-master/r/402896
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/tegra/Makefile | 1 | ||||
-rw-r--r-- | drivers/platform/tegra/tegra13_edp.c | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/drivers/platform/tegra/Makefile b/drivers/platform/tegra/Makefile index 50d5e494b02f..717fdd15de4f 100644 --- a/drivers/platform/tegra/Makefile +++ b/drivers/platform/tegra/Makefile @@ -93,6 +93,7 @@ obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra11_soctherm.o endif obj-$(CONFIG_TEGRA_USE_SIMON) += tegra_simon.o obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra12_edp.o +obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra13_edp.o obj-y += board-common.o diff --git a/drivers/platform/tegra/tegra13_edp.c b/drivers/platform/tegra/tegra13_edp.c new file mode 100644 index 000000000000..017cc97b080e --- /dev/null +++ b/drivers/platform/tegra/tegra13_edp.c @@ -0,0 +1,65 @@ +/* + * drivers/platform/tegra/tegra13_edp.c + * + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>. + */ + +#include <mach/edp.h> + +#ifdef CONFIG_SYSEDP_FRAMEWORK +static struct tegra_sysedp_corecap t132_sysedp_corecap[] = { +/* + Initial table for T132 +*/ + /*mW CPU intensive load GPU intensive load */ + /*mW budget gpu(khz) mem(khz) budget gpu(khz) mem(khz) pthrot(mW)*/ + {5000, {4000, 108000, 933000}, {4000, 108000, 933000}, 918 }, + {6000, {6000, 108000, 933000}, {4500, 180000, 933000}, 2109 }, + {7000, {7000, 180000, 933000}, {4500, 396000, 933000}, 2589 }, + {8000, {7000, 180000, 933000}, {4500, 468000, 933000}, 3068 }, + {9000, {8000, 252000, 933000}, {4500, 612000, 933000}, 3630 }, + {10000, {10000, 252000, 933000}, {7500, 396000, 933000}, 4425 }, + {11000, {10000, 396000, 933000}, {7000, 468000, 933000}, 5301 }, + {12000, {12000, 324000, 933000}, {7000, 612000, 933000}, 5253 }, + {13000, {13000, 324000, 933000}, {7000, 684000, 933000}, 6874 }, + {14000, {14000, 252000, 933000}, {7000, 708000, 933000}, 6771 }, + {15000, {14000, 396000, 933000}, {7500, 708000, 933000}, 7819 }, + {16000, {14000, 468000, 933000}, {7000, 804000, 933000}, 8053 }, + {17000, {14000, 468000, 933000}, {7000, 853000, 933000}, 8975 }, + {18000, {14000, 540000, 933000}, {7500, 853000, 933000}, 9204 }, + {19000, {14000, 612000, 933000}, {9000, 853000, 933000}, 9998 }, + {20000, {14000, 612000, 933000}, {10000, 853000, 933000}, 10825 }, + {21000, {14000, 708000, 933000}, {10500, 853000, 933000}, 10908 }, + {22000, {14000, 708000, 933000}, {12000, 853000, 933000}, 11305 }, + {23000, {14000, 708000, 933000}, {12500, 853000, 933000}, 12696 }, + {24000, {14000, 756000, 933000}, {13000, 853000, 933000}, 13524 }, + {25000, {14000, 853000, 933000}, {14000, 853000, 933000}, 13524 }, + {26000, {14000, 853000, 933000}, {14000, 853000, 933000}, 13999 }, + {27000, {14000, 853000, 933000}, {14000, 853000, 933000}, 15002 }, + {28000, {14000, 853000, 933000}, {14000, 853000, 933000}, 15022 }, + {29000, {14000, 853000, 933000}, {14000, 853000, 933000}, 15621 }, + {30000, {14000, 853000, 933000}, {14000, 853000, 933000}, 15621 }, + {31000, {14000, 853000, 933000}, {14000, 853000, 933000}, 15621 }, + {32000, {14000, 853000, 933000}, {14000, 853000, 933000}, 16330 }, + {33000, {14000, 853000, 933000}, {14000, 853000, 933000}, 17721 }, +}; + +struct tegra_sysedp_corecap *tegra_get_sysedp_corecap(unsigned int *sz) +{ + BUG_ON(sz == NULL); + *sz = ARRAY_SIZE(t132_sysedp_corecap); + return t132_sysedp_corecap; +} +#endif |