]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: introduce TARGET_SOCFPGA_GEN5 config property
authorDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 2 Dec 2015 19:31:25 +0000 (13:31 -0600)
committerMarek Vasut <marex@denx.de>
Sun, 20 Dec 2015 02:44:56 +0000 (03:44 +0100)
In order to re-use as much Cyclone5 and Arria5 code as possible to support
the Arria10 platform, we need to wrap some of the code with #ifdef's. By
adding CONFIG_TARGET_SOCFPGA_GEN5, we can shorten the check by not having to check
for both AV || AV.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/mach-socfpga/Kconfig

index 0cb9f9e281c77a64717f00ae1338388a62cacb4e..dea4ce569f711844a3b41e53d37a432ee053efd0 100644 (file)
@@ -2,9 +2,14 @@ if ARCH_SOCFPGA
 
 config TARGET_SOCFPGA_ARRIA5
        bool
+       select TARGET_SOCFPGA_GEN5
 
 config TARGET_SOCFPGA_CYCLONE5
        bool
+       select TARGET_SOCFPGA_GEN5
+
+config TARGET_SOCFPGA_GEN5
+       bool
 
 choice
        prompt "Altera SOCFPGA board select"