arm-trusted-firmware/plat
Igal Liberman 55df84f974 mvebu: cp110: avoid pcie power on/off sequence when called from Linux
In Armada 8K DB boards, PCIe initialization can be executed only once
because PCIe reset performed during chip power on and it cannot be
executed via GPIO later.
This means that power on can be executed only once, when it's called
from the bootloader.
Power on:
	Read bit 21 of the mode, it marks if the caller is
	the bootloader or the Linux Kernel.
Power off:
	Check if the comphy was already configured to PCIe, if yes,
	check if the caller is bootloader, if both conditions are true
	(PCIe mode and called by Linux) - skip the power-off.

In addition, fix incorrect documentation describing mode fields -
PCIe width is 3 bits, not 2.

NOTE: with this patch, please use LK4.14.76 (LK4.4.120 may not work
with it).

Change-Id: I4b929011f97a0a1869a51ba378687e78b3eca4ff
Signed-off-by: Igal Liberman <igall@marvell.com>
Reviewed-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
2018-12-04 14:09:44 +02:00
..
allwinner allwinner: power: Add DCDC6 power rail 2018-11-14 09:50:06 +00:00
arm Merge pull request #1696 from satheesbalya-arm/sb1/sb1_2406_romlib_juno 2018-11-27 09:06:15 +01:00
common Convert arm_setup_page_tables into a generic helper 2018-10-26 14:55:30 +01:00
hisilicon hikey: increase delay after eMMC initialized 2018-11-15 09:01:40 -06:00
imx Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
layerscape Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
marvell mvebu: cp110: avoid pcie power on/off sequence when called from Linux 2018-12-04 14:09:44 +02:00
mediatek Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
meson/gxbb gxbb: Workaround for PSCI_CPU_OFF 2018-10-26 11:53:53 +01:00
nvidia/tegra Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
qemu Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
renesas/rcar rcar-gen3: control RPC hyper-flash access 2018-11-20 10:45:55 +01:00
rockchip Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
rpi3 rpi3: add RPI3_USE_UEFI_MAP build option 2018-11-19 11:45:12 +00:00
socionext Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
st/stm32mp1 stm32mp1: use MULTI_CONSOLE_API 2018-11-15 11:30:01 +01:00
ti/k3 Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
xilinx Merge pull request #1605 from sivadur/integration 2018-11-12 10:56:41 +01:00