summaryrefslogtreecommitdiff
path: root/configs/C29XPCIE_NAND_defconfig
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2019-07-15 02:27:04 +0100
committerJagan Teki <jagan@amarulasolutions.com>2019-07-16 17:09:06 +0530
commit1a1d1df384579e1323c72e8ba888ce45bfc4e781 (patch)
treed3bbc6ad435e764f3e2eff291eda36947c52616a /configs/C29XPCIE_NAND_defconfig
parenta9e19b8ff783644f13dbf12d302c588e33da09a5 (diff)
sunxi: H6: DRAM: avoid memcpy() on MMIO registers
Using memcpy() is, however tempting, not a good idea: It depends on the specific implementation of memcpy, also lacks barriers. In this particular case the first registers were written using 64-bit writes, and the last register using four separate single-byte writes. Replace the memcpy with a proper loop using the writel() accessor. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'configs/C29XPCIE_NAND_defconfig')
0 files changed, 0 insertions, 0 deletions