Re: [U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-31 Thread Tom Rini
On Fri, May 31, 2019 at 08:48:03AM +0200, Bartosz Golaszewski wrote:
> śr., 29 maj 2019 o 19:18 Tom Rini  napisał(a):
> >
> > On Mon, May 20, 2019 at 06:29:38PM +0200, Bartosz Golaszewski wrote:
> >
> > > From: Bartosz Golaszewski 
> > >
> > > There are no more users of lowlevel_init.S. Remove the file.
> > >
> > > Suggested-by: Adam Ford 
> > > Signed-off-by: Bartosz Golaszewski 
> >
> > Applied to u-boot/master, thanks!
> 
> Hi Tom,
> 
> I don't see this patch in master. I think you didn't push it.

Ah right, oops.  I'll pick it up with the legoev3 stuff soon, sorry
about that.

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-31 Thread Bartosz Golaszewski
śr., 29 maj 2019 o 19:18 Tom Rini  napisał(a):
>
> On Mon, May 20, 2019 at 06:29:38PM +0200, Bartosz Golaszewski wrote:
>
> > From: Bartosz Golaszewski 
> >
> > There are no more users of lowlevel_init.S. Remove the file.
> >
> > Suggested-by: Adam Ford 
> > Signed-off-by: Bartosz Golaszewski 
>
> Applied to u-boot/master, thanks!
>
> --
> Tom

Hi Tom,

I don't see this patch in master. I think you didn't push it.

Bart
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-29 Thread Tom Rini
On Mon, May 20, 2019 at 06:29:38PM +0200, Bartosz Golaszewski wrote:

> From: Bartosz Golaszewski 
> 
> There are no more users of lowlevel_init.S. Remove the file.
> 
> Suggested-by: Adam Ford 
> Signed-off-by: Bartosz Golaszewski 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-28 Thread Tom Rini
On Mon, May 20, 2019 at 06:29:38PM +0200, Bartosz Golaszewski wrote:

> From: Bartosz Golaszewski 
> 
> There are no more users of lowlevel_init.S. Remove the file.
> 
> Suggested-by: Adam Ford 
> Signed-off-by: Bartosz Golaszewski 

NAK, legoev3 still uses this.

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 

There are no more users of lowlevel_init.S. Remove the file.

Suggested-by: Adam Ford 
Signed-off-by: Bartosz Golaszewski 
---
 arch/arm/mach-davinci/Makefile|   4 -
 arch/arm/mach-davinci/lowlevel_init.S | 692 --
 2 files changed, 696 deletions(-)
 delete mode 100644 arch/arm/mach-davinci/lowlevel_init.S

diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile
index 6887fe05dd..ed88274072 100644
--- a/arch/arm/mach-davinci/Makefile
+++ b/arch/arm/mach-davinci/Makefile
@@ -18,7 +18,3 @@ obj-$(CONFIG_SPL_FRAMEWORK)   += spl.o
 obj-$(CONFIG_SOC_DM365)+= dm365_lowlevel.o
 obj-$(CONFIG_SOC_DA8XX)+= da850_lowlevel.o
 endif
-
-ifndef CONFIG_SKIP_LOWLEVEL_INIT
-obj-y  += lowlevel_init.o
-endif
diff --git a/arch/arm/mach-davinci/lowlevel_init.S 
b/arch/arm/mach-davinci/lowlevel_init.S
deleted file mode 100644
index b82dafad2b..00
--- a/arch/arm/mach-davinci/lowlevel_init.S
+++ /dev/null
@@ -1,692 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Low-level board setup code for TI DaVinci SoC based boards.
- *
- * Copyright (C) 2007 Sergey Kubushyn 
- *
- * Partially based on TI sources, original copyrights follow:
- */
-
-/*
- * Board specific setup info
- *
- * (C) Copyright 2003
- * Texas Instruments, 
- * Kshitij Gupta 
- *
- * Modified for OMAP 1610 H2 board by Nishant Kamat, Jan 2004
- *
- * Modified for OMAP 5912 OSK board by Rishi Bhattacharya, Apr 2004
- *
- * Modified for DV-EVM board by Rishi Bhattacharya, Apr 2005
- *
- * Modified for DV-EVM board by Swaminathan S, Nov 2005
- */
-
-#include 
-
-#define MDSTAT_STATE   0x3f
-
-.globl lowlevel_init
-lowlevel_init:
-#ifdef CONFIG_SOC_DM644X
-
-   /*---*
-* Mask all IRQs by setting all bits in the EINT default *
-*---*/
-   mov r1, $0
-   ldr r0, =EINT_ENABLE0
-   str r1, [r0]
-   ldr r0, =EINT_ENABLE1
-   str r1, [r0]
-
-   /*--*
-* Put the GEM in reset *
-*--*/
-
-   /* Put the GEM in reset */
-   ldr r8, PSC_GEM_FLAG_CLEAR
-   ldr r6, MDCTL_GEM
-   ldr r7, [r6]
-   and r7, r7, r8
-   str r7, [r6]
-
-   /* Enable the Power Domain Transition Command */
-   ldr r6, PTCMD
-   ldr r7, [r6]
-   orr r7, r7, $0x02
-   str r7, [r6]
-
-   /* Check for Transition Complete(PTSTAT) */
-checkStatClkStopGem:
-   ldr r6, PTSTAT
-   ldr r7, [r6]
-   andsr7, r7, $0x02
-   bne checkStatClkStopGem
-
-   /* Check for GEM Reset Completion */
-checkGemStatClkStop:
-   ldr r6, MDSTAT_GEM
-   ldr r7, [r6]
-   andsr7, r7, $0x100
-   bne checkGemStatClkStop
-
-   /* Do this for enabling a WDT initiated reset this is a workaround
-  for a chip bug.  Not required under normal situations */
-   ldr r6, P1394
-   mov r10, $0
-   str r10, [r6]
-
-   /*--*
-* Enable L1 & L2 Memories in Fast mode *
-*--*/
-   ldr r6, DFT_ENABLE
-   mov r10, $0x01
-   str r10, [r6]
-
-   ldr r6, MMARG_BRF0
-   ldr r10, MMARG_BRF0_VAL
-   str r10, [r6]
-
-   ldr r6, DFT_ENABLE
-   mov r10, $0
-   str r10, [r6]
-
-   /*--*
-* DDR2 PLL Initialization  *
-*--*/
-
-   /* Select the Clock Mode Depending on the Value written in the Boot 
Table by the run script */
-   mov r10, $0
-   ldr r6, PLL2_CTL
-   ldr r7, PLL_CLKSRC_MASK
-   ldr r8, [r6]
-   and r8, r8, r7
-   mov r9, r10, lsl $8
-   orr r8, r8, r9
-   str r8, [r6]
-
-   /* Select the PLLEN source */
-   ldr r7, PLL_ENSRC_MASK
-   and r8, r8, r7
-   str r8, [r6]
-
-   /* Bypass the PLL */
-   ldr r7, PLL_BYPASS_MASK
-   and r8, r8, r7
-   str r8, [r6]
-
-   /* Wait for few cycles to allow PLLEN Mux switch properly to bypass 
Clock */
-   mov r10, $0x20
-WaitPPL2Loop:
-   subsr10, r10, $1
-   bne WaitPPL2Loop
-
-   /* Reset the PLL */
-   ldr r7, PLL_RESET_MASK
-   and r8, r8, r7
-   str r8, [r6]
-
-   /* Power up the PLL */
-   ldr r7, PLL_PWRUP_MASK
-   and r8, r8, r7
-   str r8, [r6]
-
-   /* Enable the PLL from Disable Mode */
-   ldr r7, PLL_DISABLE_ENABLE_MASK
-