]> git.sur5r.net Git - u-boot/commit
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)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:30 +0000 (14:14 +0200)
commitbd48c0617b5c7212e5bf22169e716da878842da4
tree16202fb8a6c4c6c99172ced8ee0703d5b73fda99
parentbd0f5a91f30c0ff2d355bb7b9858f8b6fb7f5430
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