From 38f6dc2cbbd70c72262b38b1d131764230891d7d Mon Sep 17 00:00:00 2001 From: Andrew Ip Date: Thu, 20 Mar 2003 13:48:28 +0000 Subject: [PATCH] added support on enabling/disabling specific devices by Alexander Amelkin --- src/mainboard/pcchips/m787cl+/Config | 3 +++ src/northsouthbridge/sis/630/raminit.inc | 29 +++++++++++++++++++++--- util/config/pcchips787.config | 9 ++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/src/mainboard/pcchips/m787cl+/Config b/src/mainboard/pcchips/m787cl+/Config index 89b70b7b51..bc725779ce 100644 --- a/src/mainboard/pcchips/m787cl+/Config +++ b/src/mainboard/pcchips/m787cl+/Config @@ -34,3 +34,6 @@ object irq_tables.o HAVE_PIRQ_TABLE cpu p5 cpu p6 + +option MAINBOARD_PART_NUMBER=M787CL+ +option MAINBOARD_VENDOR=PCCHIPS diff --git a/src/northsouthbridge/sis/630/raminit.inc b/src/northsouthbridge/sis/630/raminit.inc index 2c00a18dc5..01beed82b4 100644 --- a/src/northsouthbridge/sis/630/raminit.inc +++ b/src/northsouthbridge/sis/630/raminit.inc @@ -86,9 +86,32 @@ write_vga_register: outb %al, %dx #endif -#ifdef DISABLE_INTERNAL_DEVICES - movw $0x7c0e, %ax # Writting undocumented LPC register -write_lpc_register: +#if DISABLE_INTERNAL_DEVICES +#warning *********** EMBEDDED DEVICES DISABLED + /* Input: AH - register number. AL - register value. */ + movw $0x7c0f,%ax # Initial value for the undocumented SIS LPC register + # Disable everything by default + +#if ENABLE_INTERNAL_AUDIO +#warning *********** AUDIO ENABLED + andb $0x0e,%al +#endif + +#if ENABLE_INTERNAL_MODEM +#warning *********** MODEM ENABLED + andb $0x0d,%al +#endif + +#if ENABLE_INTERNAL_LAN +#warning *********** LAN ENABLED + andb $0x0b,%al +#endif + +#if ENABLE_INTERNAL_USB +#warning *********** USB ENABLED + andb $0x07,%al +#endif + /* Input: AH - register number. AL - register value. */ movl $LPC_BRIDGE_BASE_ADDR, %edx movl %eax, %ebx # Save %eax to %ebx. diff --git a/util/config/pcchips787.config b/util/config/pcchips787.config index 1b1694a24d..f7720296ba 100644 --- a/util/config/pcchips787.config +++ b/util/config/pcchips787.config @@ -13,6 +13,15 @@ target /usr/src/pcchips787 # PCCHIPS m787cl+ mainboard mainboard pcchips/m787cl+ +# Disable all embedded devices +#option DISABLE_INTERNAL_DEVICES=1 +# Enable some of the devices individually +# These options are only valid if DISABLE_INTERNAL_DEVICES is set +#option ENABLE_INTERNAL_AUDIO=1 +#option ENABLE_INTERNAL_MODEM=1 +#option ENABLE_INTERNAL_USB=1 +#option ENABLE_INTERNAL_LAN=1 + #this sets the vga memory small since #text console uses very little option SMA_SIZE=0x80