ARM: bcm2835: Set Serial number and Revision
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 3 Jun 2015 10:26:13 +0000 (12:26 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:47 +0000 (11:32 +0000)
commit16826a7fcb06304c61f2ad8e88c3bd968781bab8
treec5513184c832bd3ad3be9f157e3a0ecfed746e17
parenta86691afaa0b7278f8023e88622e86ebd3c69d39
ARM: bcm2835: Set Serial number and Revision

The VideoCore bootloader passes in Serial number and
Revision number through Device Tree. Make these available to
userspace through /proc/cpuinfo.

Mainline status:

There is a commit in linux-next that standardize passing the serial
number through Device Tree (string: /serial-number):
ARM: 8355/1: arch: Show the serial number from devicetree in cpuinfo

There was an attempt to do the same with the revision number, but it
didn't get in:
[PATCH v2 1/2] arm: devtree: Set system_rev from DT revision

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
arch/arm/mach-bcm/board_bcm2835.c