diff options
author | Alexandre Berdery <aberdery@nvidia.com> | 2011-08-25 12:41:47 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:44 -0800 |
commit | 770fe0cb5c0d6d549f3a71fc852297485cfa0a38 (patch) | |
tree | 2439d9365aa92c108552e71e34632acd2327f038 /arch/arm/mach-tegra/board-enterprise-baseband.c | |
parent | de824981a77be71abd6eb8bc10643f3fb87d9739 (diff) |
arm:tegra:enterprise: Export MODEM_PWR_ON & MODEM_RESET GPIOs
RIL and FIL require GPIOs access from user space.
This is possible with this change using sysfs.
Bug 866051
Original-Change-Id: Ie6ee4e305ae709a4eae467e27b269b9327031a17
Reviewed-on: http://git-master/r/49206
Tested-by: Alexandre Berdery <aberdery@nvidia.com>
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R4caebc5f37892608bb30a2521901d56053583f0e
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-baseband.c')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-baseband.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-baseband.c b/arch/arm/mach-tegra/board-enterprise-baseband.c index 52c6a6c9886a..384b34f30dbc 100644 --- a/arch/arm/mach-tegra/board-enterprise-baseband.c +++ b/arch/arm/mach-tegra/board-enterprise-baseband.c @@ -291,7 +291,11 @@ static int __init ph450_init(void) tegra_gpio_enable(BB_RST_OUT); gpio_direction_output(MODEM_PWR_ON, 0); + /* export GPIO for user space access through sysfs */ + gpio_export(MODEM_PWR_ON, false); gpio_direction_output(MODEM_RESET, 0); + /* export GPIO for user space access through sysfs */ + gpio_export(MODEM_RESET, false); gpio_direction_output(AP2MDM_ACK2, 1); gpio_direction_input(MDM2AP_ACK2); gpio_direction_input(BB_RST_OUT); |