mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX: babbage: Make use of imx_setup_pad()
@ 2018-06-20  0:55 Andrey Smirnov
  2018-06-21 10:55 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Smirnov @ 2018-06-20  0:55 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 arch/arm/boards/freescale-mx51-babbage/lowlevel.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boards/freescale-mx51-babbage/lowlevel.c b/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
index 1c20b6a7a..216576ca2 100644
--- a/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
+++ b/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
@@ -1,5 +1,6 @@
 #include <debug_ll.h>
 #include <mach/clock-imx51_53.h>
+#include <mach/iomux-mx51.h>
 #include <common.h>
 #include <mach/esdctl.h>
 #include <mach/generic.h>
@@ -22,15 +23,7 @@ static inline void setup_uart(void)
 	writel(MX5_CCM_CSCMR1_RESET_VALUE, ccmbase + MX5_CCM_CSCMR1);
 	writel(MX5_CCM_CSCDR1_RESET_VALUE, ccmbase + MX5_CCM_CSCDR1);
 
-	/*
-	 * The code below should be more or less a "moral equivalent"
-	 * of:
-	 *	 MX51_PAD_UART1_TXD__UART1_TXD 0x1c5
-	 *
-	 * in device tree
-	 */
-	writel(0x00000000, iomuxbase + 0x022c);
-	writel(0x000001c5, iomuxbase + 0x061c);
+	imx_setup_pad(iomuxbase, MX51_PAD_UART1_TXD__UART1_TXD);
 
 	imx51_uart_setup_ll();
 
-- 
2.17.1


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

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

* Re: [PATCH] ARM: i.MX: babbage: Make use of imx_setup_pad()
  2018-06-20  0:55 [PATCH] ARM: i.MX: babbage: Make use of imx_setup_pad() Andrey Smirnov
@ 2018-06-21 10:55 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-06-21 10:55 UTC (permalink / raw)
  To: Andrey Smirnov; +Cc: barebox

On Tue, Jun 19, 2018 at 05:55:01PM -0700, Andrey Smirnov wrote:
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  arch/arm/boards/freescale-mx51-babbage/lowlevel.c | 11 ++---------
>  1 file changed, 2 insertions(+), 9 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/boards/freescale-mx51-babbage/lowlevel.c b/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
> index 1c20b6a7a..216576ca2 100644
> --- a/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
> +++ b/arch/arm/boards/freescale-mx51-babbage/lowlevel.c
> @@ -1,5 +1,6 @@
>  #include <debug_ll.h>
>  #include <mach/clock-imx51_53.h>
> +#include <mach/iomux-mx51.h>
>  #include <common.h>
>  #include <mach/esdctl.h>
>  #include <mach/generic.h>
> @@ -22,15 +23,7 @@ static inline void setup_uart(void)
>  	writel(MX5_CCM_CSCMR1_RESET_VALUE, ccmbase + MX5_CCM_CSCMR1);
>  	writel(MX5_CCM_CSCDR1_RESET_VALUE, ccmbase + MX5_CCM_CSCDR1);
>  
> -	/*
> -	 * The code below should be more or less a "moral equivalent"
> -	 * of:
> -	 *	 MX51_PAD_UART1_TXD__UART1_TXD 0x1c5
> -	 *
> -	 * in device tree
> -	 */
> -	writel(0x00000000, iomuxbase + 0x022c);
> -	writel(0x000001c5, iomuxbase + 0x061c);
> +	imx_setup_pad(iomuxbase, MX51_PAD_UART1_TXD__UART1_TXD);
>  
>  	imx51_uart_setup_ll();
>  
> -- 
> 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

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

end of thread, other threads:[~2018-06-21 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-20  0:55 [PATCH] ARM: i.MX: babbage: Make use of imx_setup_pad() Andrey Smirnov
2018-06-21 10:55 ` Sascha Hauer

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