]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: imx6: report soc info via soc device
authorShawn Guo <shawn.guo@linaro.org>
Tue, 13 Aug 2013 08:59:28 +0000 (16:59 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 21 Oct 2013 01:14:54 +0000 (09:14 +0800)
commita28875462bd493fc1bb041c21f811b4a0577a497
treec35823e0705c4e173f38aad2b4e5764e18692f94
parentd8ce823fb34e6b50b1d9cb804c1067546eab9cee
ARM: imx6: report soc info via soc device

The patch enables soc bus infrastructure and adds a function
imx_soc_device_init() to report soc info via soc device interface for
imx6qdl and imx6sl.  With the support, user space can get soc related
info by looking at sysfs like below.

  $ cat /sys/devices/soc0/machine
  Freescale i.MX6 Quad SABRE Smart Device Board
  $ cat /sys/devices/soc0/family
  Freescale i.MX
  $ cat /sys/devices/soc0/soc_id
  i.MX6Q
  $ cat /sys/devices/soc0/revision
  1.2

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/common.h
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-imx/mach-imx6sl.c
arch/arm/mach-imx/mxc.h