mirror of
https://xff.cz/git/u-boot/
synced 2025-09-09 12:42:08 +02:00
cpu: bmips: fix probe to get the address
In the device tree, the address for cpu is located in
the node "cpus", not in the cpu node (for exemple cpu@0).
So when probing cpu, the cpu address must be read in the
cpu parent.
The commit "cpu: bmips: convert to use live dt"
(sha1: c444afbbef
)
change this behaviour and read the address in the
cpu node when probing cpu.
We fix this by reading the address in the cpu parent.
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
d0626e0b3c
commit
cef1f0c7a4
@@ -407,7 +407,7 @@ int bmips_cpu_probe(struct udevice *dev)
|
|||||||
const struct bmips_cpu_hw *hw =
|
const struct bmips_cpu_hw *hw =
|
||||||
(const struct bmips_cpu_hw *)dev_get_driver_data(dev);
|
(const struct bmips_cpu_hw *)dev_get_driver_data(dev);
|
||||||
|
|
||||||
priv->regs = dev_remap_addr(dev);
|
priv->regs = dev_remap_addr(dev_get_parent(dev));
|
||||||
if (!priv->regs)
|
if (!priv->regs)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user