/************************************************* * enable the dedicated function in A785E-I board. * This function called early than rs780_enable. *************************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard A785E-I Enable. dev=0x%p\n", dev); set_pcie_dereset(); enable_int_gfx(); }
/************************************************* * enable the dedicated function in EAX-785E board. * This function called early than rs780_enable. *************************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); set_pcie_dereset(); enable_int_gfx(); }
/************************************************* * enable the dedicated function in this board. * This function called early than rs780_enable. *************************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard PA78VM5 Enable. dev=0x%p\n", dev); set_pcie_dereset(); /* get_ide_dma66(); */ }
/************************************************* * enable the dedicated function in ma785gm board. * This function called early than rs780_enable. *************************************************/ static void mainboard_enable(struct device *dev) { printk(BIOS_INFO, "Mainboard MA785GM-US2H Enable. dev=0x%p\n", dev); set_pcie_dereset(); /* get_ide_dma66(); */ set_gpio40_gfx(); }
/************************************************* * enable the dedicated function in this board. * This function called early than rs780_enable. *************************************************/ static void mainboard_enable(struct device *dev) { printk(BIOS_INFO, "Mainboard enable. dev=0x%p\n", dev); set_pcie_dereset(); /* get_ide_dma66(); */ set_thermal_config(); }
/************************************************* * enable the dedicated function in tilapia board. * This function called early than rs780_enable. *************************************************/ static void tilapia_enable(device_t dev) { printk(BIOS_INFO, "Mainboard TILAPIA Enable. dev=0x%p\n", dev); #if (CONFIG_GFXUMA == 1) msr_t msr, msr2; /* TOP_MEM: the top of DRAM below 4G */ msr = rdmsr(TOP_MEM); printk(BIOS_INFO, "%s, TOP MEM: msr.lo = 0x%08x, msr.hi = 0x%08x\n", __func__, msr.lo, msr.hi); /* TOP_MEM2: the top of DRAM above 4G */ msr2 = rdmsr(TOP_MEM2); printk(BIOS_INFO, "%s, TOP MEM2: msr2.lo = 0x%08x, msr2.hi = 0x%08x\n", __func__, msr2.lo, msr2.hi); switch (msr.lo) { case 0x10000000: /* 256M system memory */ uma_memory_size = 0x4000000; /* 64M recommended UMA */ break; case 0x20000000: /* 512M system memory */ uma_memory_size = 0x8000000; /* 128M recommended UMA */ break; default: /* 1GB and above system memory */ uma_memory_size = 0x10000000; /* 256M recommended UMA */ break; } uma_memory_base = msr.lo - uma_memory_size; /* TOP_MEM1 */ printk(BIOS_INFO, "%s: uma size 0x%08llx, memory start 0x%08llx\n", __func__, uma_memory_size, uma_memory_base); /* TODO: TOP_MEM2 */ #else uma_memory_size = 0x8000000; /* 128M recommended UMA */ uma_memory_base = 0x38000000; /* 1GB system memory supposed */ #endif set_pcie_dereset(); /* get_ide_dma66(); */ set_thermal_config(); set_gpio40_gfx(); }
/************************************************* * enable the dedicated function in M5A88-V board. * This function called early than rs780_enable. *************************************************/ static void m5a88pm_v_enable(device_t dev) { printk(BIOS_INFO, "Mainboard ASUS M5A88-V Enable. dev=0x%p\n", dev); #if (CONFIG_GFXUMA == 1) msr_t msr, msr2; /* TOP_MEM: the top of DRAM below 4G */ msr = rdmsr(TOP_MEM); printk (BIOS_INFO, "%s, TOP MEM: msr.lo = 0x%08x, msr.hi = 0x%08x\n", __func__, msr.lo, msr.hi); /* TOP_MEM2: the top of DRAM above 4G */ msr2 = rdmsr(TOP_MEM2); printk (BIOS_INFO, "%s, TOP MEM2: msr2.lo = 0x%08x, msr2.hi = 0x%08x\n", __func__, msr2.lo, msr2.hi); /* refer to UMA Size Consideration in 780 BDG. */ switch (msr.lo) { case 0x10000000: /* 256M system memory */ uma_memory_size = 0x4000000; /* 64M recommended UMA */ break; case 0x20000000: /* 512M system memory */ uma_memory_size = 0x8000000; /* 128M recommended UMA */ break; default: /* 1GB and above system memory */ uma_memory_size = 0x10000000; /* 256M recommended UMA */ break; } uma_memory_base = msr.lo - uma_memory_size; /* TOP_MEM1 */ printk(BIOS_INFO, "%s: uma size 0x%08llx, memory start 0x%08llx\n", __func__, uma_memory_size, uma_memory_base); /* TODO: TOP_MEM2 */ #else uma_memory_size = 0x8000000; /* 128M recommended UMA */ uma_memory_base = 0x38000000; /* 1GB system memory supposed */ #endif set_pcie_dereset(); enable_int_gfx(); }
/************************************************* * enable the dedicated function in kgpe-d16 board. * This function is called earlier than sr5650_enable. *************************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard KGPE-D16 Enable. dev=0x%p\n", dev); msr_t msr, msr2; /* TOP_MEM: the top of DRAM below 4G */ msr = rdmsr(TOP_MEM); printk (BIOS_INFO, "%s, TOP MEM: msr.lo = 0x%08x, msr.hi = 0x%08x\n", __func__, msr.lo, msr.hi); /* TOP_MEM2: the top of DRAM above 4G */ msr2 = rdmsr(TOP_MEM2); printk (BIOS_INFO, "%s, TOP MEM2: msr2.lo = 0x%08x, msr2.hi = 0x%08x\n", __func__, msr2.lo, msr2.hi); set_pcie_dereset(); /* get_ide_dma66(); */ }
/** * @brief Entry point of Southbridge CIMx callout * * prototype UINT32 (*SBCIM_HOOK_ENTRY)(UINT32 Param1, UINT32 Param2, void* pConfig) * * @param[in] func Southbridge CIMx Function ID. * @param[in] data Southbridge Input Data. * @param[in] sb_config Southbridge configuration structure pointer. * */ u32 sb800_callout_entry(u32 func, u32 data, void* config) { u32 ret = 0; printk(BIOS_DEBUG, "SB800 - Late.c - %s - Start.\n", __func__); switch (func) { case CB_SBGPP_RESET_ASSERT: set_pcie_reset(); break; case CB_SBGPP_RESET_DEASSERT: set_pcie_dereset(); break; case IMC_FIRMWARE_FAIL: break; default: break; } printk(BIOS_DEBUG, "SB800 - Late.c - %s - End.\n", __func__); return ret; }
/** * @brief Entry point of Southbridge CIMx callout * * prototype UINT32 (*SBCIM_HOOK_ENTRY)(UINT32 Param1, UINT32 Param2, void* pConfig) * * @param[in] func Southbridge CIMx Function ID. * @param[in] data Southbridge Input Data. * @param[in] sb_config Southbridge configuration structure pointer. * */ u32 sb800_callout_entry(u32 func, u32 data, void* config) { u32 ret = 0; switch (func) { case CB_SBGPP_RESET_ASSERT: //set_pcie_assert(); set_pcie_reset(); break; case CB_SBGPP_RESET_DEASSERT: //set_pcie_deassert(); set_pcie_dereset(); break; case IMC_FIRMWARE_FAIL: break; default: break; } return ret; }