mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: i.MX: rdu2: Make use of imx_setup_pad()
Date: Thu, 21 Jun 2018 12:56:11 +0200	[thread overview]
Message-ID: <20180621105610.vgjfnxuspbsforij@pengutronix.de> (raw)
In-Reply-To: <20180620012154.21183-1-andrew.smirnov@gmail.com>

On Tue, Jun 19, 2018 at 06:21:54PM -0700, Andrey Smirnov wrote:
> While at it, also remove pinux configuration for RX pin (completely
> unused) and fix strange setup_uart()'s indentation.
> 
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  arch/arm/boards/zii-imx6q-rdu2/lowlevel.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c b/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
> index 6b9c719c6..a5ac6f64c 100644
> --- a/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
> +++ b/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
> @@ -19,6 +19,7 @@
>  #include <mach/generic.h>
>  #include <mach/imx6.h>
>  #include <mach/xload.h>
> +#include <mach/iomux-mx6.h>
>  #include <asm/barebox-arm.h>
>  
>  struct reginit {
> @@ -255,12 +256,7 @@ static inline void setup_uart(void)
>  {
>  	void __iomem *iomuxbase = IOMEM(MX6_IOMUXC_BASE_ADDR);
>  
> -	writel(0x1b0b1, iomuxbase + 0x0650);
> -	writel(3, iomuxbase + 0x0280);
> -
> -	writel(0x1b0b1, iomuxbase + 0x0654);
> -	writel(3, iomuxbase + 0x0284);
> -	writel(1, iomuxbase + 0x0920);
> +	imx_setup_pad(iomuxbase, MX6Q_PAD_CSI0_DAT10__UART1_TXD);
>  
>  	imx6_uart_setup_ll();
>  
> @@ -278,7 +274,7 @@ static noinline void rdu2_sram_setup(void)
>  	imx6_ungate_all_peripherals();
>  
>  	if (IS_ENABLED(CONFIG_DEBUG_LL))
> -			setup_uart();
> +		setup_uart();
>  
>  	arm_setup_stack(0x00920000 - 8);
>  	relocate_to_current_adr();
> -- 
> 2.17.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2018-06-21 10:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20  1:21 Andrey Smirnov
2018-06-21 10:56 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180621105610.vgjfnxuspbsforij@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox