arm: tegra: soc: Use sys_soc to expose SoC UID
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Mon, 20 Feb 2017 17:44:00 +0000 (23:14 +0530)
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 31 Mar 2017 08:25:39 +0000 (10:25 +0200)
commiteb7023a9a63f05f9b6212cda7d6efedd8691e349
treea0691bd73ed8fb60b40f7b2078e47b1d6404fcfb
parent8dd025ef21c4136f4b6bf1e4fbcf87616541e2bc
arm: tegra: soc: Use sys_soc to expose SoC UID

Use the standard sys_soc interface to expose the SoC UID information.

e.g.
~# cat /sys/bus/soc/devices/soc0/machine
NVIDIA Tegra
~# cat /sys/bus/soc/devices/soc0/family
NVIDIA Tegra30
~# cat /sys/bus/soc/devices/soc0/revision
A03
~# cat /sys/bus/soc/devices/soc0/soc_id
98317451306464792

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/board.h
arch/arm/mach-tegra/common.c