MLK-11322-02 ARM: imx: add io map for pm code
authorBai Ping <b51503@freescale.com>
Wed, 5 Aug 2015 16:27:47 +0000 (00:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:46:55 +0000 (14:46 -0500)
add necessary io memory mapping used by power management.

Signed-off-by: Bai Ping <b51503@freescale.com>
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-imx/mach-imx6sl.c
arch/arm/mach-imx/mach-imx6sx.c
arch/arm/mach-imx/pm-imx6.c

index 2a54969..bf38da1 100644 (file)
@@ -484,6 +484,7 @@ static void __init imx6q_map_io(void)
 {
        debug_ll_io_init();
        imx_scu_map_io();
+       imx6_pm_map_io();
 }
 
 static void __init imx6q_init_irq(void)
index 4ed2fb8..215d73c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Freescale Semiconductor, Inc.
+ * Copyright 2013-2015 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -74,6 +74,12 @@ static void __init imx6sl_init_irq(void)
        imx6_pm_ccm_init("fsl,imx6sl-ccm");
 }
 
+static void __init imx6sl_map_io(void)
+{
+       debug_ll_io_init();
+       imx6_pm_map_io();
+}
+
 static const char * const imx6sl_dt_compat[] __initconst = {
        "fsl,imx6sl",
        NULL,
@@ -82,6 +88,7 @@ static const char * const imx6sl_dt_compat[] __initconst = {
 DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
        .l2c_aux_val    = 0,
        .l2c_aux_mask   = ~0,
+       .map_io         = imx6sl_map_io,
        .init_irq       = imx6sl_init_irq,
        .init_machine   = imx6sl_init_machine,
        .init_late      = imx6sl_init_late,
index fafd72b..3f8b0df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Freescale Semiconductor, Inc.
+ * Copyright 2014-2015 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -106,6 +106,12 @@ static void __init imx6sx_init_late(void)
                platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
 }
 
+static void __init imx6sx_map_io(void)
+{
+       debug_ll_io_init();
+       imx6_pm_map_io();
+}
+
 static const char * const imx6sx_dt_compat[] __initconst = {
        "fsl,imx6sx",
        NULL,
@@ -114,6 +120,7 @@ static const char * const imx6sx_dt_compat[] __initconst = {
 DT_MACHINE_START(IMX6SX, "Freescale i.MX6 SoloX (Device Tree)")
        .l2c_aux_val    = 0,
        .l2c_aux_mask   = ~0,
+       .map_io         = imx6sx_map_io,
        .init_irq       = imx6sx_init_irq,
        .init_machine   = imx6sx_init_machine,
        .dt_compat      = imx6sx_dt_compat,
index 7833d94..e287a94 100644 (file)
@@ -223,6 +223,7 @@ static struct map_desc imx6_pm_io_desc[] __initdata = {
        imx_map_entry(MX6Q, CCM, MT_DEVICE),
        imx_map_entry(MX6Q, ANATOP, MT_DEVICE),
        imx_map_entry(MX6Q, GPC, MT_DEVICE),
+       imx_map_entry(MX6Q, L2, MT_DEVICE),
 };
 
 static const char * const low_power_ocram_match[] __initconst = {
@@ -483,8 +484,6 @@ void __init imx6_pm_map_io(void)
 {
        unsigned long i;
 
-       pr_info("pm_map_io init\n\n");
-
        iotable_init(imx6_pm_io_desc, ARRAY_SIZE(imx6_pm_io_desc));
 
        /*