lkml.org 
[lkml]   [2011]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[22/55] ARM: pxa/cm-x300: fix V3020 RTC functionality
    2.6.32-longterm review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Igor Grinberg <grinberg@compulab.co.il>

    commit 6c7b3ea52e345ab614edb91d3f0e9f3bb3713871 upstream.

    While in sleep mode the CS# and other V3020 RTC GPIOs must be driven
    high, otherwise V3020 RTC fails to keep the right time in sleep mode.

    Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
    Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/arm/mach-pxa/cm-x300.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    --- a/arch/arm/mach-pxa/cm-x300.c
    +++ b/arch/arm/mach-pxa/cm-x300.c
    @@ -143,10 +143,10 @@ static mfp_cfg_t cm_x300_mfp_cfg[] __ini
    GPIO99_GPIO, /* Ethernet IRQ */

    /* RTC GPIOs */
    - GPIO95_GPIO, /* RTC CS */
    - GPIO96_GPIO, /* RTC WR */
    - GPIO97_GPIO, /* RTC RD */
    - GPIO98_GPIO, /* RTC IO */
    + GPIO95_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC CS */
    + GPIO96_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC WR */
    + GPIO97_GPIO | MFP_LPM_DRIVE_HIGH, /* RTC RD */
    + GPIO98_GPIO, /* RTC IO */

    /* Standard I2C */
    GPIO21_I2C_SCL,



    \
     
     \ /
      Last update: 2011-08-06 02:09    [W:4.127 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site