commit | 05440ad637ca2d0921d9a908bb02b99abdedf847 | [log] [tgz] |
---|---|---|
author | Victor Kamensky <victor.kamensky@linaro.org> | Mon Jul 29 22:03:27 2013 -0700 |
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | Wed Apr 16 23:51:57 2014 +0400 |
tree | 156446f65807f167e4c582dc813485103c710001 | |
parent | 88c9d2670ceb7d062c4fb3ed770210d61701e8f8 [diff] |
mtd: map.h endian fix Need to use endian neutral functions to read/write LE h/w registers. I.e insted of __raw_readl and _raw_writel, readl_relaxed and writel_relaxed. If the first just read/write register with memory barrier, the second will byteswap it if host operates in BE mode. Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>