1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-mv78x00/mpp.c
5 * MPP functions for Marvell MV78x00 SoCs
7 #include <linux/gpio.h>
8 #include <linux/kernel.h>
9 #include <linux/init.h>
16 static unsigned int __init
mv78xx0_variant(void)
20 mv78xx0_pcie_id(&dev
, &rev
);
22 if (dev
== MV78100_DEV_ID
&& rev
>= MV78100_REV_A0
)
23 return MPP_78100_A0_MASK
;
25 printk(KERN_ERR
"MPP setup: unknown mv78x00 variant "
26 "(dev %#x rev %#x)\n", dev
, rev
);
30 void __init
mv78xx0_mpp_conf(unsigned int *mpp_list
)
32 orion_mpp_conf(mpp_list
, mv78xx0_variant(),
33 MPP_MAX
, DEV_BUS_VIRT_BASE
);