soc/tegra: fuse: Correct straps' address for older Tegra124 device trees
[ Upstream commit 2d9ea1934f8ef0dfb862d103389562cc28b4fc03 ] Trying to read out Chip ID before APBMISC registers are mapped won't succeed, in a result Tegra124 gets a wrong address for the HW straps register if machine uses an old outdated device tree. Fixes: 297c4f3dcbff ("soc/tegra: fuse: Restrict legacy code to 32-bit ARM") Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c5ad2a64c7
commit
c8904cd4cc
@ -134,7 +134,7 @@ void __init tegra_init_apbmisc(void)
|
||||
apbmisc.flags = IORESOURCE_MEM;
|
||||
|
||||
/* strapping options */
|
||||
if (tegra_get_chip_id() == TEGRA124) {
|
||||
if (of_machine_is_compatible("nvidia,tegra124")) {
|
||||
straps.start = 0x7000e864;
|
||||
straps.end = 0x7000e867;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user