arm-trusted-firmware/plat/marvell/common
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
..
aarch64 plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
mss Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
marvell_bl1_setup.c plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
marvell_bl2_setup.c plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
marvell_bl31_setup.c plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
marvell_cci.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00
marvell_common.mk plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
marvell_console.c plat/marvell: Migrate to multi-console API 2018-11-15 13:42:45 +02:00
marvell_ddr_info.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00
marvell_gicv2.c plat: a8k: enable PMU overflow interrupt handler 2018-09-03 15:47:09 +03:00
marvell_gicv3.c plat: marvell: Add support for Armada-37xx SoC platform 2018-10-31 18:01:09 +02:00
marvell_image_load.c marvell: Continue migration to new APIs 2018-10-02 18:55:42 +03:00
marvell_io_storage.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00
marvell_pm.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00
marvell_topology.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00
mrvl_sip_svc.c mvebu: cp110: avoid pcie power on/off sequence when called from Linux 2018-12-04 14:09:44 +02:00
plat_delay_timer.c plat: marvell: Add common ARMADA platform components 2018-07-18 18:48:30 +03:00