]> git.sur5r.net Git - u-boot/commit
driver: net: fsl-mc: Update calculation of MC RAM
authorYork Sun <york.sun@nxp.com>
Mon, 6 Mar 2017 17:02:29 +0000 (09:02 -0800)
committerYork Sun <york.sun@nxp.com>
Tue, 14 Mar 2017 15:44:03 +0000 (08:44 -0700)
commit437858b62010f3d67694b117952b62d4be86e976
treeca97df387eb2cb68175b61e7b5972eff38086447
parent36cc0de0b919c0e185739142742e0a76a7c5c30a
driver: net: fsl-mc: Update calculation of MC RAM

Since the reserved RAM is tracked by gd->arch.resv_ram, calculation
of MC memory blocks can be simplified. The MC RAM is guaranteed to be
aligned by the reservation process.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Priyanka Jain <priyanka.jain@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fsl-mc/mc.c