2 * arch/arm/mach-mv78x00/mpp.c
4 * MPP functions for Marvell MV78x00 SoCs
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.
10 #include <linux/gpio.h>
11 #include <linux/kernel.h>
12 #include <linux/init.h>
15 #include <mach/hardware.h>
19 static unsigned int __init
mv78xx0_variant(void)
23 mv78xx0_pcie_id(&dev
, &rev
);
25 if (dev
== MV78100_DEV_ID
&& rev
>= MV78100_REV_A0
)
26 return MPP_78100_A0_MASK
;
28 printk(KERN_ERR
"MPP setup: unknown mv78x00 variant "
29 "(dev %#x rev %#x)\n", dev
, rev
);
33 void __init
mv78xx0_mpp_conf(unsigned int *mpp_list
)
35 orion_mpp_conf(mpp_list
, mv78xx0_variant(),
36 MPP_MAX
, DEV_BUS_VIRT_BASE
);