mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
nvmem: rockchip-efuse: parse 'rockchip,efuse-size'
The eFuse size is defined in property <reg> before, but the length of registers is not equal to the size on some platforms, so we add a new property to redefine it. Signed-off-by: Finley Xiao <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
683618b063
commit
32277723ba
2 changed files with 7 additions and 1 deletions
|
|
@ -217,7 +217,9 @@ static int rockchip_efuse_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(efuse->clk);
|
||||
|
||||
efuse->dev = &pdev->dev;
|
||||
econfig.size = resource_size(res);
|
||||
if (of_property_read_u32(dev->of_node, "rockchip,efuse-size",
|
||||
&econfig.size))
|
||||
econfig.size = resource_size(res);
|
||||
econfig.reg_read = match->data;
|
||||
econfig.priv = efuse;
|
||||
econfig.dev = efuse->dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue