mpp.c (5ae8d15f686f93d2ac60a7b16d8ddfbfdfc7c00f) mpp.c (c3c5a2815d0b7ebde157556685a0ef8ffa34b98c)
1/*
2 * arch/arm/mach-dove/mpp.c
3 *
4 * MPP functions for Marvell Dove SoCs
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#include <linux/kernel.h>
12#include <linux/gpio.h>
13#include <linux/io.h>
14#include <plat/mpp.h>
15#include <mach/dove.h>
1/*
2 * arch/arm/mach-dove/mpp.c
3 *
4 * MPP functions for Marvell Dove SoCs
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#include <linux/kernel.h>
12#include <linux/gpio.h>
13#include <linux/io.h>
14#include <plat/mpp.h>
15#include <mach/dove.h>
16#include <plat/orion-gpio.h>
17#include "mpp.h"
18
19struct dove_mpp_grp {
20 int start;
21 int end;
22};
23
24/* Map a group to a range of GPIO pins in that group */

--- 122 unchanged lines hidden (view full) ---

147void __init dove_mpp_conf(unsigned int *mpp_list,
148 unsigned int *mpp_grp_list,
149 unsigned int grp_au1_52_57,
150 unsigned int grp_nfc_64_71)
151{
152 dove_mpp_dump_regs();
153
154 /* Use platform code for pins 0-23 */
16#include "mpp.h"
17
18struct dove_mpp_grp {
19 int start;
20 int end;
21};
22
23/* Map a group to a range of GPIO pins in that group */

--- 122 unchanged lines hidden (view full) ---

146void __init dove_mpp_conf(unsigned int *mpp_list,
147 unsigned int *mpp_grp_list,
148 unsigned int grp_au1_52_57,
149 unsigned int grp_nfc_64_71)
150{
151 dove_mpp_dump_regs();
152
153 /* Use platform code for pins 0-23 */
155 orion_mpp_conf(mpp_list, 0, MPP_MAX, DOVE_MPP_VIRT_BASE);
154 orion_mpp_conf(mpp_list, 0, MPP_MAX,
155 (unsigned long) DOVE_MPP_VIRT_BASE);
156
157 dove_mpp_conf_grp(mpp_grp_list);
158 dove_mpp_cfg_au1(grp_au1_52_57);
159 dove_mpp_cfg_nfc(grp_nfc_64_71);
160
161 dove_mpp_dump_regs();
162}
156
157 dove_mpp_conf_grp(mpp_grp_list);
158 dove_mpp_cfg_au1(grp_au1_52_57);
159 dove_mpp_cfg_nfc(grp_nfc_64_71);
160
161 dove_mpp_dump_regs();
162}