diff mbox

S5PC2XX: GPIO Macro Values Corrected.

Message ID 1302772649-5944-1-git-send-email-chander.kashyap@linaro.org
State Superseded
Headers show

Commit Message

Chander Kashyap April 14, 2011, 9:17 a.m. UTC
Macro values for Pull Up and Driver Strength were wrong.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
---
 arch/arm/include/asm/arch-s5pc2xx/gpio.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Comments

Minkyu Kang April 15, 2011, 6:29 a.m. UTC | #1
Dear Chander Kashyap,

On 14 April 2011 18:17, Chander Kashyap <chander.kashyap@linaro.org> wrote:
> Macro values for Pull Up and Driver Strength were wrong.
>
> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> ---
>  arch/arm/include/asm/arch-s5pc2xx/gpio.h |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-s5pc2xx/gpio.h b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> index 05e5b3e..7bfa8e8 100644
> --- a/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> +++ b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> @@ -99,12 +99,12 @@ void gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode);
>  /* Pull mode */
>  #define GPIO_PULL_NONE 0x0
>  #define GPIO_PULL_DOWN 0x1
> -#define GPIO_PULL_UP   0x2
> +#define GPIO_PULL_UP   0x3
>
>  /* Drive Strength level */
>  #define GPIO_DRV_1X    0x0
> -#define GPIO_DRV_2X    0x1
> -#define GPIO_DRV_3X    0x2
> +#define GPIO_DRV_2X    0x2
> +#define GPIO_DRV_3X    0x1

Please make orders correctly (0x0, 0x1, 0x2, 0x3)

>  #define GPIO_DRV_4X    0x3
>  #define GPIO_DRV_FAST  0x0
>  #define GPIO_DRV_SLOW  0x1

Nice catch : )

Could please fix s5pc1xx also?
Please make it one patch.

Thanks.
Minkyu Kang.
Chander Kashyap April 18, 2011, 3:50 a.m. UTC | #2
Dear Minkyu,

On 15 April 2011 11:59, Minkyu Kang <promsoft@gmail.com> wrote:

> Dear Chander Kashyap,
>
> On 14 April 2011 18:17, Chander Kashyap <chander.kashyap@linaro.org>
> wrote:
> > Macro values for Pull Up and Driver Strength were wrong.
> >
> > Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> > ---
> >  arch/arm/include/asm/arch-s5pc2xx/gpio.h |    6 +++---
> >  1 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> > index 05e5b3e..7bfa8e8 100644
> > --- a/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> > +++ b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
> > @@ -99,12 +99,12 @@ void gpio_set_rate(struct s5p_gpio_bank *bank, int
> gpio, int mode);
> >  /* Pull mode */
> >  #define GPIO_PULL_NONE 0x0
> >  #define GPIO_PULL_DOWN 0x1
> > -#define GPIO_PULL_UP   0x2
> > +#define GPIO_PULL_UP   0x3
> >
> >  /* Drive Strength level */
> >  #define GPIO_DRV_1X    0x0
> > -#define GPIO_DRV_2X    0x1
> > -#define GPIO_DRV_3X    0x2
> > +#define GPIO_DRV_2X    0x2
> > +#define GPIO_DRV_3X    0x1
>
> Please make orders correctly (0x0, 0x1, 0x2, 0x3)
>
Will do the same.

>
> >  #define GPIO_DRV_4X    0x3
> >  #define GPIO_DRV_FAST  0x0
> >  #define GPIO_DRV_SLOW  0x1
>
> Nice catch : )
>
> Could please fix s5pc1xx also?
>

No need to change. As existing gpio configuration is as per s5pc1xx
specification.

> Please make it one patch.
>
> Thanks.
> Minkyu Kang.
> --
> from. prom.
> www.promsoft.net
>
regards,
Chander
Minkyu Kang April 18, 2011, 7:30 a.m. UTC | #3
Dear Chander Kashyap,

On 18 April 2011 12:50, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>
> No need to change. As existing gpio configuration is as per s5pc1xx
> specification.

According to S5PC110 TRM, DRV levels are as following,

00 = 1x
10 = 2x
01 = 3x
11 = 4x

Please fix it at s5pc1xx also.

Thanks
Minkyu Kang.
Chander Kashyap April 18, 2011, 8:32 a.m. UTC | #4
Dear Minkyu,

On 18 April 2011 13:00, Minkyu Kang <promsoft@gmail.com> wrote:

> Dear Chander Kashyap,
>
> On 18 April 2011 12:50, Chander Kashyap <chander.kashyap@linaro.org>
> wrote:
> >
> > No need to change. As existing gpio configuration is as per s5pc1xx
> > specification.
>
> According to S5PC110 TRM, DRV levels are as following,
>
> 00 = 1x
> 10 = 2x
> 01 = 3x
> 11 = 4x
>
> Please fix it at s5pc1xx also.
>
 As per the s5pc110 user manual I have existing configuration is right. If
you are sure then I will change it and resubmit the patch.

>
> Thanks
> Minkyu Kang.
> --
> from. prom.
> www.promsoft.net
>

regards,
Chander
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-s5pc2xx/gpio.h b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
index 05e5b3e..7bfa8e8 100644
--- a/arch/arm/include/asm/arch-s5pc2xx/gpio.h
+++ b/arch/arm/include/asm/arch-s5pc2xx/gpio.h
@@ -99,12 +99,12 @@  void gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode);
 /* Pull mode */
 #define GPIO_PULL_NONE	0x0
 #define GPIO_PULL_DOWN	0x1
-#define GPIO_PULL_UP	0x2
+#define GPIO_PULL_UP	0x3
 
 /* Drive Strength level */
 #define GPIO_DRV_1X	0x0
-#define GPIO_DRV_2X	0x1
-#define GPIO_DRV_3X	0x2
+#define GPIO_DRV_2X	0x2
+#define GPIO_DRV_3X	0x1
 #define GPIO_DRV_4X	0x3
 #define GPIO_DRV_FAST	0x0
 #define GPIO_DRV_SLOW	0x1