aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx6q.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-08-13 04:59:28 -0400
committerShawn Guo <shawn.guo@linaro.org>2013-10-20 21:14:54 -0400
commita28875462bd493fc1bb041c21f811b4a0577a497 (patch)
treec35823e0705c4e173f38aad2b4e5764e18692f94 /arch/arm/mach-imx/mach-imx6q.c
parentd8ce823fb34e6b50b1d9cb804c1067546eab9cee (diff)
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-imx6q.c')
-rw-r--r--arch/arm/mach-imx/mach-imx6q.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 1bdd0be429b9..049e36edc143 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -162,12 +162,18 @@ static void __init imx6q_1588_init(void)
162 162
163static void __init imx6q_init_machine(void) 163static void __init imx6q_init_machine(void)
164{ 164{
165 struct device *parent;
166
165 imx_print_silicon_rev(cpu_is_imx6dl() ? "i.MX6DL" : "i.MX6Q", 167 imx_print_silicon_rev(cpu_is_imx6dl() ? "i.MX6DL" : "i.MX6Q",
166 imx_get_soc_revision()); 168 imx_get_soc_revision());
167 169
170 parent = imx_soc_device_init();
171 if (parent == NULL)
172 pr_warn("failed to initialize soc device\n");
173
168 imx6q_enet_phy_init(); 174 imx6q_enet_phy_init();
169 175
170 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 176 of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);
171 177
172 imx_anatop_init(); 178 imx_anatop_init();
173 imx6q_pm_init(); 179 imx6q_pm_init();