misc: sram: add optional ioremap without write combining
authorMarcin Wojtas <mw@semihalf.com>
Mon, 14 Mar 2016 08:38:56 +0000 (09:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:19:45 +0000 (12:19 -0400)
commiteb43e023130b5021c1ffad4d5c84cb310ffcb0f6
treeb56f01e32ba60c6ddeeb983d2e114c351bc602af
parentd3bf9b19ff06bdcc4aacdd6eb395c742138a9dc9
misc: sram: add optional ioremap without write combining

Some SRAM users may require non-bufferable access to the memory, which is
impossible, because devm_ioremap_wc() is used for setting sram->virt_base.

This commit adds optional flag 'no-memory-wc', which allow to choose remap
method, using DT property. Documentation is updated accordingly.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/sram/sram.txt
drivers/misc/sram.c