• Michael Walle's avatar
    soc: fsl: guts: add serial_number support · 786dde1e
    Michael Walle authored
    Most layerscapes provide a security fuse processor where the vendor
    will store a unique id per part. Unfortunately, we cannot use the
    corresponding efuse driver because this driver needs to be ready
    early during the boot phase. To get the unique identifier, we just
    need to access two registers. Thus we just search the device tree
    for the corresponding device, map its memory to read the id and then
    unmap it again.
    
    Because it is likely that the offset within the fuses is dependent
    on the SoC, we need a per SoC data. Also, the compatible string is
    different among the SoCs. For now, this add support for the LS1028A
    SoC.
    Signed-off-by: default avatarMichael Walle <michael@walle.cc>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    786dde1e
guts.c 6.47 KB