summaryrefslogtreecommitdiff
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-04-02 10:09:07 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:36:31 (GMT)
commitb1717f30e10360d3ceddecad4076d415ef153f6a (patch)
tree28c9e5fde22d0182dbe2ad0b4635b0639a24cdb6 /drivers/base/dd.c
parent915cad947438c87d5f4245880778a07cb14d2fbd (diff)
downloadlinux-fsl-qoriq-b1717f30e10360d3ceddecad4076d415ef153f6a.tar.xz
regmap: implement LE formatting/parsing for 16/32-bit values.
Allow busses to request little endianness formatting and parsing for 16- and 32-bit values. This will be useful to support regmap-mmio. For the following the scenarios using the regmap-mmio, for example: Index CPU Device Endianess flag for values ---------------------------------------------------------- 1 LE LE REGMAP_ENDIAN_DEFAULT/NATIVE 2 LE BE REGMAP_ENDIAN_BIG 3 BE BE REGMAP_ENDIAN_DEFAULT/NATIVE 4 BE LE REGMAP_ENDIAN_LITTLE For one device driver, which will support all the cases above, needs two boolean properties in DT node like: 'big-endian' for case 2 and 'little-endian' for case 4, and for cases 1 and 3 they all will be absent. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> --- This patch is pulled back from upstream: commit 4aa8c0694c731e03eb660b92a3afe14859142381 Change-Id: I8ac391476c8be6e59fd38493baa1f8afe03fd3fc Reviewed-on: http://git.am.freescale.net:8181/19854 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'drivers/base/dd.c')
0 files changed, 0 insertions, 0 deletions