mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: am33xx: add reset duration control register address definition
@ 2016-12-09 14:17 yegorslists
  2016-12-09 14:17 ` [PATCH 2/2] arm: baltos: prolong global reset yegorslists
  2017-01-09 12:55 ` [PATCH 1/2] arm: am33xx: add reset duration control register address definition Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: yegorslists @ 2016-12-09 14:17 UTC (permalink / raw)
  To: barebox

From: Yegor Yefremov <yegorslists@googlemail.com>

PRM_RSTTIME register provides settings for global and power domain
reset durations.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-omap/include/mach/am33xx-silicon.h b/arch/arm/mach-omap/include/mach/am33xx-silicon.h
index e17e609..10595d5 100644
--- a/arch/arm/mach-omap/include/mach/am33xx-silicon.h
+++ b/arch/arm/mach-omap/include/mach/am33xx-silicon.h
@@ -71,6 +71,7 @@
 
 #define AM33XX_PRM_RSTCTRL		(AM33XX_PRM_BASE + 0x0f00)
 #define AM33XX_PRM_RSTCTRL_RESET	0x1
+#define AM33XX_PRM_RSTTIME		(AM33XX_PRM_BASE + 0x0f04)
 #define AM33XX_PRM_RSTST		(AM33XX_PRM_BASE + 0x0f08)
 
 /* CTRL */
-- 
2.1.4


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

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

* [PATCH 2/2] arm: baltos: prolong global reset
  2016-12-09 14:17 [PATCH 1/2] arm: am33xx: add reset duration control register address definition yegorslists
@ 2016-12-09 14:17 ` yegorslists
  2017-01-09 12:55 ` [PATCH 1/2] arm: am33xx: add reset duration control register address definition Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: yegorslists @ 2016-12-09 14:17 UTC (permalink / raw)
  To: barebox

From: Yegor Yefremov <yegorslists@googlemail.com>

Prolong global reset to the max. value of 0xff. Such a long reset
is required for some peripherals found on Baltos devices.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 arch/arm/boards/vscom-baltos/lowlevel.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boards/vscom-baltos/lowlevel.c b/arch/arm/boards/vscom-baltos/lowlevel.c
index 87f2a74..9f829b9 100644
--- a/arch/arm/boards/vscom-baltos/lowlevel.c
+++ b/arch/arm/boards/vscom-baltos/lowlevel.c
@@ -126,6 +126,12 @@ ENTRY_FUNCTION(start_am33xx_baltos_sdram, r0, r1, r2)
 {
 	void *fdt;
 
+	/*
+	 * Prolong global reset duration to the max. value (0xff)
+	 * and leave power domain reset to its default value (0x10).
+	 */
+	__raw_writel(0x000010ff, AM33XX_PRM_RSTTIME);
+
 	fdt = __dtb_am335x_baltos_minimal_start;
 
 	fdt -= get_runtime_offset();
-- 
2.1.4


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

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

* Re: [PATCH 1/2] arm: am33xx: add reset duration control register address definition
  2016-12-09 14:17 [PATCH 1/2] arm: am33xx: add reset duration control register address definition yegorslists
  2016-12-09 14:17 ` [PATCH 2/2] arm: baltos: prolong global reset yegorslists
@ 2017-01-09 12:55 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2017-01-09 12:55 UTC (permalink / raw)
  To: yegorslists; +Cc: barebox

On Fri, Dec 09, 2016 at 03:17:14PM +0100, yegorslists@googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> PRM_RSTTIME register provides settings for global and power domain
> reset durations.
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---

Applied, thanks

Sascha

>  arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-omap/include/mach/am33xx-silicon.h b/arch/arm/mach-omap/include/mach/am33xx-silicon.h
> index e17e609..10595d5 100644
> --- a/arch/arm/mach-omap/include/mach/am33xx-silicon.h
> +++ b/arch/arm/mach-omap/include/mach/am33xx-silicon.h
> @@ -71,6 +71,7 @@
>  
>  #define AM33XX_PRM_RSTCTRL		(AM33XX_PRM_BASE + 0x0f00)
>  #define AM33XX_PRM_RSTCTRL_RESET	0x1
> +#define AM33XX_PRM_RSTTIME		(AM33XX_PRM_BASE + 0x0f04)
>  #define AM33XX_PRM_RSTST		(AM33XX_PRM_BASE + 0x0f08)
>  
>  /* CTRL */
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> 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] 3+ messages in thread

end of thread, other threads:[~2017-01-09 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-09 14:17 [PATCH 1/2] arm: am33xx: add reset duration control register address definition yegorslists
2016-12-09 14:17 ` [PATCH 2/2] arm: baltos: prolong global reset yegorslists
2017-01-09 12:55 ` [PATCH 1/2] arm: am33xx: add reset duration control register address definition Sascha Hauer

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