ragmap机制

http://tinylab.org/kernel-explore-regmap-framework/
http://kcmetercec.top/2018/05/25/linux_driver_regmap_usage/

regmap 读写逻辑

_regmap_read函数逻辑: 如果设置cache_bypass,读hardware。如果没有设置cache_bypass,读cache,如果cache有reg则返回,没有reg则读hardware。同时更新cache。

_regmap_write 函数逻辑: 如果设置cache_bypass则写hardware,如果没有设置cache_bypass,写 cache,写 hardware。

posted @ 2020-11-12 20:29  bobfly1984  阅读(228)  评论(0编辑  收藏  举报