summaryrefslogtreecommitdiffstats
path: root/include/regmap.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/spi'Sascha Hauer2020-04-161-15/+13
|\
| * regmap-mmio: Add big endian supportSascha Hauer2020-04-141-15/+13
| | | | | | | | | | | | Add support for parsing the big-endian device tree property. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | regmap: retire of_node_to_regmap in favor of device_node_to_regmapAhmad Fatoum2020-04-151-1/+0
|/ | | | | | | | | | device_node_to_regmap is the current upstream API for this and is more general, because it allocates a regmap on demand if none exists. As of_node_to_regmap is unused anywhere, remove it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regmap: add support for regmap_init_mmio_clkAhmad Fatoum2020-02-191-0/+50
| | | | | | | | regmap-mmio is used in Linux for clocked memory mapped I/O regions. Port it over, so we can more easily port drivers using it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spdx'Sascha Hauer2020-02-181-0/+1
|\
| * include: add SPDX GPL-2.0-only license tags for files without licensing ↵Roland Hieber2020-02-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | information According to our /README, GPL-2.0-only applies for the whole project except noted otherwise. Signed-off-by: Roland Hieber <rohieb@rohieb.name> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | regmap: forward declare structs used in headerAhmad Fatoum2020-02-101-0/+3
|/ | | | | | | | | Both the device_d and device_node struct are used opaquely in this header. Forward declare them to avoid compilation errors on different include order. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regmap: port regmap_update_bits from linuxSteffen Trumtrar2017-10-161-1/+2
| | | | | | | Port the regmap_update_bits function from linux v4.14-rc1 to barebox. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regmap: Add regmap_write_bits() functionAndrey Smirnov2017-01-101-1/+5
| | | | | | | Add code implementing a simple version of regmap_write_bits(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regmap: Add missing prototype for regmap_exit()Sascha Hauer2016-02-121-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add initial regmap supportSascha Hauer2016-02-051-0/+62
This adds initial regmap support. Function prototypes are from the Kernel, the implemention is mostly rewritten. Currently the regmap support is limited to the bare minimum to get started. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>