2 * arch/arm/mach-kirkwood/mpp.c
4 * MPP functions for Marvell Kirkwood 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>
14 #include <mach/hardware.h>
19 static unsigned int __init
kirkwood_variant(void)
23 kirkwood_pcie_id(&dev
, &rev
);
25 if ((dev
== MV88F6281_DEV_ID
&& rev
>= MV88F6281_REV_A0
) ||
26 (dev
== MV88F6282_DEV_ID
))
27 return MPP_F6281_MASK
;
28 if (dev
== MV88F6192_DEV_ID
&& rev
>= MV88F6192_REV_A0
)
29 return MPP_F6192_MASK
;
30 if (dev
== MV88F6180_DEV_ID
)
31 return MPP_F6180_MASK
;
33 pr_err("MPP setup: unknown kirkwood variant (dev %#x rev %#x)\n",
38 void __init
kirkwood_mpp_conf(unsigned int *mpp_list
)
40 orion_mpp_conf(mpp_list
, kirkwood_variant(),
41 MPP_MAX
, DEV_BUS_VIRT_BASE
);