File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -425,11 +425,12 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,
425
425
return ERR_PTR (- EIO );
426
426
427
427
/*
428
- * If we don't have IO space at all, use MMIO now and
429
- * assume the chip has MMIO enabled by default (rev 0x20
430
- * and higher).
428
+ * After AST2500, MMIO is enabled by default, and it should be adopted
429
+ * to be compatible with Arm.
431
430
*/
432
- if (!(pci_resource_flags (pdev , 2 ) & IORESOURCE_IO )) {
431
+ if (pdev -> revision >= 0x40 ) {
432
+ ast -> ioregs = ast -> regs + AST_IO_MM_OFFSET ;
433
+ } else if (!(pci_resource_flags (pdev , 2 ) & IORESOURCE_IO )) {
433
434
drm_info (dev , "platform has no IO space, trying MMIO\n" );
434
435
ast -> ioregs = ast -> regs + AST_IO_MM_OFFSET ;
435
436
}
You can’t perform that action at this time.
0 commit comments