From 060d5387a447bc4c684c6aeac94db439c7416932 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 25 Aug 2000 17:24:11 +0000 Subject: 2000-08-11 Charles-Antoine Gauthier * custom/mbx8xx.cfg: Add support for configuration parameters in NVRAM --- make/ChangeLog | 4 ++++ make/custom/mbx8xx.cfg | 35 +++++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/make/ChangeLog b/make/ChangeLog index 7708232300..deedbfff87 100644 --- a/make/ChangeLog +++ b/make/ChangeLog @@ -1,4 +1,8 @@ +2000-08-11 Charles-Antoine Gauthier + + * custom/mbx8xx.cfg: Add support for configuration parameters in NVRAM + 2000-08-25 Joel Sherrill * ChangeLog: File paths corrected. diff --git a/make/custom/mbx8xx.cfg b/make/custom/mbx8xx.cfg index ee1ff20a4e..b4566046e1 100644 --- a/make/custom/mbx8xx.cfg +++ b/make/custom/mbx8xx.cfg @@ -64,6 +64,15 @@ endif # mbx821 # # MBX8xx-specific options: # +# NVRAM_CONFIGURE +# Define to 1 if you want the console driver, network driver and caches +# configured at boot time from parameters stored in NVRAM. If set to 1, +# most parameters below are ignored during the build. If not set to 1, +# then the console driver is configured at build time, the network host +# information is obtained from application supplied data structures, and +# the caches are configured at boot time based on the information supplied +# in this file. +# # UARTS_USE_TERMIOS # Define to 1 if you want termios support for every port. # Termios support is independent of the choice of UART I/O mode. @@ -74,7 +83,7 @@ endif # mbx821 # as /dev/console. # # UARTS_IO_MODE (BSP--console driver) -# Define to 0 if you want polled I/O performed by RTEMS. +# Define to 0 or 1 if you want polled I/O performed by RTEMS. # Define to 1 if you want interrupt-driven performed by RTEMS. # Define to 2 if you want polled I/O performed by EPPCBug. # There is no provision to have a mix of interrupt-driven and polled I/O @@ -94,25 +103,18 @@ endif # mbx821 # each other. # # PRINTK_IO_MODE (BSP--console driver) -# Define to 0 if you want polled I/O performed by RTEMS. -# Define to 1 if you want interrupt-driven I/O performed by RTEMS. +# Define to 0 or 1 if you want polled I/O performed by RTEMS. # Define to 2 if you want polled I/O performed by EPPCBug. -# The printk() port is not configured to termios. The only way to -# use printk() with interrupt-driven I/O, which always uses termios, -# is to open the printk port from an RTEMS application. One way to -# do this is to have PRINTK_MINOR == CONSOLE_MINOR. With EPPCBug 1.1, +# The printk() port is not configured to use termios. With EPPCBug 1.1, # if mode 2 is selected, PRINTK_MINOR must be set to SMC1_MINOR. # This is a deficiency of the firmware: it does not perform serial I/O # on any port other than its default debug port, which must be SMC1. +# Printk always uses polled output. # # EPPCBUG_SMC1 (BSP--console driver) # If defined, SMC1 is in use by EPPC-Bug. The console driver will not # re-initialize that port. # -# EPPCBUG_VECTORS (BSP--RTEMS) -# If defined, vectors branch to EPPCBug, except the following: -# 0x500 (external interrupt), 0x900 (decrementer). -# # INSTRUCTION_CACHE_ENABLE (BSP--RTEMS) # If defined, the instruction cache will be enabled after address translation # is turned on. @@ -121,6 +123,10 @@ endif # mbx821 # If defined, the data cache will be enabled after address translation # is turned on. # +# EPPCBUG_VECTORS (BSP--RTEMS) +# If defined, vectors branch to EPPCBug, except the following: +# 0x500 (external interrupt), 0x900 (decrementer). +# # PowerPC-specific options: # # PPC_USE_SPRG (RTEMS PowerPC port) @@ -128,7 +134,7 @@ endif # mbx821 # of the special purpose registers to slightly optimize interrupt # response time. The use of these registers can conflict with # other tools like debuggers. This should be 0 when using EPPCBug -# because its uses most SPRGs (don't believe the documentation!). +# because its uses most SPRGs (do not believe the documentation!). # # PPC_USE_DATA_CACHE (RTEMS PowerPC port) # If defined, then the PowerPC specific code in RTEMS will use @@ -141,11 +147,12 @@ define make-target-options @echo "#endif" >>$@ @echo "#define mpc$(CPU_TYPE) 1" >>$@ @echo >>$@ - @echo "#define UARTS_USE_TERMIOS 1" >>$@ + @echo "#define NVRAM_CONFIGURE 1" >>$@ + @echo "#define UARTS_USE_TERMIOS 0" >>$@ @echo "#define CONSOLE_MINOR SMC2_MINOR" >>$@ @echo "#define UARTS_IO_MODE 0" >>$@ @echo "#define PRINTK_MINOR SMC2_MINOR" >>$@ - @echo "#define PRINTK_IO_MODE 0" >>$@ + @echo "#define PRINTK_IO_MODE 0" >>$@ @echo "#define EPPCBUG_SMC1 1" >>$@ @echo "#define EPPCBUG_VECTORS 1" >>$@ @echo "#define INSTRUCTION_CACHE_ENABLE 1" >>$@ -- cgit v1.2.3