![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | ast2300_dram_param |
Macros | |
#define | COREBOOT_AST_FAILOVER_TIMEOUT 10000000 |
#define | CBR_SIZE_AST2150 ((16 << 10) - 1) |
#define | CBR_PASSNUM_AST2150 5 |
#define | CBR_THRESHOLD_AST2150 10 |
#define | CBR_THRESHOLD2_AST2150 10 |
#define | TIMEOUT_AST2150 5000000 |
#define | CBR_PATNUM_AST2150 8 |
#define | AST_DDR3 0 |
#define | AST_DDR2 1 |
#define | CBR_SIZE0 ((1 << 10) - 1) |
#define | CBR_SIZE1 ((4 << 10) - 1) |
#define | CBR_SIZE2 ((64 << 10) - 1) |
#define | CBR_PASSNUM 5 |
#define | CBR_PASSNUM2 5 |
#define | CBR_THRESHOLD 10 |
#define | CBR_THRESHOLD2 10 |
#define | TIMEOUT 5000000 |
#define | CBR_PATNUM 8 |
Variables | |
static const u8 | extreginfo [] = { 0x0f, 0x04, 0x1c, 0xff } |
static const u8 | extreginfo_ast2300a0 [] = { 0x0f, 0x04, 0x1c, 0xff } |
static const u8 | extreginfo_ast2300 [] = { 0x0f, 0x04, 0x1f, 0xff } |
static const u32 | pattern_AST2150 [14] |
static const u32 | pattern [8] |
#define AST_DDR2 1 |
Definition at line 388 of file ast_post.c.
#define AST_DDR3 0 |
Definition at line 387 of file ast_post.c.
#define CBR_PASSNUM 5 |
Definition at line 421 of file ast_post.c.
#define CBR_PASSNUM2 5 |
Definition at line 422 of file ast_post.c.
#define CBR_PASSNUM_AST2150 5 |
Definition at line 132 of file ast_post.c.
#define CBR_PATNUM 8 |
Definition at line 426 of file ast_post.c.
#define CBR_PATNUM_AST2150 8 |
Definition at line 137 of file ast_post.c.
#define CBR_SIZE0 ((1 << 10) - 1) |
Definition at line 418 of file ast_post.c.
#define CBR_SIZE1 ((4 << 10) - 1) |
Definition at line 419 of file ast_post.c.
#define CBR_SIZE2 ((64 << 10) - 1) |
Definition at line 420 of file ast_post.c.
#define CBR_SIZE_AST2150 ((16 << 10) - 1) |
Definition at line 131 of file ast_post.c.
#define CBR_THRESHOLD 10 |
Definition at line 423 of file ast_post.c.
#define CBR_THRESHOLD2 10 |
Definition at line 424 of file ast_post.c.
#define CBR_THRESHOLD2_AST2150 10 |
Definition at line 134 of file ast_post.c.
#define CBR_THRESHOLD_AST2150 10 |
Definition at line 133 of file ast_post.c.
#define COREBOOT_AST_FAILOVER_TIMEOUT 10000000 |
Definition at line 3 of file ast_post.c.
#define TIMEOUT 5000000 |
Definition at line 425 of file ast_post.c.
#define TIMEOUT_AST2150 5000000 |
Definition at line 135 of file ast_post.c.
|
static |
Definition at line 2038 of file ast_post.c.
References ast, ast2500_ddr3_1600_timing_table, ast2500_ddr4_1600_timing_table, ast_mindwm(), ast_moutdwm(), ddr3_init_2500(), ddr4_init_2500(), ddr_init_common_2500(), ddr_test_2500(), reset_mmc_2500(), and set_mpll_2500().
Referenced by ast_post_chip_2500().
void ast_enable_mmio | ( | struct drm_device * | dev | ) |
Definition at line 22 of file ast_post.c.
References ast, AST_IO_CRTC_PORT, ast_set_index_reg_mask(), ast_private::dev, and drm_device::dev_private.
Referenced by ast_detect_chip(), and ast_post_gpu().
void ast_enable_vga | ( | struct drm_device * | dev | ) |
Definition at line 14 of file ast_post.c.
References ast, AST_IO_MISC_PORT_WRITE, AST_IO_VGA_ENABLE_PORT, ast_private::dev, and drm_device::dev_private.
Referenced by ast_detect_chip(), and ast_post_gpu().
|
static |
Definition at line 241 of file ast_post.c.
References ast, AST1100, ast1100_dram_table_data, AST2000, ast2000_dram_table_data, AST2100, ast2100_dram_table_data, AST2150, AST2200, AST_DRAM_1Gx16, AST_DRAM_1Gx32, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, cbrdlli_ast2150(), ast_private::chip, COREBOOT_AST_FAILOVER_TIMEOUT, ast_dramstruct::data, ast_private::dev, dev_err, drm_device::dev_private, ast_private::dram_type, ast_dramstruct::index, mdelay(), drm_device::pdev, and udelay().
Referenced by ast_post_gpu().
bool ast_is_vga_enabled | ( | struct drm_device * | dev | ) |
Definition at line 29 of file ast_post.c.
References ast, AST1180, AST_IO_VGA_ENABLE_PORT, ch, ast_private::chip, ast_private::dev, and drm_device::dev_private.
Referenced by ast_detect_chip().
u32 ast_mindwm | ( | struct ast_private * | ast, |
u32 | r | ||
) |
Definition at line 93 of file ast_post.c.
References ast, COREBOOT_AST_FAILOVER_TIMEOUT, ast_private::dev, dev_err, and drm_device::pdev.
Referenced by ast_backup_fw(), ast_dp501_read_edid(), ast_dram_init_2500(), ast_get_dp501_max_clk(), ast_launch_m68k(), ast_post_chip_2300(), ast_post_chip_2500(), cbr_dll2(), check_dram_size_2500(), ddr2_init(), ddr3_init(), ddr4_init_2500(), ddr_phy_init_2500(), enable_cache_2500(), finetuneDQSI(), get_ddr2_info(), get_ddr3_info(), get_fw_base(), mmc_test(), mmc_test2(), mmctestburst2_ast2150(), and set_mpll_2500().
void ast_moutdwm | ( | struct ast_private * | ast, |
u32 | r, | ||
u32 | v | ||
) |
Definition at line 111 of file ast_post.c.
References ast, COREBOOT_AST_FAILOVER_TIMEOUT, ast_private::dev, dev_err, and drm_device::pdev.
Referenced by ast_dram_init_2500(), ast_launch_m68k(), ast_post_chip_2300(), ast_post_chip_2500(), cbr_dll2(), cbr_scan(), cbr_scan2(), cbr_scan3(), cbr_test_2500(), cbrdlli_ast2150(), cbrscan_ast2150(), check_dram_size_2500(), ddr2_init(), ddr3_init(), ddr3_init_2500(), ddr4_init_2500(), ddr_init_common_2500(), ddr_phy_init_2500(), ddr_test_2500(), enable_cache_2500(), finetuneDQI_L(), finetuneDQSI(), get_ddr2_info(), get_ddr3_info(), mmc_test(), mmc_test2(), mmctestburst2_ast2150(), reset_mmc_2500(), and set_mpll_2500().
|
static |
Definition at line 1623 of file ast_post.c.
References ast, AST_DDR2, AST_DDR3, AST_DRAM_1Gx16, AST_DRAM_2Gx16, AST_DRAM_4Gx16, AST_DRAM_512Mx16, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_mindwm(), ast_moutdwm(), AST_VIDMEM_SIZE_16M, AST_VIDMEM_SIZE_32M, AST_VIDMEM_SIZE_64M, AST_VIDMEM_SIZE_8M, COREBOOT_AST_FAILOVER_TIMEOUT, ddr2_init(), ddr3_init(), ast_private::dev, dev_err, drm_device::dev_private, ast2300_dram_param::dram_chipid, ast2300_dram_param::dram_freq, ast2300_dram_param::dram_type, get_ddr2_info(), get_ddr3_info(), drm_device::pdev, and ast2300_dram_param::vram_size.
Referenced by ast_post_gpu().
|
static |
Definition at line 2066 of file ast_post.c.
References ast, ast_dram_init_2500(), ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_mindwm(), ast_moutdwm(), BIOS_ERR, ast_private::dev, drm_device::dev_private, mdelay(), and printk.
Referenced by ast_post_gpu().
void ast_post_gpu | ( | struct drm_device * | dev | ) |
Definition at line 356 of file ast_post.c.
References ast, AST2300, AST2400, AST2500, ast_enable_mmio(), ast_enable_vga(), ast_init_3rdtx(), ast_init_dram_reg(), AST_IO_CRTC_PORT, ast_open_key(), ast_post_chip_2300(), ast_post_chip_2500(), ast_set_def_ext_reg(), ast_set_index_reg_mask(), AST_TX_NONE, ast_private::ast_use_p2a, ast_private::chip, ast_private::config_mode, ast_private::dev, drm_device::dev_private, pci_read_config_dword(), pci_write_config_dword(), drm_device::pdev, and ast_private::tx_chip_type.
Referenced by ast_driver_load().
|
static |
Definition at line 48 of file ast_post.c.
References ast, AST2300, AST2400, AST2500, AST_IO_CRTC_PORT, ast_set_index_reg(), ast_set_index_reg_mask(), ast_private::chip, ast_private::dev, drm_device::dev_private, extreginfo, extreginfo_ast2300, extreginfo_ast2300a0, pci_read_config_dword(), and drm_device::pdev.
Referenced by ast_post_gpu().
|
static |
Definition at line 793 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), cbr_scan(), CBR_SIZE2, CBR_THRESHOLD, finetuneDQI_L(), finetuneDQSI(), and retry.
Referenced by ddr2_init(), and ddr3_init().
|
static |
Definition at line 523 of file ast_post.c.
References ast, ast_moutdwm(), CBR_PASSNUM2, CBR_PATNUM, cbr_test(), and pattern.
Referenced by cbr_dll2().
|
static |
Definition at line 558 of file ast_post.c.
References ast, ast_moutdwm(), CBR_PASSNUM2, CBR_PATNUM, cbr_test2(), and pattern.
Referenced by finetuneDQI_L().
|
static |
Definition at line 588 of file ast_post.c.
References ast, ast_moutdwm(), CBR_PATNUM, cbr_test3(), and pattern.
Referenced by finetuneDQSI().
|
static |
Definition at line 504 of file ast_post.c.
References ast, mmc_test_burst2(), and mmc_test_single2().
Referenced by cbr_scan().
|
static |
Definition at line 544 of file ast_post.c.
References ast, mmc_test_burst2(), and mmc_test_single2().
Referenced by cbr_scan2().
|
static |
Definition at line 579 of file ast_post.c.
References ast, mmc_test_burst(), and mmc_test_single().
Referenced by cbr_scan3().
|
static |
Definition at line 1717 of file ast_post.c.
References ast, ast_moutdwm(), mmc_test_burst(), and mmc_test_single_2500().
Referenced by ddr4_init_2500().
|
static |
Definition at line 211 of file ast_post.c.
References ast, ast_moutdwm(), CBR_THRESHOLD_AST2150, and cbrscan_ast2150().
Referenced by ast_init_dram_reg().
|
static |
Definition at line 195 of file ast_post.c.
References ast, ast_moutdwm(), CBR_PASSNUM_AST2150, CBR_PATNUM_AST2150, cbrtest_ast2150(), and pattern_AST2150.
Referenced by cbrdlli_ast2150().
|
static |
Definition at line 185 of file ast_post.c.
References ast, and mmctestburst2_ast2150().
Referenced by cbrscan_ast2150().
|
static |
Definition at line 1802 of file ast_post.c.
References ast, ast_mindwm(), and ast_moutdwm().
Referenced by ddr3_init_2500(), and ddr4_init_2500().
|
static |
Definition at line 1478 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), cbr_dll2(), COREBOOT_AST_FAILOVER_TIMEOUT, dev_err, ast2300_dram_param::dram_config, ast2300_dram_param::madj_max, ast2300_dram_param::reg_AC1, ast2300_dram_param::reg_AC2, ast2300_dram_param::reg_DQIDLY, ast2300_dram_param::reg_DQSIC, ast2300_dram_param::reg_DRV, ast2300_dram_param::reg_EMRS, ast2300_dram_param::reg_FREQ, ast2300_dram_param::reg_IOZ, ast2300_dram_param::reg_MADJ, ast2300_dram_param::reg_MRS, ast2300_dram_param::reg_SADJ, retry, ast2300_dram_param::rodt, udelay(), and ast2300_dram_param::wodt.
Referenced by ast_post_chip_2300().
|
static |
Definition at line 1091 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), cbr_dll2(), COREBOOT_AST_FAILOVER_TIMEOUT, dev_err, ast2300_dram_param::dram_config, ast2300_dram_param::madj_max, ast2300_dram_param::reg_AC1, ast2300_dram_param::reg_AC2, ast2300_dram_param::reg_DQIDLY, ast2300_dram_param::reg_DQSIC, ast2300_dram_param::reg_DRV, ast2300_dram_param::reg_EMRS, ast2300_dram_param::reg_FREQ, ast2300_dram_param::reg_IOZ, ast2300_dram_param::reg_MADJ, ast2300_dram_param::reg_MRS, ast2300_dram_param::reg_SADJ, retry, ast2300_dram_param::rodt, udelay(), and ast2300_dram_param::wodt.
Referenced by ast_post_chip_2300().
|
static |
Definition at line 1884 of file ast_post.c.
References ast, ast_moutdwm(), check_dram_size_2500(), ddr_phy_init_2500(), enable_cache_2500(), REGIDX_010, REGIDX_014, REGIDX_018, REGIDX_020, REGIDX_024, REGIDX_02C, REGIDX_030, REGIDX_214, REGIDX_2E0, REGIDX_2E4, REGIDX_2E8, REGIDX_2EC, REGIDX_2F0, REGIDX_2F4, REGIDX_2F8, REGIDX_PLL, and REGIDX_RFC.
Referenced by ast_dram_init_2500().
|
static |
Definition at line 1928 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), cbr_test_2500(), check_dram_size_2500(), ddr_phy_init_2500(), enable_cache_2500(), REGIDX_010, REGIDX_014, REGIDX_018, REGIDX_020, REGIDX_024, REGIDX_02C, REGIDX_030, REGIDX_214, REGIDX_2E0, REGIDX_2E4, REGIDX_2E8, REGIDX_2EC, REGIDX_2F0, REGIDX_2F4, REGIDX_2F8, REGIDX_PLL, and REGIDX_RFC.
Referenced by ast_dram_init_2500().
|
static |
Definition at line 1745 of file ast_post.c.
References ast, and ast_moutdwm().
Referenced by ast_dram_init_2500().
|
static |
Definition at line 1768 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), TIMEOUT, and udelay().
Referenced by ddr3_init_2500(), and ddr4_init_2500().
|
static |
Definition at line 1728 of file ast_post.c.
References ast, ast_moutdwm(), mmc_test_burst(), and mmc_test_single_2500().
Referenced by ast_dram_init_2500().
|
static |
Definition at line 1833 of file ast_post.c.
References ast, ast_mindwm(), and ast_moutdwm().
Referenced by ddr3_init_2500(), and ddr4_init_2500().
|
static |
Definition at line 604 of file ast_post.c.
References ast, ast_moutdwm(), cbr_scan2(), CBR_SIZE1, CBR_THRESHOLD2, mask, and retry.
Referenced by cbr_dll2().
|
static |
Definition at line 703 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), cbr_scan3(), and CBR_SIZE0.
Referenced by cbr_dll2().
|
static |
Definition at line 1232 of file ast_post.c.
References ast, AST_DRAM_1Gx16, AST_DRAM_2Gx16, AST_DRAM_4Gx16, AST_DRAM_512Mx16, ast_mindwm(), ast_moutdwm(), AST_VIDMEM_SIZE_16M, AST_VIDMEM_SIZE_32M, AST_VIDMEM_SIZE_64M, AST_VIDMEM_SIZE_8M, ast2300_dram_param::dll2_finetune_step, ast2300_dram_param::dram_chipid, ast2300_dram_param::dram_config, ast2300_dram_param::dram_freq, ast2300_dram_param::madj_max, ast2300_dram_param::reg_AC1, ast2300_dram_param::reg_AC2, ast2300_dram_param::reg_DQIDLY, ast2300_dram_param::reg_DQSIC, ast2300_dram_param::reg_DRV, ast2300_dram_param::reg_EMRS, ast2300_dram_param::reg_FREQ, ast2300_dram_param::reg_IOZ, ast2300_dram_param::reg_MADJ, ast2300_dram_param::reg_MRS, ast2300_dram_param::reg_PERIOD, ast2300_dram_param::reg_SADJ, ast2300_dram_param::rodt, ast2300_dram_param::vram_size, and ast2300_dram_param::wodt.
Referenced by ast_post_chip_2300().
|
static |
Definition at line 849 of file ast_post.c.
References ast, AST_DRAM_1Gx16, AST_DRAM_2Gx16, AST_DRAM_4Gx16, AST_DRAM_512Mx16, ast_mindwm(), ast_moutdwm(), AST_VIDMEM_SIZE_16M, AST_VIDMEM_SIZE_32M, AST_VIDMEM_SIZE_64M, AST_VIDMEM_SIZE_8M, ast2300_dram_param::dll2_finetune_step, ast2300_dram_param::dram_chipid, ast2300_dram_param::dram_config, ast2300_dram_param::dram_freq, ast2300_dram_param::madj_max, ast2300_dram_param::reg_AC1, ast2300_dram_param::reg_AC2, ast2300_dram_param::reg_DQIDLY, ast2300_dram_param::reg_DQSIC, ast2300_dram_param::reg_DRV, ast2300_dram_param::reg_EMRS, ast2300_dram_param::reg_FREQ, ast2300_dram_param::reg_IOZ, ast2300_dram_param::reg_MADJ, ast2300_dram_param::reg_MRS, ast2300_dram_param::reg_PERIOD, ast2300_dram_param::reg_SADJ, ast2300_dram_param::rodt, ast2300_dram_param::vram_size, and ast2300_dram_param::wodt.
Referenced by ast_post_chip_2300().
|
static |
Definition at line 439 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), and TIMEOUT.
Referenced by mmc_test_burst(), mmc_test_single(), and mmc_test_single_2500().
|
static |
Definition at line 459 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), and TIMEOUT.
Referenced by mmc_test_burst2(), and mmc_test_single2().
|
static |
Definition at line 479 of file ast_post.c.
References ast, and mmc_test().
Referenced by cbr_test3(), cbr_test_2500(), and ddr_test_2500().
|
static |
Definition at line 484 of file ast_post.c.
References ast, and mmc_test2().
Referenced by cbr_test(), and cbr_test2().
|
static |
Definition at line 489 of file ast_post.c.
References ast, and mmc_test().
Referenced by cbr_test3().
|
static |
Definition at line 494 of file ast_post.c.
References ast, and mmc_test2().
Referenced by cbr_test(), and cbr_test2().
|
static |
Definition at line 499 of file ast_post.c.
References ast, and mmc_test().
Referenced by cbr_test_2500(), and ddr_test_2500().
|
static |
Definition at line 156 of file ast_post.c.
References ast, ast_mindwm(), ast_moutdwm(), and TIMEOUT_AST2150.
Referenced by cbrtest_ast2150().
|
static |
Definition at line 1873 of file ast_post.c.
References ast, ast_moutdwm(), and mdelay().
Referenced by ast_dram_init_2500().
|
static |
Definition at line 1846 of file ast_post.c.
References addr, ast, ast_mindwm(), ast_moutdwm(), and udelay().
Referenced by ast_dram_init_2500().
|
static |
Definition at line 43 of file ast_post.c.
Referenced by ast_set_def_ext_reg().
|
static |
Definition at line 45 of file ast_post.c.
Referenced by ast_set_def_ext_reg().
|
static |
Definition at line 44 of file ast_post.c.
Referenced by ast_set_def_ext_reg().
|
static |
Definition at line 428 of file ast_post.c.
Referenced by cbr_scan(), cbr_scan2(), cbr_scan3(), display_pattern(), exynos_dp_set_training_pattern(), fill_pattern5(), test_dq_aligned(), write_training_test(), ww_ring_display_pattern(), and xhci_acpi_name().
|
static |
Definition at line 139 of file ast_post.c.
Referenced by cbrscan_ast2150().