2 * This file is produced by tools!!
4 * Copyright (C) 2012 Spreadtrum Communications Inc.
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #include <asm/arch/pinmap.h>
19 static pinmap_t ctrl[] = {
20 {REG_PIN_CTRL0, 0}, //modify it later
21 {REG_PIN_CTRL1, 0}, //modify it later
22 {REG_PIN_CTRL2,(4<<28)|(1<<27)/*CP1 Control RF SBI0*/|(1<<24)/*CP1 Control SIM2*/|(1<<22)/*CP1 Control SIM1*/|(1<<20)/*CP1 Control SIM0*/|(1<<16)|(2<<10)},
23 {REG_PIN_CTRL3, 0}, //modify it later1
26 void pinctrl_init(void)
29 for (i = 0; i < sizeof(ctrl)/sizeof(ctrl[0]); i++) {
30 __raw_writel(ctrl[i].val, CTL_PIN_BASE + ctrl[i].reg);