blob: 79624e00c474659759dff7e6c3dca64ed524463e [file] [log] [blame]
Frank Vibrans63e62b02011-02-14 18:38:14 +00001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2011 Advanced Micro Devices, Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
efdesign9805a89ab2011-06-20 17:38:49 -070020config SOUTHBRIDGE_AMD_CIMX_SB800
Frank Vibrans63e62b02011-02-14 18:38:14 +000021 bool
Kerry Shefeed3292011-08-18 18:03:44 +080022 default n
Frank Vibrans63e62b02011-02-14 18:38:14 +000023 select IOAPIC
Kerry Shefeed3292011-08-18 18:03:44 +080024 select AMD_SB_CIMX
Frank Vibrans63e62b02011-02-14 18:38:14 +000025
efdesign9805a89ab2011-06-20 17:38:49 -070026if SOUTHBRIDGE_AMD_CIMX_SB800
Frank Vibrans63e62b02011-02-14 18:38:14 +000027config BOOTBLOCK_SOUTHBRIDGE_INIT
28 string
efdesign9805a89ab2011-06-20 17:38:49 -070029 default "southbridge/amd/cimx/sb800/bootblock.c"
Kerry She6209c822011-08-18 18:44:00 +080030
Kerry Shehd7e856b92011-10-11 17:27:06 +080031config ENABLE_IDE_COMBINED_MODE
32 bool "Enable SATA IDE combined mode"
33 default n
34 help
35 If Combined Mode is enabled. IDE controller is exposed and
36 SATA controller has control over Port0 through Port3,
37 IDE controller has control over Port4 and Port5.
38
39 If Combined Mode is disabled, IDE controller is hidden and
40 SATA controller has full control of all 6 Ports when operating in non-IDE mode.
41
42config IDE_COMBINED_MODE
43 hex
44 default "0x0" if ENABLE_IDE_COMBINED_MODE
45 default "0x1" if !ENABLE_IDE_COMBINED_MODE
46
Kerry Shehd4a0e7d2011-10-10 17:17:39 +080047choice
48 prompt "SATA Mode"
49 default SB800_SATA_IDE
50 help
51 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
52 The default is NATIVE.
53
54config SB800_SATA_IDE
55 bool "NATIVE"
56 help
57 NATIVE is the default mode and does not require a ROM.
58
59config SB800_SATA_AHCI
60 bool "AHCI"
61 help
62 AHCI may work with or without AHCI ROM. It depends on the payload support.
63 For example, seabios does not require the AHCI ROM.
64
65config SB800_SATA_RAID
66 bool "RAID"
67 help
68 sb800 RAID mode must have the two required ROM files.
69
70endchoice
71
72config SB800_SATA_MODE
73 hex
74 depends on (SB800_SATA_IDE || SB800_SATA_RAID || SB800_SATA_AHCI)
75 default "0x0" if SB800_SATA_IDE
76 default "0x1" if SB800_SATA_RAID
77 default "0x2" if SB800_SATA_AHCI
78
Kerry She6209c822011-08-18 18:44:00 +080079config SB_SUPERIO_HWM
80 bool
81 default n
Kerry Shehd4a0e7d2011-10-10 17:17:39 +080082
83if SB800_SATA_AHCI
84config AHCI_ROM_ID
85 string "AHCI device PCI IDs"
86 default "1002,4391"
87
88config SB800_AHCI_ROM
89 bool "Add a AHCI ROM"
90
91config AHCI_ROM_FILE
92 string "AHCI ROM path and filename"
93 depends on SB800_AHCI_ROM
94 default "site-local/sb800/ahci.bin"
95endif
96
97if SB800_SATA_RAID
98config RAID_ROM_ID
99 string "RAID device PCI IDs"
100 default "1002,4393"
101 help
102 1002,4392 for SATA NON-RAID5 module, 1002,4393 for SATA RAID5 mode
103
104config RAID_ROM_FILE
105 string "RAID ROM path and filename"
106 depends on SB800_SATA_RAID
107 default "site-local/sb800/raid.bin"
108
109config RAID_MISC_ROM_FILE
110 string "RAID Misc ROM path and filename"
111 default "site-local/sb800/misc.bin"
112 depends on SB800_SATA_RAID
113
Kerry Sheh55437c52011-10-12 11:42:59 +0800114config RAID_MISC_ROM_POSITION
115 hex "RAID Misc ROM Position"
116 default 0xFFF00000
117 depends on SB800_SATA_RAID
118 help
119 The RAID ROM requires that the MISC ROM is located between the range
120 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
121 The CONFIG_ROM_SIZE must larger than 0x100000.
122
Kerry Shehd4a0e7d2011-10-10 17:17:39 +0800123endif
124
efdesign9805a89ab2011-06-20 17:38:49 -0700125endif #SOUTHBRIDGE_AMD_CIMX_SB800
Frank Vibrans63e62b02011-02-14 18:38:14 +0000126