net: mvpp2: enable building on 64-bit platforms
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 Feb 2017 11:31:53 +0000 (12:31 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:40:09 +0000 (07:40 +0200)
commitd1d075a5587bafaa118a53af64c0feaff067fc9b
tree69f473a9c1b3c6f7b272e57fd5ade68e5ab9930f
parentc0abc761b12bfa3a19dc9291a6213982b1db4b3b
net: mvpp2: enable building on 64-bit platforms

The mvpp2 is going to be extended to support the Marvell Armada 7K/8K
platform, which is ARM64. As a preparation to this work, this commit
enables building the mvpp2 driver on ARM64, by:

 - Adjusting the Kconfig dependency

 - Fixing the types used in the driver so that they are 32/64-bits
   compliant. We use dma_addr_t for DMA addresses, and unsigned long
   for virtual addresses.

It is worth mentioning that after this commit, the driver is for now
still only used on 32-bits platforms, and will only work on 32-bits
platforms.

Changed by Stefan for U-Boot:
Removed the Kconfig change as it does not apply to U-Boot this way.

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