changeset 418:5441298dacbc

Add control over DATA cache startup mode.
author gthomas
date Wed, 13 Nov 2002 21:04:54 +0000
parents 37b0db9e87ca
children 047f0d36832a
files packages/hal/common/current/ChangeLog packages/hal/common/current/cdl/hal.cdl
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/common/current/ChangeLog
+++ b/packages/hal/common/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-13  Gary Thomas  <gthomas@ecoscentric.com>
+
+	* cdl/hal.cdl: Add CDL control over DATA cache startup mode.
+
 2002-09-11  Mark Salter  <msalter@redhat.com>
 
 	* include/hal_if.h: Add __COMMCTL_ENABLE_LINE_FLUSH and
--- a/packages/hal/common/current/cdl/hal.cdl
+++ b/packages/hal/common/current/cdl/hal.cdl
@@ -9,6 +9,7 @@
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2002 Gary Thomas
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -128,7 +129,7 @@ cdl_package CYGPKG_HAL {
             These options let the default behaviour of the caches 
             be easily configurable."
 
-        cdl_option CYGSEM_HAL_ENABLE_DCACHE_ON_STARTUP {
+        cdl_component CYGSEM_HAL_ENABLE_DCACHE_ON_STARTUP {
             display       "Enable DATA cache on startup"
             default_value 1
             description   "
@@ -137,6 +138,15 @@ cdl_package CYGPKG_HAL {
                 to disable this if the data cache cannot safely be turned on,
                 such as a case where the cache(s) require additional platform
                 specific setup."
+            cdl_option CYGSEM_HAL_DCACHE_STARTUP_MODE {
+                display       "DATA cache mode on startup"
+                flavor        data
+                legal_values  { "COPYBACK" "WRITETHRU" }
+                default_value { "COPYBACK" }
+                description   "
+                    This option controls the mode the cache will be set to
+                when enabled on startup."
+            }
         }
 
         cdl_option CYGSEM_HAL_ENABLE_ICACHE_ON_STARTUP {