arm-trusted-firmware/drivers
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: Add RSB driver 2018-10-20 16:23:59 +01:00
arm drivers/tzc-dmc620: add driver to setup DMC-620 TZC controller 2018-11-21 19:25:35 +05:30
auth Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
cadence/uart/aarch64 cadence: uart: comply to console_register prototype 2018-11-12 09:35:49 -05:00
cfi/v2m plat/arm: Move norflash driver to drivers/ folder 2018-10-10 11:14:44 +01:00
console Multi-console: Deprecate the `finish_console_register` macro 2018-10-19 17:34:52 +01:00
coreboot/cbmem_console/aarch64 Multi-console: Deprecate the `finish_console_register` macro 2018-10-19 17:34:52 +01:00
delay_timer Fix misra warnings in delay timer and console drivers 2018-09-25 17:49:28 +01:00
gpio Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
imx Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
io Merge pull request #1450 from MISL-EBU-System-SW/marvell-support-v6 2018-07-19 17:11:32 +01:00
marvell mvebu: cp110: avoid pcie power on/off sequence when called from Linux 2018-12-04 14:09:44 +02:00
mentor/i2c drivers: i2c: mentor: move platform code into header files 2018-09-19 09:24:02 +01:00
meson/console/aarch64 meson: console: Add missing define to fix build 2018-10-29 11:35:34 +00:00
mmc mmc: Update framework to use standard response type 2018-09-28 16:48:37 +02:00
partition drivers: partition: correct some static analysis tools issues 2018-11-09 18:22:01 +01:00
renesas/rcar Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
st drivers: st: uart: remove old API 2018-11-15 11:52:32 +01:00
staging/renesas/rcar Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
synopsys mmc: Update framework to use standard response type 2018-09-28 16:48:37 +02:00
ti/uart/aarch64 Multi-console: Deprecate the `finish_console_register` macro 2018-10-19 17:34:52 +01:00
ufs drivers: fix switch statements to comply with MISRA rules 2018-03-26 12:43:05 +01:00