1. 23 11月, 2014 1 次提交
  2. 01 9月, 2014 1 次提交
  3. 18 7月, 2014 15 次提交
  4. 12 5月, 2014 1 次提交
  5. 30 4月, 2014 1 次提交
  6. 05 3月, 2014 4 次提交
  7. 19 2月, 2014 1 次提交
    • S
      ARM: imx6: build pm-imx6q.c independently of CONFIG_PM · 28a9f3b0
      Shawn Guo 提交于
      When building a kernel image with only CONFIG_CPU_IDLE but no CONFIG_PM,
      we will get the following link error.
      
        LD      init/built-in.o
      arch/arm/mach-imx/built-in.o: In function `imx6q_enter_wait':
      platform-spi_imx.c:(.text+0x25c0): undefined reference to `imx6q_set_lpm'
      platform-spi_imx.c:(.text+0x25d4): undefined reference to `imx6q_set_lpm'
      arch/arm/mach-imx/built-in.o: In function `imx6q_cpuidle_init':
      platform-spi_imx.c:(.init.text+0x75d4): undefined reference to `imx6q_set_chicken_bit'
      make[1]: *** [vmlinux] Error 1
      
      Since pm-imx6q.c has been a collection of library functions that access
      CCM low-power registers used by not only suspend but also cpuidle and
      other drivers, let's build pm-imx6q.c independently of CONFIG_PM to fix
      above error.
      Reported-by: NLucas Stach <l.stach@pengutronix.de>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: stable@vger.kernel.org
      Acked-by: NChristian Gmeiner <christian.gmeiner@gmail.com>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      28a9f3b0
  8. 09 12月, 2013 1 次提交
    • G
      ARM: imx: add support code for IMX50 based machines · 374daac4
      Greg Ungerer 提交于
      Add machine support code for the Freescale IMX50 SoC.
      
      The IMX50 is quite similar to the Freescale IMX53, and contains many of the
      same periperhal hardware modules, at the same address offsets as the IMX53.
      (Notable exceptions are that the IMX50 contains no CAN bus hardware, less
      GPIO, no VPU, it does contain an Electrophoretic display controller though).
      
      This support code uses some of the IMX53 setup code to reduce duplication
      of what would be identical init IO setup.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      374daac4
  9. 11 11月, 2013 1 次提交
    • S
      ARM: imx: remove imx_src_prepare_restart() call · b6e23bb6
      Shawn Guo 提交于
      There is ~10% possibility that the following emergency restart command
      fails to reboot imx6q.
      
      $ echo b > /proc/sysrq-trigger
      
      The IMX restart routine mxc_restart() assumes that it will always run on
      primary core, and will call imx_src_prepare_restart() to disable
      secondary cores in order to get them come to online in the following
      boot.  However, the assumption is only true for normal kernel_restart()
      case where migrate_to_reboot_cpu() will be called to migrate to primary
      core, but not necessarily true for emergency_restart() case.  So when
      emergency_restart() calls into mxc_restart() on any secondary core,
      system will hang immediately once imx_src_prepare_restart() is called
      to disabled secondary cores.  Since emergency_restart() is defined as a
      function that is safe to call in interrupt context, we cannot just call
      migrate_to_reboot_cpu() to fix the issue.
      
      Fortunately, we just found that the issue can be fixed at imx6q platform
      level.  We used to call imx_src_prepare_restart() to disable all
      secondary cores before resetting hardware.  Otherwise, the secondary
      will fail come to online in the reboot.  However, we recently found that
      after commit 6050d181 (ARM: imx: reset core along with enable/disable
      operation) comes to play, we do not need to reset the secondary cores
      any more.  That said, mxc_restart() now can run on any core to reboot
      the system, as long as we remove the imx_src_prepare_restart() call from
      mxc_restart().
      
      So let's simply remove imx_src_prepare_restart() call to fix the above
      emergency restart failure.
      Reported-by: NJiada Wang <jiada_wang@mentor.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      b6e23bb6
  10. 21 10月, 2013 9 次提交
    • S
      ARM: imx: ensure dsm_request signal is not asserted when setting LPM · d48866fe
      Shawn Guo 提交于
      There is a defect in imx6 LPM design.  When SW tries to enter low power
      mode with following sequence, the chip will enter low power mode before
      A9 CPU execute WFI instruction:
      
      1. Set CCM_CLPCR[1:0] to 2'b00;
      2. ARM CPU enters WFI;
      3. ARM CPU wakeup from an interrupt event, which is masked by GPC or not
         visible to GPC, such as interrupt from local timer;
      4. Set CCM_CLPCR[1:0] to 2'b01 or 2'b10;
      5. ARM CPU execute WFI.
      
      Before the last step, the chip will enter WAIT mode if CCM_CLPCR[1:0] is
      set to 2'b01, or enter STOP mode if CCM_CLPCR[1:0] is set to 2'b10.
      
      The patch implements a recommended workaround for this issue.
      
      1. SW triggers irq #32(IOMUX) to be always pending manually by setting
         IOMUX_GPR1_GINT bit;
      2. SW should then unmask it in GPC before setting CCM LPM;
      3. SW should mask it right after CCM LPM is set (bit0-1 of CCM_CLPCR).
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      d48866fe
    • S
      ARM: imx6q: move low-power code out of clock driver · 9e8147bb
      Shawn Guo 提交于
      The LPM (Low Power Mode) code that currently sits in imx6q clock driver
      will be reused by imx6sl.  Let's move it into pm-imx6q.c, so that we
      can keep clock driver SoC specific and reuse pm-imx6q.c on imx6sl.
      
      In order to avoid adding another ioremap for CCM block,
      imx6q_pm_set_ccm_base() is created to let clock driver set up ccm_base
      for pm code.
      
      During the move, the unused CCGR macros get removed.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      9e8147bb
    • S
      ARM: imx: drop extern with function prototypes in common.h · 803648db
      Shawn Guo 提交于
      Since commit 70dc8a48 (checkpatch: warn when using extern with function
      prototypes in .h files), we will get checkpatch warning when updating
      common.h following the existing convention which has extern for function
      prototypes.
      
      Let's change the convention to not use extern with function prototypes
      in this header.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      803648db
    • S
      ARM: imx: replace imx6q_restart() with mxc_restart() · 87a84b69
      Shawn Guo 提交于
      The imx6q_restart() works fine with normal reboot but will run into
      problem with emergency reboot like sysrq-b.  In that case, of_iomap()
      gets called from interrupt context and hence triggers the BUG_ON in
      __get_vm_area_node().
      
      Actually, since commit c1e31d12 (ARM: imx: create
      mxc_arch_reset_init_dt() for DT boot), imx6q/dl should try to use
      mxc_restart() by calling mxc_arch_reset_init_dt() beforehand, where
      things like of_iomap() can be done.
      
      The patch updates mxc_restart() a little bit to get it work for imx6q/dl
      and kill imx6q_restart() completely.
      Reported-by: NNathan Lynch <nathan_lynch@mentor.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      87a84b69
    • S
      ARM: imx: remove stale mx53_display_revision() declaration · 7655fe53
      Shawn Guo 提交于
      The mx53_display_revision() declaration in common.h is stale and used
      nowhere, so remove it.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      7655fe53
    • S
      ARM: imx6: report soc info via soc device · a2887546
      Shawn Guo 提交于
      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: NShawn Guo <shawn.guo@linaro.org>
      a2887546
    • S
      ARM: imx: add a common function to initialize revision from anatop · f1c6f314
      Shawn Guo 提交于
      The patch creates a common function imx_init_revision_from_anatop() by
      merging imx6q_init_revision() and imx_anatop_get_digprog(), so that any
      SoC that encodes revision info in anatop can use it to initialize
      revision.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      f1c6f314
    • S
      ARM: imx6q: use common soc revision helpers · 3f75978b
      Shawn Guo 提交于
      It calls imx_set_soc_revision() to set up soc revision in
      imx6q_init_revision(), and replaces all the occurrences of
      imx6q_revision() with common helper imx_get_soc_revision().
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      3f75978b
    • S
      ARM: imx: add soc revision helper functions · bfefdff8
      Shawn Guo 提交于
      Similar to what we do for cpu type, the patch adds helper functions
      imx_set_soc_revision() and imx_get_soc_revision() to maintain
      imx_soc_revision in cpu.c.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      bfefdff8
  11. 30 9月, 2013 1 次提交
  12. 22 8月, 2013 2 次提交
    • P
      ARM: imx: Move anatop related from board file to anatop driver · ddcb9aa6
      Peter Chen 提交于
      Move anatop related (For USB) from board file to anatop driver
      Signed-off-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      ddcb9aa6
    • F
      ARM: mx53: Allow suspend/resume · 547dd1e0
      Fabio Estevam 提交于
      Current imx53_pm_init() implementation is incomplete as it lacks calling
      suspend_set_ops().
      
      Use a single imx5_pm_init() function to handle both mx51 and mx53.
      
      This allows mx53 to enter in low-power mode.
      
      Tested on a mx53qsb:
      
      root@freescale /$ echo mem > /sys/power/state
      PM: Syncing filesystems ... done.
      mmc0: card e624 removed
      Freezing user space processes ... (elapsed 0.001 seconds) done.
      Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
      Suspending console(s) (use no_console_suspend to debug)
      
      ... (Press Power button)
      
      PM: suspend of devices complete after 17.067 msecs
      PM: suspend devices took 0.020 seconds
      PM: late suspend of devices complete after 0.954 msecs
      PM: noirq suspend of devices complete after 1.288 msecs
      Disabling non-boot CPUs ...
      PM: noirq resume of devices complete after 0.680 msecs
      PM: early resume of devices complete after 0.914 msecs
      PM: resume of devices complete after 44.955 msecs
      PM: resume devices took 0.050 seconds
      Restarting tasks ... done.
      mmc0: host does not support reading read-only switch. assuming write-enable.
      mmc0: new SDHC card at address e624
      mmcblk0: mmc0:e624 SU04G 3.69 GiB
       mmcblk0: p1 p2 p3
      libphy: 63fec000.etherne:00 - Link is Down
      libphy: 63fec000.etherne:00 - Link is Up - 100/Full
      root@freescale /$
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      547dd1e0
  13. 16 8月, 2013 1 次提交
  14. 10 7月, 2013 1 次提交