Documentation
arch
alpha
arc
arm
boot
common
configs
crypto
firmware
include
kernel
kvm
lib
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx
mach-integrator
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-mmp
mach-moxart
mach-mv78xx0
Kconfig
Makefile
bridge-regs.h
buffalo-wxl-setup.c
common.c
common.h
db78x00-bp-setup.c
irq.c
irqs.h
mpp.c
mpp.h
mv78xx0.h
pcie.c
rd78x00-masa-setup.c
mach-mvebu
mach-mxs
mach-netx
mach-nomadik
mach-nspire
mach-omap1
mach-omap2
mach-orion5x
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa
mach-qcom
mach-realview
mach-rockchip
mach-rpc
mach-s3c24xx
mach-s3c64xx
mach-s5pv210
mach-sa1100
mach-shmobile
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tango
mach-tegra
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900
mach-zx
mach-zynq
mm
net
nwfpe
oprofile
plat-iop
plat-omap
plat-orion
plat-pxa
plat-samsung
plat-versatile
probes
tools
vdso
vfp
xen
Kconfig
Kconfig-nommu
Kconfig.debug
Makefile
arm64
avr32
blackfin
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips
mn10300
nios2
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
ndm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
build.config.aarch64
build.config.common
build.config.cuttlefish.aarch64
build.config.cuttlefish.x86_64
build.config.goldfish.arm
build.config.goldfish.arm64
build.config.goldfish.mips
build.config.goldfish.mips64
build.config.goldfish.x86
build.config.goldfish.x86_64
build.config.x86_64
localversion-ndm
verity_dev_keys.x509
38 lines
877 B
C
38 lines
877 B
C
![]() |
/*
|
||
|
* arch/arm/mach-mv78x00/mpp.c
|
||
|
*
|
||
|
* MPP functions for Marvell MV78x00 SoCs
|
||
|
*
|
||
|
* This file is licensed under the terms of the GNU General Public
|
||
|
* License version 2. This program is licensed "as is" without any
|
||
|
* warranty of any kind, whether express or implied.
|
||
|
*/
|
||
|
#include <linux/gpio.h>
|
||
|
#include <linux/kernel.h>
|
||
|
#include <linux/init.h>
|
||
|
#include <linux/io.h>
|
||
|
#include <plat/mpp.h>
|
||
|
#include "mv78xx0.h"
|
||
|
#include "common.h"
|
||
|
#include "mpp.h"
|
||
|
|
||
|
static unsigned int __init mv78xx0_variant(void)
|
||
|
{
|
||
|
u32 dev, rev;
|
||
|
|
||
|
mv78xx0_pcie_id(&dev, &rev);
|
||
|
|
||
|
if (dev == MV78100_DEV_ID && rev >= MV78100_REV_A0)
|
||
|
return MPP_78100_A0_MASK;
|
||
|
|
||
|
printk(KERN_ERR "MPP setup: unknown mv78x00 variant "
|
||
|
"(dev %#x rev %#x)\n", dev, rev);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void __init mv78xx0_mpp_conf(unsigned int *mpp_list)
|
||
|
{
|
||
|
orion_mpp_conf(mpp_list, mv78xx0_variant(),
|
||
|
MPP_MAX, DEV_BUS_VIRT_BASE);
|
||
|
}
|