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