rk808:support pmu rk808 sleep mode
author张晴 <zhangqing@rock-chips.com>
Mon, 25 Mar 2013 09:44:44 +0000 (17:44 +0800)
committer张晴 <zhangqing@rock-chips.com>
Mon, 25 Mar 2013 09:44:44 +0000 (17:44 +0800)
arch/arm/mach-rk30/board-pmu-rk808.c
drivers/mfd/rk808-irq.c
drivers/mfd/rk808.c
drivers/rtc/rtc-rk808.c
include/linux/mfd/rk808.h

index 63ab3077ea304d36b73ce635d50cedce3d9b13ae..b24fd80a5b132577fb9a7c4d1d9180d0e234ea2b 100755 (executable)
@@ -520,7 +520,6 @@ void __sramfunc board_pmu_rk808_suspend(void)
 {      
        #ifdef CONFIG_CLK_SWITCH_TO_32K
         sram_gpio_set_value(pmic_sleep, GPIO_HIGH);  
-       while(1);
        #endif
 }
 void __sramfunc board_pmu_rk808_resume(void)
index 416ad5de79c75c912ef19e074e3bce39512a2080..229a968f7e71a93f0154e96f1a1750485242ab6a 100755 (executable)
@@ -1,10 +1,7 @@
 /*
- * rk808-irq.c  --  TI TPS6591x
+ * rk808-irq.c 
  *
- * Copyright 2010 Texas Instruments Inc.
- *
- * Author: Graeme Gregory <gg@slimlogic.co.uk>
- * Author: Jorge Eduardo Candelaria <jedu@slimlogic.co.uk>
+ * Author: zhangqing <zhangqing@rock-chips.com>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under  the terms of the GNU General  Public License as published by the
index 9d261131bbdaf1d7677bb110db50d3efbab22b35..09e8b909ab92d8a1e90f49f2c07dce0833127035 100755 (executable)
@@ -1,8 +1,6 @@
 /*
- * Regulator driver for Active-semi rk808 PMIC chip for rk29xx
+ * Regulator driver for rk808 PMIC chip for rk31xx
  *
- * Copyright (C) 2010, 2011 ROCKCHIP, Inc.
-
  * Based on rk808.c that is work by zhangqing<zhangqing@rock-chips.com>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -752,9 +750,8 @@ int rk808_bulk_read(struct rk808 *rk808, u8 reg,
 {
        int ret;
                     
-//#if defined(CONFIG_MFD_RK610)    
-#if 0 
-       int i;             //Solve communication conflict when rk610 and 65910 on the same i2c 
+#if defined(CONFIG_MFD_RK610)    
+       int i;             //Solve communication conflict when rk610 and 808 on the same i2c 
 
        mutex_lock(&rk808->io_lock);
        for(i=0; i<count; i++){
@@ -785,9 +782,8 @@ int rk808_bulk_write(struct rk808 *rk808, u8 reg,
 {
        int ret;
        
-//#if defined(CONFIG_MFD_RK610)    
-#if 0
-       int i;       // //Solve communication conflict when rk610 and 65910 on the same i2c 
+#if defined(CONFIG_MFD_RK610)    
+       int i;       // //Solve communication conflict when rk610 and 808 on the same i2c 
 
        mutex_lock(&rk808->io_lock);
        for(i=0; i<count; i++){
index 9f494e33582354fa3ca5af5c0f84b8cce524b9e7..8f1b579e3ba376e90ac503acac0560867fe7bdb5 100755 (executable)
@@ -1,9 +1,7 @@
 /*
- *     Real Time Clock driver for Wolfson Microelectronics rk808
+ *     Real Time Clock driver for  rk808
  *
- *     Copyright (C) 2009 Wolfson Microelectronics PLC.
- *
- *  Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
+ *  Author: zhangqing <zhangqing@rock-chips.com>
  *
  *  This program is free software; you can redistribute  it and/or modify it
  *  under  the terms of  the GNU General  Public License as published by the
index aff110a6f527616d86762f275c9f967d7e13282b..374dc2c53e082bd11614d6747d48ff6702e7896e 100755 (executable)
@@ -1,6 +1,4 @@
 /* include/linux/regulator/rk808.h
- *
- * Copyright (C) 2011 ROCKCHIP, Inc.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and