FDT for MPC5200, CPU revision, MSCAN

Grant Likely grant.likely at secretlab.ca
Sat Apr 21 00:02:51 EST 2007


On 4/20/07, Wolfgang Grandegger <wg at grandegger.com> wrote:
> Wolfgang Grandegger wrote:
> > Hello,
> >
> > is there a way to distinguish the CPU revision (Rev.A vs. Rev.B) of the
> > MPC5200, preferably at run time? Or should this be defined in the FDT?
> > I ask, because some settings depend on the CPU revision due to hardware
> > bugs, like the clock source used for MSCAN.

This stuff is defined in the device tree.  If you need to detect the
version at runtime, then ideally your bootloader will read the PVR/SVR
to determine the chip version and then pass the correct FDT to the
kernel.

> I found the information here:
>
> $ cat Documentation/powerpc/mpc52xx-device-tree-bindings.txt
<snip>
> Sorry for the noise.

Not noise; good question.

g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195



More information about the Linuxppc-embedded mailing list