drivers/misc: Share qbman init between archs
authorAhmed Mansour <ahmed.mansour@nxp.com>
Fri, 15 Dec 2017 21:01:00 +0000 (16:01 -0500)
committerYork Sun <york.sun@nxp.com>
Wed, 10 Jan 2018 20:28:47 +0000 (12:28 -0800)
commit44262327aa288b111a41ce067bed235759db4c1c
treeca3e7a54d6e094a0c28b4aeb106374ef5c2c1692
parent1b76f3b8ab70f221e4272026cabe0b60953eb8cf
drivers/misc: Share qbman init between archs

This patch adds changes necessary to move functionality present in
PowerPC folders with ARM architectures that have DPAA1 QBMan hardware

- Create new board/freescale/common/fsl_portals.c to house shared
  device tree fixups for DPAA1 devices with ARM and PowerPC cores
- Add new header file to top includes directory to allow files in
  both architectures to grab the function prototypes
- Port inhibit_portals() from PowerPC to ARM. This function is used in
  setup to disable interrupts on all QMan and BMan portals. It is
  needed because the interrupts are enabled by default for all portals
  including unused/uninitialised portals. When the kernel attempts to
  go to deep sleep the unused portals prevent it from doing so

Signed-off-by: Ahmed Mansour <ahmed.mansour@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
18 files changed:
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
arch/arm/include/asm/arch-fsl-layerscape/speed.h
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc85xx/fdt.c
arch/powerpc/cpu/mpc85xx/portals.c
arch/powerpc/include/asm/fsl_liodn.h
arch/powerpc/include/asm/fsl_portals.h
arch/powerpc/include/asm/immap_85xx.h
board/freescale/p1023rdb/p1023rdb.c
board/keymile/kmp204x/kmp204x.c
board/varisys/cyrus/cyrus.c
drivers/misc/Makefile
drivers/misc/fsl_portals.c [new file with mode: 0644]
include/configs/ls1043a_common.h
include/fsl_qbman.h [new file with mode: 0644]