1. 12 4月, 2013 4 次提交
    • S
      ARM: imx: do not use regmap_read for ANADIG_DIGPROG · 7006ba24
      Shawn Guo 提交于
      Function imx_anatop_get_digprog() that reads register ANADIG_DIGPROG is
      called to identify silicon version.  Users might query silicon version
      earlier than regmap subsystem is ready.  For example, imx6q clock driver
      query revision in mx6q_clocks_init(), where regmap is not initialized
      yet.
      
      Change imx_anatop_get_digprog() to map anatop block and read
      ANADIG_DIGPROG in the native way, so that the function can work at very
      early stage.
      
      While at it, let's move imx_print_silicon_rev() back to
      imx6q_timer_init() to have the message show up a little earlier.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      7006ba24
    • F
      ARM: mach-imx: anatop: Include "common.h" · fcc4f9fc
      Fabio Estevam 提交于
      Fix the following sparse warnings:
      
      arch/arm/mach-imx/anatop.c:56:6: warning: symbol 'imx_anatop_pre_suspend' was not declared. Should it be static?
      arch/arm/mach-imx/anatop.c:62:6: warning: symbol 'imx_anatop_post_resume' was not declared. Should it be static?
      arch/arm/mach-imx/anatop.c:68:6: warning: symbol 'imx_anatop_usb_chrg_detect_disable' was not declared. Should it be static?
      arch/arm/mach-imx/anatop.c:78:5: warning: symbol 'imx_anatop_get_digprog' was not declared. Should it be static?
      arch/arm/mach-imx/anatop.c:86:13: warning: symbol 'imx_anatop_init' was not declared. Should it be static?
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      fcc4f9fc
    • A
      ARM: imx: enable RBC to support anatop LPM mode · 263475d4
      Anson Huang 提交于
      RBC is to control whether some ANATOP sub modules
      can enter lpm mode when SOC is into STOP mode, if
      RBC is enabled and PMIC_VSTBY_REQ is set, ANATOP
      will have below behaviors:
      
      1. Digital LDOs(CORE, SOC and PU) are bypassed;
      2. Analog LDOs(1P1, 2P5, 3P0) are disabled;
      
      As the 2P5 is necessary for DRAM IO pre-drive in
      STOP mode, so we need to enable weak 2P5 in STOP
      mode when 2P5 LDO is disabled.
      
      For RBC settings, there are some rules as below
      due to hardware design:
      
      1. All interrupts must be masked during operating
         RBC registers;
      2. At least 2 CKIL(32K) cycles is needed after the
         RBC setting is changed.
      Signed-off-by: NAnson Huang <b20788@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      263475d4
    • A
      ARM: imx: enable anatop suspend/resume · e95dddb3
      Anson Huang 提交于
      Anatop module have sereval configurations for user
      to reduce the power consumption in suspend, provide
      suspend/resume interface for further use and enable
      fet_odrive to reduce CORE LDO leakage during suspend.
      
      As we have a common anatop file, remove all the operations
      of anatop module in other files, use anatop interfaces to
      do that.
      Signed-off-by: NAnson Huang <b20788@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      e95dddb3