<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/regmap.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-04-23T09:17:15Z</updated>
<entry>
<title>regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset</title>
<updated>2019-04-23T09:17:15Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2019-04-11T15:01:23Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=d0a9b82b75372fce6715c773db0e3af6532cf1a4'/>
<id>urn:sha1:d0a9b82b75372fce6715c773db0e3af6532cf1a4</id>
<content type='text'>
When fixing sandbox test for regmap_read_poll_timeout(), the
sandbox_timer_add_offset was introduced but only defined in sandbox code
thus generating warnings when used out of sandbox :

include/regmap.h:289:2: note: in expansion of macro 'regmap_read_poll_timeout_test'
regmap_read_poll_timeout_test(map, addr, val, cond, sleep_us, \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/spi/meson_spifc.c:169:8: note: in expansion of macro 'regmap_read_poll_timeout'
ret = regmap_read_poll_timeout(spifc-&gt;regmap, REG_SLAVE, data,
        ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/spi/meson_spifc.c: In function 'meson_spifc_txrx':
include/regmap.h:277:4: warning: implicit declaration of function 'sandbox_timer_add_offset' [-Wimplicit-function-declaration]

This fix adds a timer_test_add_offset() only defined in sandbox, and
renames the previous sandbox_timer_add_offset() to it.

Cc: Simon Glass &lt;sjg@chromium.org&gt;
Reported-by: Tom Rini &lt;trini@konsulko.com&gt;
Fixes: df9cf1cc08 ("test: dm: regmap: Fix the long test delay")
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: dm: regmap: Fix the long test delay</title>
<updated>2019-01-15T00:47:13Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-12-10T00:11:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=df9cf1cc08d73af765f0f434909295ac6fed2c4b'/>
<id>urn:sha1:df9cf1cc08d73af765f0f434909295ac6fed2c4b</id>
<content type='text'>
At present one of the regmap tests takes 5 seconds to run since it waits
for a timeout. This should be handled using sandbox_timer_add_offset()
which advances time for test purposes.

This requires a little change to make the regmap_read_poll_timeout()
testable.

Update the macro and the test.

Fixes: ebe3497c9c ("test: regmap: add regmap_read_poll_timeout test")

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>regmap: add regmap_read_poll_timeout() helper</title>
<updated>2018-11-24T09:11:11Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2018-11-22T10:01:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=d13801ef1d14fe46f97630b56e01200b337dad6c'/>
<id>urn:sha1:d13801ef1d14fe46f97630b56e01200b337dad6c</id>
<content type='text'>
Add the regmap_read_poll_timeout() macro based on the Linux implementation
to simplify register polling with configurable timeout and sleep.

Tested-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Acked-by: Jagan Teki &lt;jagan@openedev.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>regmap: Add overview documentation</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-15T07:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=a6d4b0608b79023c703ca2ad1cbdfa784160449b'/>
<id>urn:sha1:a6d4b0608b79023c703ca2ad1cbdfa784160449b</id>
<content type='text'>
Add some overview documentation that explains the purpose and some of
the features and limitations of the regmap interface.

Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
</content>
</entry>
<entry>
<title>regmap: Add endianness support</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-15T07:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=9b77fe3b80b038af7114f7dae4934773bb026f8e'/>
<id>urn:sha1:9b77fe3b80b038af7114f7dae4934773bb026f8e</id>
<content type='text'>
Add support for switching the endianness of regmap accesses via the
"little-endian", "big-endian", and "native-endian" boolean properties in
the device tree.

The default endianness is native endianness.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Daniel Schwierzeck &lt;daniel.schwierzeck@gmail.com&gt;
</content>
</entry>
<entry>
<title>regmap: Define regmap_{get,set}</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-15T07:24:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=e936397ae98b3a67ba7deaef0cc8a56f36e66b58'/>
<id>urn:sha1:e936397ae98b3a67ba7deaef0cc8a56f36e66b58</id>
<content type='text'>
It would be convenient if one could use the regmap API in conjunction
with register maps defined as structs (i.e. structs that directly mirror
the memory layout of the registers in question). A similar approach was
planned with the regmap_write32/regmap_read32 macros, but was never
used.

Hence, implement regmap_set/regmap_range_set and
regmap_get/regmap_range_get macros, which, given a register map, a
struct describing the layout of the register map, and a member name
automatically produce regmap_read/regmap_write calls that access the
specified member in the register map.

Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
</content>
</entry>
<entry>
<title>regmap: Support reading from specific range</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-15T07:24:11Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=d5c7bd985d759b7aade2700c11890821e6187e4b'/>
<id>urn:sha1:d5c7bd985d759b7aade2700c11890821e6187e4b</id>
<content type='text'>
It is useful to be able to treat the different ranges of a regmap
separately to be able to use distinct offset for them, but this is
currently not implemented in the regmap API.

To preserve backwards compatibility, add regmap_read_range and
regmap_write_range functions that take an additional parameter
'range_num' that identifies the range to operate on.

Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
</content>
</entry>
<entry>
<title>regmap: Add raw read/write functions</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-15T07:24:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=84ff8f622d2e2aeb67c1cec1c2c814895648fca8'/>
<id>urn:sha1:84ff8f622d2e2aeb67c1cec1c2c814895648fca8</id>
<content type='text'>
The regmap functions currently assume that all register map accesses
have a data width of 32 bits, but there are maps that have different
widths.

To rectify this, implement the regmap_raw_read and regmap_raw_write
functions from the Linux kernel API that specify the width of a desired
read or write operation on a regmap.

Implement the regmap_read and regmap_write functions using these raw
functions in a backwards-compatible manner.

Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>regmap: Fix documentation</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Mario Six</name>
</author>
<published>2018-10-04T07:00:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=604b6696ed147bbd0cd9c7b2f319e7dd5096ca14'/>
<id>urn:sha1:604b6696ed147bbd0cd9c7b2f319e7dd5096ca14</id>
<content type='text'>
The documentation in regmap.h is not in kernel-doc format. Correct this.

Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
</content>
</entry>
<entry>
<title>regmap: add regmap_update_bits() helper</title>
<updated>2018-05-08T13:07:40Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2018-04-27T09:56:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=285cbcf97f2b1dcadedb6835b3e9662c7fba0fe2'/>
<id>urn:sha1:285cbcf97f2b1dcadedb6835b3e9662c7fba0fe2</id>
<content type='text'>
Add the regmap_update_bits() to simply the read/modify/write of registers
in a single command. The function is taken from Linux regmap
implementation.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
