Lines Matching +full:chip +full:- +full:scu
14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
46 ast->support_wide_screen = false; in ast_detect_widescreen()
51 ast->support_wide_screen = true; in ast_detect_widescreen()
53 ast->support_wide_screen = true; in ast_detect_widescreen()
55 ast->support_wide_screen = false; in ast_detect_widescreen()
56 if (ast->chip == AST1300) in ast_detect_widescreen()
57 ast->support_wide_screen = true; in ast_detect_widescreen()
58 if (ast->chip == AST1400) in ast_detect_widescreen()
59 ast->support_wide_screen = true; in ast_detect_widescreen()
60 if (ast->chip == AST2510) in ast_detect_widescreen()
61 ast->support_wide_screen = true; in ast_detect_widescreen()
63 ast->support_wide_screen = true; in ast_detect_widescreen()
78 struct drm_device *dev = &ast->base; in ast_detect_tx_chip()
83 * by the ast driver. If these exist in real-world devices, they in ast_detect_tx_chip()
97 ast->tx_chip = AST_TX_NONE; in ast_detect_tx_chip()
103 * Don't make that assumption if we the chip wasn't enabled and in ast_detect_tx_chip()
104 * is at power-on reset, otherwise we'll incorrectly "detect" a in ast_detect_tx_chip()
110 ast->tx_chip = AST_TX_SIL164; in ast_detect_tx_chip()
123 ast->tx_chip = AST_TX_SIL164; in ast_detect_tx_chip()
126 ast->dp501_fw_addr = drmm_kzalloc(dev, 32*1024, GFP_KERNEL); in ast_detect_tx_chip()
127 if (ast->dp501_fw_addr) { in ast_detect_tx_chip()
129 if (ast_backup_fw(ast, ast->dp501_fw_addr, 32*1024)) { in ast_detect_tx_chip()
130 drmm_kfree(dev, ast->dp501_fw_addr); in ast_detect_tx_chip()
131 ast->dp501_fw_addr = NULL; in ast_detect_tx_chip()
136 ast->tx_chip = AST_TX_DP501; in ast_detect_tx_chip()
144 ast->tx_chip = AST_TX_ASTDP; in ast_detect_tx_chip()
148 drm_info(dev, "Using %s\n", info_str[ast->tx_chip]); in ast_detect_tx_chip()
153 struct drm_device *dev = &ast->base; in ast_get_dram_info()
154 struct device_node *np = dev->dev->of_node; in ast_get_dram_info()
158 switch (ast->config_mode) { in ast_get_dram_info()
164 if (of_property_read_u32(np, "aspeed,mcr-configuration", in ast_get_dram_info()
167 if (of_property_read_u32(np, "aspeed,mcr-scu-mpll", in ast_get_dram_info()
170 if (of_property_read_u32(np, "aspeed,mcr-scu-strap", in ast_get_dram_info()
183 ast->dram_bus_width = 16; in ast_get_dram_info()
184 ast->dram_type = AST_DRAM_1Gx16; in ast_get_dram_info()
186 ast->mclk = 800; in ast_get_dram_info()
188 ast->mclk = 396; in ast_get_dram_info()
193 ast->dram_bus_width = 16; in ast_get_dram_info()
195 ast->dram_bus_width = 32; in ast_get_dram_info()
200 ast->dram_type = AST_DRAM_1Gx16; in ast_get_dram_info()
204 ast->dram_type = AST_DRAM_2Gx16; in ast_get_dram_info()
207 ast->dram_type = AST_DRAM_4Gx16; in ast_get_dram_info()
210 ast->dram_type = AST_DRAM_8Gx16; in ast_get_dram_info()
216 ast->dram_type = AST_DRAM_512Mx16; in ast_get_dram_info()
220 ast->dram_type = AST_DRAM_1Gx16; in ast_get_dram_info()
223 ast->dram_type = AST_DRAM_2Gx16; in ast_get_dram_info()
226 ast->dram_type = AST_DRAM_4Gx16; in ast_get_dram_info()
233 ast->dram_type = AST_DRAM_512Mx16; in ast_get_dram_info()
237 ast->dram_type = AST_DRAM_1Gx16; in ast_get_dram_info()
239 ast->dram_type = AST_DRAM_512Mx32; in ast_get_dram_info()
242 ast->dram_type = AST_DRAM_1Gx32; in ast_get_dram_info()
267 ast->mclk = ref_pll * (num + 2) / ((denum + 2) * (div * 1000)); in ast_get_dram_info()
273 enum ast_chip chip, in ast_device_create() argument
283 ast = devm_drm_dev_alloc(&pdev->dev, drv, struct ast_device, base); in ast_device_create()
286 dev = &ast->base; in ast_device_create()
288 ast->chip = chip; in ast_device_create()
289 ast->config_mode = config_mode; in ast_device_create()
290 ast->regs = regs; in ast_device_create()
291 ast->ioregs = ioregs; in ast_device_create()
301 ast->mclk, ast->dram_type, ast->dram_bus_width); in ast_device_create()
311 ast->dp501_fw_buf = NULL; in ast_device_create()
312 if (ast->vram_size < pci_resource_len(pdev, 0)) { in ast_device_create()
313 ast->dp501_fw_buf = pci_iomap_range(pdev, 0, ast->vram_size, 0); in ast_device_create()
314 if (!ast->dp501_fw_buf) in ast_device_create()