Lines Matching +full:ast2400 +full:- +full:scu
14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
44 static int ast_modeset = -1;
141 struct device *dev = &pdev->dev; in ast_detect_chip()
142 struct device_node *np = dev->of_node; in ast_detect_chip()
150 * Find configuration mode and read SCU revision in ast_detect_chip()
153 /* Check if we have device-tree properties */ in ast_detect_chip()
154 if (np && !of_property_read_u32(np, "aspeed,scu-revision-id", &data)) { in ast_detect_chip()
158 } else if (pdev->device == PCI_CHIP_AST2000) { // Not all families have a P2A bridge in ast_detect_chip()
160 * The BMC will set SCU 0x40 D[12] to 1 if the P2 bridge in ast_detect_chip()
173 if ((pdev->revision & 0xf0) == 0x40) { in ast_detect_chip()
196 dev_info(dev, "Using device-tree for configuration\n"); in ast_detect_chip()
207 if (pdev->revision >= 0x50) { in ast_detect_chip()
210 } else if (pdev->revision >= 0x40) { in ast_detect_chip()
221 } else if (pdev->revision >= 0x30) { in ast_detect_chip()
228 chip = AST2400; in ast_detect_chip()
232 } else if (pdev->revision >= 0x20) { in ast_detect_chip()
243 } else if (pdev->revision >= 0x10) { in ast_detect_chip()
275 struct device *dev = &pdev->dev; in ast_pci_probe()
296 if (pdev->revision >= 0x40) { in ast_pci_probe()
304 return -EIO; in ast_pci_probe()
305 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
306 return -EIO; in ast_pci_probe()
315 return -EIO; in ast_pci_probe()
326 return -EIO; in ast_pci_probe()
327 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH) in ast_pci_probe()
328 return -EIO; in ast_pci_probe()
361 ret = drm_dev_register(drm, ent->driver_data); in ast_pci_probe()
390 pci_save_state(to_pci_dev(dev->dev)); in ast_drm_freeze()
398 ast_enable_vga(ast->ioregs); in ast_drm_thaw()
399 ast_open_key(ast->ioregs); in ast_drm_thaw()
400 ast_enable_mmio(dev->dev, ast->ioregs); in ast_drm_thaw()
408 if (pci_enable_device(to_pci_dev(dev->dev))) in ast_drm_resume()
409 return -EIO; in ast_drm_resume()