Lines Matching +full:ast2500 +full:- +full:silicon +full:- +full:id
14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
44 static int ast_modeset = -1;
77 #define AST_VGA_DEVICE(id, info) { \
81 .device = id, \
140 struct device *dev = &pdev->dev;
141 struct device_node *np = dev->of_node;
152 /* Check if we have device-tree properties */
153 if (np && !of_property_read_u32(np, "aspeed,scu-revision-id", &data)) {
157 } else if (pdev->device == PCI_CHIP_AST2000) { // Not all families have a P2A bridge
171 /* Patch AST2500/AST2510 */
172 if ((pdev->revision & 0xf0) == 0x40) {
182 /* Read SCU7c (silicon revision register) */
195 dev_info(dev, "Using device-tree for configuration\n");
206 if (pdev->revision >= 0x50) {
209 } else if (pdev->revision >= 0x40) {
216 chip = AST2500;
220 } else if (pdev->revision >= 0x30) {
231 } else if (pdev->revision >= 0x20) {
242 } else if (pdev->revision >= 0x10) {
274 struct device *dev = &pdev->dev;
295 if (pdev->revision >= 0x40) {
297 * On AST2500 and later models, MMIO is enabled by
303 return -EIO;
304 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH)
305 return -EIO;
314 return -EIO;
325 return -EIO;
326 if ((len - AST_IO_MM_OFFSET) < AST_IO_MM_LENGTH)
327 return -EIO;
360 ret = drm_dev_register(drm, ent->driver_data);
389 pci_save_state(to_pci_dev(dev->dev));
398 ast_enable_vga(ast->ioregs);
399 ast_open_key(ast->ioregs);
400 ast_enable_mmio(dev->dev, ast->ioregs);
411 if (pci_enable_device(to_pci_dev(dev->dev)))
412 return -EIO;