arm: socfpga: misc: Add support for printing FPGA type
authorDinh Nguyen <dinguyen@opensource.altera.com>
Sat, 1 Aug 2015 01:42:10 +0000 (03:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:38 +0000 (08:17 +0200)
commit27093c7563548713516d05329866649a84b6c7a2
treeec592a48eb0973934f8c2551c380b7d66be95748
parentb9b982f70c9e959bad3a62ae1ff7bb9a7cf13199
arm: socfpga: misc: Add support for printing FPGA type

Add code which uses the new functions for obtaining FPGA ID from
the scan manager. This new code prints the FPGA model attached to
the SoCFPGA during boot and sets environment variable "fpgatype",
which can be used to determine the FPGA model in U-Boot scripts.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/Makefile
arch/arm/mach-socfpga/misc.c