commit | 6dfe426e517042402efa3cd461af3ef79ee3025c | [log] [tgz] |
---|---|---|
author | Dario Binacchi <dariobin@libero.it> | Sat May 01 17:05:22 2021 +0200 |
committer | Lokesh Vutla <lokeshvutla@ti.com> | Wed May 12 16:27:57 2021 +0530 |
tree | e836f50770bcc5a6b4c72c7d12ad18c9dd1882a1 | |
parent | f906bd0bde785302a9264b6a9ef7f784af2ec583 [diff] |
clk: ti: add custom API for memory access As pointed by [1] and [2], commit d64b9cdcd4 ("fdt: translate address if #size-cells = <0>") is wrong: - It makes every 'reg' DT property translatable. It changes the address translation so that for an I2C 'reg' address you'll get back as reg the I2C controller address + reg value. - The quirk must be fixed with platform code. The clk_ti_get_reg_addr() is the platform code able to make the correct address translation for the AM33xx clocks registers. Its implementation was inspired by the Linux Kernel code. [1] https://patchwork.ozlabs.org/project/uboot/patch/1614324949-61314-1-git-send-email-bmeng.cn@gmail.com/ [2] https://lore.kernel.org/linux-clk/20210402192054.7934-1-dariobin@libero.it/T/ Signed-off-by: Dario Binacchi <dariobin@libero.it>