Lines Matching +full:ast2500 +full:- +full:scu
14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
43 static int ast_modeset = -1;
139 struct device *dev = &pdev->dev; in ast_detect_chip()
140 struct device_node *np = dev->of_node; in ast_detect_chip()
148 * Find configuration mode and read SCU revision in ast_detect_chip()
151 /* Check if we have device-tree properties */ in ast_detect_chip()
152 if (np && !of_property_read_u32(np, "aspeed,scu-revision-id", &data)) { in ast_detect_chip()
156 } else if (pdev->device == PCI_CHIP_AST2000) { // Not all families have a P2A bridge in ast_detect_chip()
158 * The BMC will set SCU 0x40 D[12] to 1 if the P2 bridge in ast_detect_chip()
170 /* Patch AST2500/AST2510 */ in ast_detect_chip()
171 if ((pdev->revision & 0xf0) == 0x40) { in ast_detect_chip()
194 dev_info(dev, "Using device-tree for configuration\n"); in ast_detect_chip()
205 if (pdev->revision >= 0x50) { in ast_detect_chip()
208 } else if (pdev->revision >= 0x40) { in ast_detect_chip()
215 chip = AST2500; in ast_detect_chip()
219 } else if (pdev->revision >= 0x30) { in ast_detect_chip()
230 } else if (pdev->revision >= 0x20) { in ast_detect_chip()
241 } else if (pdev->revision >= 0x10) { in ast_detect_chip()
273 struct device *dev = &pdev->dev; in ast_pci_probe()
294 if (pdev->revision >= 0x40) { in ast_pci_probe()
296 * On AST2500 and later models, MMIO is enabled by in ast_pci_probe()
302 return -EIO; in ast_pci_probe()
303 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
304 return -EIO; in ast_pci_probe()
313 return -EIO; in ast_pci_probe()
324 return -EIO; in ast_pci_probe()
325 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
326 return -EIO; in ast_pci_probe()
359 ret = drm_dev_register(drm, ent->driver_data); in ast_pci_probe()
388 pci_save_state(to_pci_dev(dev->dev)); in ast_drm_freeze()
396 ast_enable_vga(ast->ioregs); in ast_drm_thaw()
397 ast_open_key(ast->ioregs); in ast_drm_thaw()
398 ast_enable_mmio(dev->dev, ast->ioregs); in ast_drm_thaw()
406 if (pci_enable_device(to_pci_dev(dev->dev))) in ast_drm_resume()
407 return -EIO; in ast_drm_resume()