mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
added support on enabling/disabling specific devices by Alexander Amelkin <spirit@reactor.ru>
This commit is contained in:
parent
04a1fb2b01
commit
38f6dc2cbb
3 changed files with 38 additions and 3 deletions
|
@ -34,3 +34,6 @@ object irq_tables.o HAVE_PIRQ_TABLE
|
|||
|
||||
cpu p5
|
||||
cpu p6
|
||||
|
||||
option MAINBOARD_PART_NUMBER=M787CL+
|
||||
option MAINBOARD_VENDOR=PCCHIPS
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue