]> git.baikalelectronics.ru Git - uboot.git/commit
net: macb: Add DMA 64-bit address support for macb
authorPadmarao Begari <padmarao.begari@microchip.com>
Fri, 15 Jan 2021 02:50:36 +0000 (08:20 +0530)
committerAndes <uboot@andestech.com>
Mon, 18 Jan 2021 03:06:38 +0000 (11:06 +0800)
commit42c44817b9212dc914d75cdade2876fc1d0b871f
tree081a22a7032aa50e83a7637c6928a0fa81ca4516
parentd8fb2f5157dfed7a3e4414a493133a485e8fad93
net: macb: Add DMA 64-bit address support for macb

Enable 32-bit or 64-bit DMA in the macb driver based on the macb
hardware compatibility and it is configured with structure macb_config
in the driver.

The Microchip PolarFire SoC Memory Protection Unit(MPU) gives the 64-bit
DMA access with the GEM, the MPU transactions on the AXI bus is 64-bit
not 32-bit So 64-bit DMA is enabled for the Microchip PolarFire SoC GEM.

Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
drivers/net/macb.c
drivers/net/macb.h