Path: blob/master/arch/arm/mach-msm/gpiomux-8x50.c
10817 views
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.1*2* This program is free software; you can redistribute it and/or modify3* it under the terms of the GNU General Public License version 2 and4* only version 2 as published by the Free Software Foundation.5*6* This program is distributed in the hope that it will be useful,7* but WITHOUT ANY WARRANTY; without even the implied warranty of8* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9* GNU General Public License for more details.10*11* You should have received a copy of the GNU General Public License12* along with this program; if not, write to the Free Software13* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA14* 02110-1301, USA.15*/16#include "gpiomux.h"1718#if defined(CONFIG_MMC_MSM) || defined(CONFIG_MMC_MSM_MODULE)19#define SDCC_DAT_0_3_CMD_ACTV_CFG (GPIOMUX_VALID | GPIOMUX_PULL_UP\20| GPIOMUX_FUNC_1 | GPIOMUX_DRV_8MA)21#define SDCC_CLK_ACTV_CFG (GPIOMUX_VALID | GPIOMUX_PULL_NONE\22| GPIOMUX_FUNC_1 | GPIOMUX_DRV_8MA)23#else24#define SDCC_DAT_0_3_CMD_ACTV_CFG 025#define SDCC_CLK_ACTV_CFG 026#endif2728#define SDC1_SUSPEND_CONFIG (GPIOMUX_VALID | GPIOMUX_PULL_DOWN\29| GPIOMUX_FUNC_GPIO | GPIOMUX_DRV_2MA)3031struct msm_gpiomux_config msm_gpiomux_configs[GPIOMUX_NGPIOS] = {32[86] = { /* UART3 RX */33.suspended = GPIOMUX_DRV_2MA | GPIOMUX_PULL_DOWN |34GPIOMUX_FUNC_1 | GPIOMUX_VALID,35},36[87] = { /* UART3 TX */37.suspended = GPIOMUX_DRV_2MA | GPIOMUX_PULL_DOWN |38GPIOMUX_FUNC_1 | GPIOMUX_VALID,39},40/* SDC1 data[3:0] & CMD */41[51 ... 55] = {42.active = SDCC_DAT_0_3_CMD_ACTV_CFG,43.suspended = SDC1_SUSPEND_CONFIG44},45/* SDC1 CLK */46[56] = {47.active = SDCC_CLK_ACTV_CFG,48.suspended = SDC1_SUSPEND_CONFIG49},50};515253