Lines Matching +full:ast2500 +full:- +full:scu
14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
44 static int ast_modeset = -1;
140 struct device *dev = &pdev->dev; in ast_detect_chip()
141 struct device_node *np = dev->of_node; in ast_detect_chip()
149 * Find configuration mode and read SCU revision in ast_detect_chip()
152 /* Check if we have device-tree properties */ in ast_detect_chip()
153 if (np && !of_property_read_u32(np, "aspeed,scu-revision-id", &data)) { in ast_detect_chip()
157 } else if (pdev->device == PCI_CHIP_AST2000) { // Not all families have a P2A bridge in ast_detect_chip()
159 * The BMC will set SCU 0x40 D[12] to 1 if the P2 bridge in ast_detect_chip()
171 /* Patch AST2500/AST2510 */ in ast_detect_chip()
172 if ((pdev->revision & 0xf0) == 0x40) { in ast_detect_chip()
195 dev_info(dev, "Using device-tree for configuration\n"); in ast_detect_chip()
206 if (pdev->revision >= 0x50) { in ast_detect_chip()
209 } else if (pdev->revision >= 0x40) { in ast_detect_chip()
216 chip = AST2500; in ast_detect_chip()
220 } else if (pdev->revision >= 0x30) { in ast_detect_chip()
231 } else if (pdev->revision >= 0x20) { in ast_detect_chip()
242 } else if (pdev->revision >= 0x10) { in ast_detect_chip()
274 struct device *dev = &pdev->dev; in ast_pci_probe()
295 if (pdev->revision >= 0x40) { in ast_pci_probe()
297 * On AST2500 and later models, MMIO is enabled by in ast_pci_probe()
303 return -EIO; in ast_pci_probe()
304 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
305 return -EIO; in ast_pci_probe()
314 return -EIO; in ast_pci_probe()
325 return -EIO; in ast_pci_probe()
326 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
327 return -EIO; in ast_pci_probe()
360 ret = drm_dev_register(drm, ent->driver_data); in ast_pci_probe()
389 pci_save_state(to_pci_dev(dev->dev)); in ast_drm_freeze()
397 ast_enable_vga(ast->ioregs); in ast_drm_thaw()
398 ast_open_key(ast->ioregs); in ast_drm_thaw()
399 ast_enable_mmio(dev->dev, ast->ioregs); in ast_drm_thaw()
407 if (pci_enable_device(to_pci_dev(dev->dev))) in ast_drm_resume()
408 return -EIO; in ast_drm_resume()