tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / board / spreadtrum / sp8830lc / pinctrl.c
1 /*
2  * This file is produced by tools!!
3  *
4  * Copyright (C) 2012 Spreadtrum Communications Inc.
5  *
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.
9  *
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.
14  */
15
16 #include <asm/io.h>
17 #include <asm/arch/pinmap.h>
18
19
20 static pinmap_t  ctrl[] = {
21 {REG_PIN_CTRL0,0},
22 {REG_PIN_CTRL1,0},
23 {REG_PIN_CTRL2,0},
24 {REG_PIN_CTRL3,0},
25 };
26
27
28 void pinctrl_init(void)
29 {
30     int i;
31     for (i = 0; i < sizeof(ctrl)/sizeof(ctrl[0]); i++) {
32         __raw_writel(ctrl[i].val, CTL_PIN_BASE + ctrl[i].reg);
33     }
34 }