Skip to content
Commit 3308933d authored by This contributor prefers not to receive mails's avatar This contributor prefers not to receive mails Committed by Stefan Roese
Browse files

arm: mvebu: Avoid reading MVEBU_REG_PCIE_DEVID register too many times



Change detection of platform/cpu from runtime to compile time via config
define. This completely eliminates compiling code which is not going to run
on selected platform. Code which parses and prints device / revision id
still reads device id from MVEBU_REG_PCIE_DEVID register, but only once.

Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Acked-by: default avatarMarek Behún <kabel@kernel.org>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 569b8b8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment