Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm Support prcm@obio1.



details:   https://anonhg.NetBSD.org/src/rev/8fb006f6ac81
branches:  trunk
changeset: 757443:8fb006f6ac81
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Mon Aug 30 05:37:30 2010 +0000

description:
Support prcm@obio1.

diffstat:

 sys/arch/evbarm/conf/OVERO                |   5 ++++-
 sys/arch/evbarm/gumstix/gumstix_machdep.c |  12 +++++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (67 lines):

diff -r ef94da641dfc -r 8fb006f6ac81 sys/arch/evbarm/conf/OVERO
--- a/sys/arch/evbarm/conf/OVERO        Mon Aug 30 02:49:17 2010 +0000
+++ b/sys/arch/evbarm/conf/OVERO        Mon Aug 30 05:37:30 2010 +0000
@@ -1,5 +1,5 @@
 #
-#      $NetBSD: OVERO,v 1.5 2010/08/28 04:58:49 kiyohara Exp $
+#      $NetBSD: OVERO,v 1.6 2010/08/30 05:37:30 kiyohara Exp $
 #
 #      OVERO -- Gumstix. Inc. Overo platforms kernel
 #
@@ -208,6 +208,9 @@
 #omapwdt32k*   at obio1 addr 0x4830c000 size 0x0800    # WDT1
 omapwdt32k*    at obio1 addr 0x48314000 size 0x0800    # WDT2
 
+# Power, Reset and Clock Management
+prcm*          at obio1 addr 0x48306000 size 0x2000    # PRM Module
+
 # On-board USB
 #ehci*         at obio0 addr 0x48064800 size 0x0400 intr 77
 #ohci*         at obio0 addr 0x48064400 size 0x0400 intr 76
diff -r ef94da641dfc -r 8fb006f6ac81 sys/arch/evbarm/gumstix/gumstix_machdep.c
--- a/sys/arch/evbarm/gumstix/gumstix_machdep.c Mon Aug 30 02:49:17 2010 +0000
+++ b/sys/arch/evbarm/gumstix/gumstix_machdep.c Mon Aug 30 05:37:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gumstix_machdep.c,v 1.31 2010/08/28 07:13:47 kiyohara Exp $ */
+/*     $NetBSD: gumstix_machdep.c,v 1.32 2010/08/30 05:37:30 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007  WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -142,6 +142,7 @@
 #include "opt_gumstix.h"
 #ifdef OVERO
 #include "opt_omap.h"
+#include "prcm.h"
 #endif
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -172,6 +173,9 @@
 
 #include <arm/arm32/machdep.h>
 #include <arm/omap/omap2_gpmcreg.h>
+#if NPRCM > 0
+#include <arm/omap/omap2_prcm.h>
+#endif
 #include <arm/omap/omap2_reg.h>
 #include <arm/omap/omap_var.h>
 #include <arm/omap/omap_com.h>
@@ -330,6 +334,9 @@
                printf("Please press any key to reboot.\n\n");
                cngetc();
                printf("rebooting...\n");
+#if defined(OMAP_3530) && NPRCM > 0
+               prcm_cold_reset();
+#endif
                cpu_reset();
                /*NOTREACHED*/
        }
@@ -366,6 +373,9 @@
        }
 
        printf("rebooting...\n");
+#if defined(OMAP_3530) && NPRCM > 0
+       prcm_cold_reset();
+#endif
        cpu_reset();
        /*NOTREACHED*/
 }



Home | Main Index | Thread Index | Old Index