aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/mach-imx/mach-imx6sl.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-08-13 16:59:28 +0800
committerShawn Guo <shawn.guo@linaro.org>2013-10-21 09:14:54 +0800
commita28875462bd493fc1bb041c21f811b4a0577a497 (patch)
treec35823e0705c4e173f38aad2b4e5764e18692f94 /arch/arm/mach-imx/mach-imx6sl.c
parentARM: imx: use imx_init_revision_from_anatop() on imx6sl (diff)
downloadwireguard-linux-a28875462bd493fc1bb041c21f811b4a0577a497.tar.xz
wireguard-linux-a28875462bd493fc1bb041c21f811b4a0577a497.zip
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>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6sl.c')
-rw-r--r--arch/arm/mach-imx/mach-imx6sl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c
index 4ce9ae58ed0c..f01aaabd3254 100644
--- a/arch/arm/mach-imx/mach-imx6sl.c
+++ b/arch/arm/mach-imx/mach-imx6sl.c
@@ -36,9 +36,15 @@ static void __init imx6sl_fec_init(void)
static void __init imx6sl_init_machine(void)
{
+ struct device *parent;
+
mxc_arch_reset_init_dt();
- of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+ parent = imx_soc_device_init();
+ if (parent == NULL)
+ pr_warn("failed to initialize soc device\n");
+
+ of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);
imx6sl_fec_init();
}