Re-integrate "USE_OPTION_TABLE" code.
Signed-off-by: Edwin Beasant <edwin_beasant@virtensys.com> Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5653 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Myles Watson
parent
8376831eaf
commit
eb50c7d922
@@ -6,6 +6,7 @@
|
||||
#endif
|
||||
|
||||
#include "cpu/amd/dualcore/dualcore_id.c"
|
||||
#include <pc80/mc146818rtc.h>
|
||||
|
||||
static inline unsigned get_core_num_in_bsp(unsigned nodeid)
|
||||
{
|
||||
@@ -56,8 +57,7 @@ static inline void start_other_cores(void)
|
||||
unsigned nodes;
|
||||
unsigned nodeid;
|
||||
|
||||
if (CONFIG_HAVE_OPTION_TABLE &&
|
||||
read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0) != 0) {
|
||||
if (read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0)) {
|
||||
return; // disable multi_core
|
||||
}
|
||||
|
||||
|
@@ -109,13 +109,12 @@ static void for_each_ap(u32 bsp_apicid, u32 core_range, process_ap_t process_ap,
|
||||
/* get_nodes define in ht_wrapper.c */
|
||||
nodes = get_nodes();
|
||||
|
||||
disable_siblings = !CONFIG_LOGICAL_CPUS;
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS == 1 && CONFIG_HAVE_OPTION_TABLE == 1
|
||||
if (read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0) != 0) { // 0 mean multi core
|
||||
if (!CONFIG_LOGICAL_CPUS ||
|
||||
read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0) != 0) { // 0 means multi core
|
||||
disable_siblings = 1;
|
||||
} else {
|
||||
disable_siblings = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Assume that all node are same stepping, otherwise we can use use
|
||||
nb_cfg_54 from bsp for all nodes */
|
||||
|
@@ -36,13 +36,12 @@ static void for_each_ap(u32 bsp_apicid, u32 core_range, process_ap_t process_ap,
|
||||
/* get_nodes define in in_coherent_ht.c */
|
||||
nodes = get_nodes();
|
||||
|
||||
disable_siblings = !CONFIG_LOGICAL_CPUS;
|
||||
|
||||
#if CONFIG_LOGICAL_CPUS == 1 && CONFIG_HAVE_OPTION_TABLE == 1
|
||||
if (read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0) != 0) { // 0 mean multi core
|
||||
if (!CONFIG_LOGICAL_CPUS ||
|
||||
read_option(CMOS_VSTART_multi_core, CMOS_VLEN_multi_core, 0) != 0) { // 0 means multi core
|
||||
disable_siblings = 1;
|
||||
} else {
|
||||
disable_siblings = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* here I assume that all node are same stepping, otherwise we can use use nb_cfg_54 from bsp for all nodes */
|
||||
nb_cfg_54 = read_nb_cfg_54();
|
||||
|
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
#include <pc80/mc146818rtc_early.c>
|
||||
#include <pc80/mc146818rtc.h>
|
||||
#include <northbridge/amd/amdht/ht_wrapper.c>
|
||||
|
||||
#ifndef SET_NB_CFG_54
|
||||
|
Reference in New Issue
Block a user