/* 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 <linux/io.h>17#include <mach/msm_iomap.h>18#include "gpiomux.h"1920void __msm_gpiomux_write(unsigned gpio, gpiomux_config_t val)21{22writel(val & ~GPIOMUX_CTL_MASK,23MSM_TLMM_BASE + 0x1000 + (0x10 * gpio));24}252627