<div dir="ltr">Here's a list of the #defines that I think we should look at.  I would like to detect as many as possible, and add the rest to the dts or Kconfig.<br><br>./libstage1.c:#if HT_CHAIN_UNITID_BASE != 0<br>./domain.c:#if HW_MEM_HOLE_SIZE_AUTO_INC == 1<br>
./coherent_ht.c:#ifndef TRY_HIGH_FIRST<br>./coherent_ht.c:#ifndef K8_HT_CHECK_PENDING_LINK<br>./coherent_ht.c:#ifndef ENABLE_APIC_EXT_ID<br>./coherent_ht.c:#ifdef CONFIG_K8_HT_FREQ_1G_SUPPORT<br>./coherent_ht.c:#if CONFIG_CROSS_BAR_47_56<br>
./coherent_ht.c:#if (CONFIG_MAX_PHYSICAL_CPUS > 4) || (CONFIG_MAX_PHYSICAL_CPUS_4_BUT_MORE_INSTALLED == 1)    <br>./coherent_ht.c:#if CONFIG_USE_PRINTK_IN_CAR<br>./coherent_ht.c:#if CONFIG_LOGICAL_CPUS==1<br>./pci.c:#if SB_HT_CHAIN_ON_BUS0 > 0<br>
./pci.c:#if SB_HT_CHAIN_UNITID_OFFSET_ONLY == 1<br>./pci.c:#ifdef CONFIG_MULTIPLE_VGA_INIT<br>./incoherent_ht.c:        #if (CONFIG_K8_SCAN_PCI_BUS == 1)<br>./incoherent_ht.c:#if CONFIG_K8_ALLOCATE_IO_RANGE == 1<br>./raminit.c:#if defined(CONFIG_LB_MEM_TOPK) & ((CONFIG_LB_MEM_TOPK -1) != 0)<br>
./raminit.c:#ifdef QRANK_DIMM_SUPPORT<br>./raminit.c:#if CPU_SOCKET_TYPE == SOCKET_L1<br>./raminit.c:#if CPU_SOCKET_TYPE == SOCKET_AM2<br>./raminit.c:#ifdef DRAM_MIN_CYCLE_TIME<br>./raminit.c:#if DIMM_SUPPORT==0x0104   /* DDR2 and REG */<br>
./raminit.c:#if MEM_TRAIN_SEQ ==  0<br>./dqs.c:    #if CONFIG_AP_CODE_IN_CAR == 0<br><br>This one would be nice to simplify to the point where it only occurs in one place.<br>./domain.c:#ifdef CONFIG_PCI_64BIT_PREF_MEM<br>
<br>Thanks,<br>Myles<br></div>