summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2024-02-22 09:16:15 +0100
committerAnup Patel <[email protected]>2024-02-22 18:01:51 +0530
commit4d8569df7bd73238d8a02bb5ec850ed3c3c97093 (patch)
tree501b6a542b773ba4578b100a73b2a40ef4e595d5 /include
parent034af1f85e8147cb5753933d231f5bf12c23bfb4 (diff)
platform: starfive: get I2C offset address from clocks property
The current code gets the I2C offset address using the device tree node name: it get the I2C device index from the 4th character in the node name (for example, "i2c5" -> i2c device 5). However, the device tree node's name in U-Boot is actually just "i2c" without the number, so the current code cannot be used with the device tree from U-Boot. Get the I2C offset address from the "clocks" property instead. Signed-off-by: Nam Cao <[email protected]> Reviewed-by: Minda Chen <[email protected]> Tested-by: Minda Chen <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions