s5pc110: aries: GPIO powerdown mode setting update done.
authorMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 1 Feb 2010 08:51:39 +0000 (17:51 +0900)
committerMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 1 Feb 2010 08:51:39 +0000 (17:51 +0900)
Aries sleep current: 1.22~1.24mA @ 4.2V

Based on the LSI suggestion on Aries. Some of the suggestions
are dropped because they increase the power consumption.

board/samsung/universal/gpio_setting.h

index a549281..ede4ada 100644 (file)
@@ -333,9 +333,9 @@ static struct gpio_powermode aries_powerdown_modes[] = {
                PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DIS(3) |
                PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
        }, {    /* S5PC110(ARIES)_GPIO_J1_OFFSET */
-               OUTPUT1(0) | OUTPUT0(1) | OUTPUT0(2) | OUTPUT0(3) |
+               OUTPUT1(0) | OUTPUT0(1) | OUTPUT0(2) | INPUT(3) |
                INPUT(4) | OUTPUT0(5) | OUTPUT0(6) | OUTPUT0(7),
-               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DIS(3) |
+               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DOWN(3) |
                PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
        }, {    /* S5PC110(ARIES)_GPIO_J2_OFFSET */
                OUTPUT0(0) | OUTPUT0(1) | OUTPUT0(2) | OUTPUT0(3) |
@@ -350,43 +350,43 @@ static struct gpio_powermode aries_powerdown_modes[] = {
        }, {    /* S5PC110(ARIES)_GPIO_J4_OFFSET */
                INPUT(0) | INPUT(1) | OUTPUT0(2) | INPUT(3) |
                OUTPUT0(4),
-               PULL_DIS(0) | PULL_DOWN(1) | PULL_DIS(2) | PULL_DIS(3) |
+               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DIS(3) |
                PULL_DIS(4),
        }, {    /* S5PC110(ARIES)_MP0_1_OFFSET */
                /* XM0CSN[4]: MP0_1[4] -> output high */
-               OUTPUT0(0) | OUTPUT0(1) | OUTPUT0(2) | INPUT(3) |
-               OUTPUT1(4) | OUTPUT0(5) | OUTPUT1(6) | OUTPUT1(7),
-               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DOWN(3) |
-               PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
+               PDNCON_NC(0) | OUTPUT0(1) | PDNCON_NC(2) | INPUT(3) |
+               OUTPUT1(4) | INPUT(5) | PDNCON_NC(6) | PDNCON_NC(7),
+               PDNPUD_NC(0) | PULL_DIS(1) | PDNPUD_NC(2) | PULL_DOWN(3) |
+               PULL_DIS(4) | PULL_DOWN(5) | PDNPUD_NC(6) | PDNPUD_NC(7),
        }, {    /* S5PC110(ARIES)_MP0_2_OFFSET */
-               OUTPUT0(0) | OUTPUT0(1) | INPUT(2) | OUTPUT0(3),
-               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DIS(3),
+               PDNCON_NC(0) | PDNCON_NC(1) | INPUT(2) | PDNCON_NC(3),
+               PDNPUD_NC(0) | PDNPUD_NC(1) | PULL_DIS(2) | PDNPUD_NC(3),
        }, {    /* S5PC110(ARIES)_MP0_3_OFFSET */
                /* XM0FWEN: MP0_3[2] -> output high */
-               OUTPUT0(0) | OUTPUT0(1) | OUTPUT1(2) | INPUT(3) |
-               INPUT(4) | OUTPUT1(5) | OUTPUT0(6) | OUTPUT0(7),
-               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DOWN(3) |
-               PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
+               PDNCON_NC(0) | PDNCON_NC(1) | OUTPUT1(2) | INPUT(3) |
+               INPUT(4) | OUTPUT1(5) | PDNCON_NC(6) | PDNCON_NC(7),
+               PDNPUD_NC(0) | PDNPUD_NC(1) | PULL_DIS(2) | PULL_DOWN(3) |
+               PULL_DIS(4) | PULL_DIS(5) | PDNPUD_NC(6) | PDNPUD_NC(7),
        }, {    /* S5PC110(ARIES)_MP0_4_OFFSET */
-               OUTPUT0(0) | OUTPUT0(1) | OUTPUT0(2) | INPUT(3) |
-               OUTPUT0(4) | OUTPUT0(5) | OUTPUT0(6) | OUTPUT0(7),
-               PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DOWN(3) |
-               PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
+               PDNCON_NC(0) | OUTPUT0(1) | OUTPUT0(2) | INPUT(3) |
+               PDNCON_NC(4) | PDNCON_NC(5) | OUTPUT0(6) | PDNCON_NC(7),
+               PDNPUD_NC(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DOWN(3) |
+               PDNPUD_NC(4) | PDNPUD_NC(5) | PULL_DIS(6) | PDNPUD_NC(7),
        }, {    /* S5PC110(ARIES)_MP0_5_OFFSET */
                INPUT(0) | INPUT(1) | INPUT(2) | INPUT(3) |
-               OUTPUT0(4) | OUTPUT0(5) | OUTPUT0(6) | OUTPUT0(7),
+               INPUT(4) | OUTPUT0(5) | INPUT(6) | OUTPUT0(7),
                PULL_DIS(0) | PULL_DIS(1) | PULL_DIS(2) | PULL_DIS(3) |
-               PULL_DIS(4) | PULL_DIS(5) | PULL_DIS(6) | PULL_DIS(7),
+               PULL_DOWN(4) | PULL_DIS(5) | PULL_UP(6) | PULL_DIS(7),
        }, {    /* S5PC110(ARIES)_MP0_6_OFFSET */
-               INPUT(0) | INPUT(1) | INPUT(2) | INPUT(3) |
-               INPUT(4) | INPUT(5) | INPUT(6) | INPUT(7),
-               PULL_DOWN(0) | PULL_DOWN(1) | PULL_DOWN(2) | PULL_DOWN(3) |
-               PULL_DOWN(4) | PULL_DOWN(5) | PULL_DOWN(6) | PULL_DOWN(7),
+               PDNCON_NC(0) | PDNCON_NC(1) | PDNCON_NC(2) | PDNCON_NC(3) |
+               PDNCON_NC(4) | PDNCON_NC(5) | PDNCON_NC(6) | PDNCON_NC(7),
+               PDNPUD_NC(0) | PDNPUD_NC(1) | PDNPUD_NC(2) | PDNPUD_NC(3) |
+               PDNPUD_NC(4) | PDNPUD_NC(5) | PDNPUD_NC(6) | PDNPUD_NC(7),
        }, {    /* S5PC110(ARIES)_MP0_7_OFFSET */
-               INPUT(0) | INPUT(1) | INPUT(2) | INPUT(3) |
-               INPUT(4) | INPUT(5) | INPUT(6) | INPUT(7),
-               PULL_DOWN(0) | PULL_DOWN(1) | PULL_DOWN(2) | PULL_DOWN(3) |
-               PULL_DOWN(4) | PULL_DOWN(5) | PULL_DOWN(6) | PULL_DOWN(7),
+               PDNCON_NC(0) | PDNCON_NC(1) | PDNCON_NC(2) | PDNCON_NC(3) |
+               PDNCON_NC(4) | PDNCON_NC(5) | PDNCON_NC(6) | PDNCON_NC(7),
+               PDNPUD_NC(0) | PDNPUD_NC(1) | PDNPUD_NC(2) | PDNPUD_NC(3) |
+               PDNPUD_NC(4) | PDNPUD_NC(5) | PDNPUD_NC(6) | PDNPUD_NC(7),
        },
 };