]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 23 Aug 2023 00:18:18 +0000 (02:18 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Aug 2023 21:56:21 +0000 (17:56 -0400)
commit16be2bc72e1c1ce188214b71ba5c7c9d990e6021
tree0ae1671e0c09afa5537a8b1e0f2e8ed09b4a6bd1
parentd223dcf31ad04e3b363770f2e20a36f1c7716568
drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems

Get rid of nvmxip_mmio_rawread() and just implement the readl()/readq()
reader loop within nvmxip_blk_read(). Cast the destination buffer as
needed and increment the read by either 4 or 8 bytes depending on if
this is systemd with 32bit or 64bit physical address.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/mtd/nvmxip/nvmxip.c