diff options
author | Neil Patel <neilp@nvidia.com> | 2012-11-02 17:31:29 -0400 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-01-16 14:16:28 -0800 |
commit | 2bf573e13e4ceaa13235241e651dd47890f5a9fe (patch) | |
tree | b3e48b18d5485f7de35f498d3b0a78324d6f1885 /arch/arm/mach-tegra/board-pluto.c | |
parent | 361972f0db4e34fc2d2427e014f0e6178a36ce70 (diff) |
arm: tegra: baseband: add EDP support
Adds support for two different types of EDP clients:
- edp_modem_boot which will be used when executing the flashless boot sequence
- edp_modem which will be used when the modem is running the app firmware and
can be configured through sysfs
Bug 1045672
Change-Id: I1089b3fa3e3725a1cd60d7e475c4fb176e9d77c2
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/191016
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-pluto.c')
-rw-r--r-- | arch/arm/mach-tegra/board-pluto.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-pluto.c b/arch/arm/mach-tegra/board-pluto.c index 5282bdcab83b..27edff41625f 100644 --- a/arch/arm/mach-tegra/board-pluto.c +++ b/arch/arm/mach-tegra/board-pluto.c @@ -823,6 +823,17 @@ static const struct tegra_modem_operations baseband_operations = { .init = baseband_init, }; +#define MODEM_BOOT_EDP_MAX 0 +/* FIXME: get accurate boot current value */ +static unsigned int modem_boot_edp_states[] = {500}; +static struct edp_client modem_boot_edp_client = { + .name = "modem_boot", + .states = modem_boot_edp_states, + .num_states = ARRAY_SIZE(modem_boot_edp_states), + .e0_index = MODEM_BOOT_EDP_MAX, + .priority = EDP_MAX_PRIO, +}; + static struct tegra_usb_modem_power_platform_data baseband_pdata = { .ops = &baseband_operations, .wake_gpio = -1, @@ -832,6 +843,12 @@ static struct tegra_usb_modem_power_platform_data baseband_pdata = { .short_autosuspend_delay = 50, .tegra_ehci_device = &tegra_ehci2_device, .tegra_ehci_pdata = &tegra_ehci2_hsic_baseband_pdata, + .modem_boot_edp_client = &modem_boot_edp_client, + .edp_manager_name = "battery", + .i_breach_ppm = 500000, + /* FIXME: get useful adjperiods */ + .i_thresh_3g_adjperiod = 10000, + .i_thresh_lte_adjperiod = 10000, }; static struct platform_device icera_baseband_device = { |