net: mvpp2: add hw_version field in "struct mvpp2"
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 Feb 2017 13:08:59 +0000 (14:08 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:40:39 +0000 (07:40 +0200)
commit16a9898d80d3a3975034126aef8b38611a8ddf3b
tree66638d83e10a435e5a3b8e4493b70272bcb3b298
parentcfa414aefd530bba4dd5105c77615104c96367bf
net: mvpp2: add hw_version field in "struct mvpp2"

In preparation to the introduction for the support of PPv2.2 in the
mvpp2 driver, this commit adds a hw_version field to the struct
mvpp2, and uses the .data field of the DT match table to fill it in.

Having the MVPP21 and MVPP22 definitions available will allow to start
adding the necessary conditional code to support PPv2.2.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c