public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
@ 2017-11-09  9:24 David Wu
  2017-11-20 15:05 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Wu @ 2017-11-09  9:24 UTC (permalink / raw)
  To: u-boot

Spam detection software, running on the system "lists.denx.de",
has identified this incoming email as possible spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
@@CONTACT_ADDRESS@@ for details.

Content preview:  Clean the iomux definitions at grf_rk322x.h, and move them
   into pinctrl-driver for resolving the compiling error of redefinition. After
   that, define the uart2 iomux at rk322x-board file. Signed-off-by: David Wu
   <david.wu@rock-chips.com> --- [...] 

Content analysis details:   (6.5 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 0.6 RCVD_IN_SORBS_WEB      RBL: SORBS: sender is an abusable web server
                            [58.22.7.114 listed in dnsbl.sorbs.net]
 2.7 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
                            [211.157.147.133 listed in psbl.surriel.com]
 2.4 RCVD_IN_MSPIKE_L5      RBL: Very bad reputation (-5)
                            [211.157.147.133 listed in bl.mailspike.net]
 0.8 UPPERCASE_50_75        message body is 50-75% uppercase
 0.0 RCVD_IN_MSPIKE_BL      Mailspike blacklisted


-------------- next part --------------
An embedded message was scrubbed...
From: David Wu <david.wu@rock-chips.com>
Subject: [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
Date: Thu,  9 Nov 2017 17:24:58 +0800
Size: 23387
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171109/ed09b948/attachment.mht>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-Boot, v2, 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
  2017-11-09  9:24 [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver David Wu
@ 2017-11-20 15:05 ` Philipp Tomsich
  2017-11-25 23:51 ` Philipp Tomsich
  2017-12-25 18:59 ` [U-Boot] [PATCH v2 " Heiko Stuebner
  2 siblings, 0 replies; 5+ messages in thread
From: Philipp Tomsich @ 2017-11-20 15:05 UTC (permalink / raw)
  To: u-boot

> Spam detection software, running on the system "lists.denx.de",
> has identified this incoming email as possible spam.  The original
> message has been attached to this so you can view it or label
> similar future email.  If you have any questions, see
> @@CONTACT_ADDRESS@@ for details.
> 
> Content preview:  Clean the iomux definitions at grf_rk322x.h, and move them
>    into pinctrl-driver for resolving the compiling error of redefinition. After
>    that, define the uart2 iomux at rk322x-board file. Signed-off-by: David Wu
>    <david.wu@rock-chips.com> --- [...] 
> 
> Content analysis details:   (6.5 points, 5.0 required)
> 
>  pts rule name              description
> ---- ---------------------- --------------------------------------------------
>  0.6 RCVD_IN_SORBS_WEB      RBL: SORBS: sender is an abusable web server
>                             [58.22.7.114 listed in dnsbl.sorbs.net]
>  2.7 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
>                             [211.157.147.133 listed in psbl.surriel.com]
>  2.4 RCVD_IN_MSPIKE_L5      RBL: Very bad reputation (-5)
>                             [211.157.147.133 listed in bl.mailspike.net]
>  0.8 UPPERCASE_50_75        message body is 50-75% uppercase
>  0.0 RCVD_IN_MSPIKE_BL      Mailspike blacklisted
> Clean the iomux definitions at grf_rk322x.h, and move them into
> pinctrl-driver for resolving the compiling error of redefinition.
> After that, define the uart2 iomux at rk322x-board file.
> 
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> ---
> 
> Changes in v2:
> - New patch
> 
>  arch/arm/include/asm/arch-rockchip/grf_rk322x.h | 455 ------------------------
>  arch/arm/mach-rockchip/rk322x-board-spl.c       |  20 +-
>  arch/arm/mach-rockchip/rk322x-board.c           |  16 +
>  drivers/pinctrl/rockchip/pinctrl_rk322x.c       | 453 +++++++++++++++++++++++
>  4 files changed, 488 insertions(+), 456 deletions(-)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-Boot, v2, 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
  2017-11-09  9:24 [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver David Wu
  2017-11-20 15:05 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
@ 2017-11-25 23:51 ` Philipp Tomsich
  2017-12-25 18:59 ` [U-Boot] [PATCH v2 " Heiko Stuebner
  2 siblings, 0 replies; 5+ messages in thread
From: Philipp Tomsich @ 2017-11-25 23:51 UTC (permalink / raw)
  To: u-boot

> Spam detection software, running on the system "lists.denx.de",
> has identified this incoming email as possible spam.  The original
> message has been attached to this so you can view it or label
> similar future email.  If you have any questions, see
> @@CONTACT_ADDRESS@@ for details.
> 
> Content preview:  Clean the iomux definitions at grf_rk322x.h, and move them
>    into pinctrl-driver for resolving the compiling error of redefinition. After
>    that, define the uart2 iomux at rk322x-board file. Signed-off-by: David Wu
>    <david.wu@rock-chips.com> --- [...] 
> 
> Content analysis details:   (6.5 points, 5.0 required)
> 
>  pts rule name              description
> ---- ---------------------- --------------------------------------------------
>  0.6 RCVD_IN_SORBS_WEB      RBL: SORBS: sender is an abusable web server
>                             [58.22.7.114 listed in dnsbl.sorbs.net]
>  2.7 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
>                             [211.157.147.133 listed in psbl.surriel.com]
>  2.4 RCVD_IN_MSPIKE_L5      RBL: Very bad reputation (-5)
>                             [211.157.147.133 listed in bl.mailspike.net]
>  0.8 UPPERCASE_50_75        message body is 50-75% uppercase
>  0.0 RCVD_IN_MSPIKE_BL      Mailspike blacklisted
> Clean the iomux definitions at grf_rk322x.h, and move them into
> pinctrl-driver for resolving the compiling error of redefinition.
> After that, define the uart2 iomux at rk322x-board file.
> 
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
> 
> Changes in v2:
> - New patch
> 
>  arch/arm/include/asm/arch-rockchip/grf_rk322x.h | 455 ------------------------
>  arch/arm/mach-rockchip/rk322x-board-spl.c       |  20 +-
>  arch/arm/mach-rockchip/rk322x-board.c           |  16 +
>  drivers/pinctrl/rockchip/pinctrl_rk322x.c       | 453 +++++++++++++++++++++++
>  4 files changed, 488 insertions(+), 456 deletions(-)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
  2017-11-09  9:24 [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver David Wu
  2017-11-20 15:05 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
  2017-11-25 23:51 ` Philipp Tomsich
@ 2017-12-25 18:59 ` Heiko Stuebner
  2017-12-26  6:24   ` David.Wu
  2 siblings, 1 reply; 5+ messages in thread
From: Heiko Stuebner @ 2017-12-25 18:59 UTC (permalink / raw)
  To: u-boot

Hi David,

Am Donnerstag, 9. November 2017, 17:24:58 CET schrieb David Wu:
> diff --git a/arch/arm/mach-rockchip/rk322x-board-spl.c b/arch/arm/mach-rockchip/rk322x-board-spl.c
> index 35f4f97..f7c6045 100644
> --- a/arch/arm/mach-rockchip/rk322x-board-spl.c
> +++ b/arch/arm/mach-rockchip/rk322x-board-spl.c
> @@ -30,7 +30,25 @@ DECLARE_GLOBAL_DATA_PTR;
>  
>  void board_debug_uart_init(void)
>  {
> -static struct rk322x_grf * const grf = (void *)GRF_BASE;
> +       static struct rk322x_grf * const grf = (void *)GRF_BASE;
> +       enum {
> +               GPIO1B2_SHIFT           = 4,
> +               GPIO1B2_MASK            = 3 << GPIO1B2_SHIFT,
> +               GPIO1B2_UART1_SIN,
> +               GPIO1B2_UART21_SIN,
> +
> +               GPIO1B1_SHIFT           = 2,
> +               GPIO1B1_MASK            = 3 << GPIO1B1_SHIFT,
> +               GPIO1B1_UART1_SOUT,
> +               GPIO1B1_UART21_SOUT,

You seem to drop the GPIO1B1_GPIO = 0, line, so the enum counting
wil get jumbled, because GPIO1B1_UART1_SOUT for example will get to
be 4 instead of the 1 it needs to be.

This may be true for the other patches for the other socs as well,
so you may want to double check?


Heiko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver
  2017-12-25 18:59 ` [U-Boot] [PATCH v2 " Heiko Stuebner
@ 2017-12-26  6:24   ` David.Wu
  0 siblings, 0 replies; 5+ messages in thread
From: David.Wu @ 2017-12-26  6:24 UTC (permalink / raw)
  To: u-boot

Hi Heiko

在 2017/12/26 2:59, Heiko Stuebner 写道:
> Hi David,
> 
> Am Donnerstag, 9. November 2017, 17:24:58 CET schrieb David Wu:
>> diff --git a/arch/arm/mach-rockchip/rk322x-board-spl.c b/arch/arm/mach-rockchip/rk322x-board-spl.c
>> index 35f4f97..f7c6045 100644
>> --- a/arch/arm/mach-rockchip/rk322x-board-spl.c
>> +++ b/arch/arm/mach-rockchip/rk322x-board-spl.c
>> @@ -30,7 +30,25 @@ DECLARE_GLOBAL_DATA_PTR;
>>   
>>   void board_debug_uart_init(void)
>>   {
>> -static struct rk322x_grf * const grf = (void *)GRF_BASE;
>> +       static struct rk322x_grf * const grf = (void *)GRF_BASE;
>> +       enum {
>> +               GPIO1B2_SHIFT           = 4,
>> +               GPIO1B2_MASK            = 3 << GPIO1B2_SHIFT,
>> +               GPIO1B2_UART1_SIN,
>> +               GPIO1B2_UART21_SIN,
>> +
>> +               GPIO1B1_SHIFT           = 2,
>> +               GPIO1B1_MASK            = 3 << GPIO1B1_SHIFT,
>> +               GPIO1B1_UART1_SOUT,
>> +               GPIO1B1_UART21_SOUT,
> 
> You seem to drop the GPIO1B1_GPIO = 0, line, so the enum counting
> wil get jumbled, because GPIO1B1_UART1_SOUT for example will get to
> be 4 instead of the 1 it needs to be.
> 
> This may be true for the other patches for the other socs as well,
> so you may want to double check?
> 

Yes, they are needed to check again.

> 
> Heiko
> 
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-26  6:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09  9:24 [U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver David Wu
2017-11-20 15:05 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-11-25 23:51 ` Philipp Tomsich
2017-12-25 18:59 ` [U-Boot] [PATCH v2 " Heiko Stuebner
2017-12-26  6:24   ` David.Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox