forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/parisc/hppb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 ** hppb.c:
34 ** HP-PB bus driver for the NOVA and K-Class systems.
....@@ -5,10 +6,6 @@
56 ** (c) Copyright 2002 Ryan Bradetich
67 ** (c) Copyright 2002 Hewlett-Packard Company
78 **
8
-** This program is free software; you can redistribute it and/or modify
9
-** it under the terms of the GNU General Public License as published by
10
-** the Free Software Foundation; either version 2 of the License, or
11
-** (at your option) any later version.
129 **
1310 */
1411
....@@ -22,6 +19,8 @@
2219 #include <asm/io.h>
2320 #include <asm/hardware.h>
2421 #include <asm/parisc-device.h>
22
+
23
+#include "iommu.h"
2524
2625 struct hppb_card {
2726 unsigned long hpa;
....@@ -62,8 +61,6 @@
6261 }
6362 card = card->next;
6463 }
65
- printk(KERN_INFO "Found GeckoBoa at 0x%llx\n",
66
- (unsigned long long) dev->hpa.start);
6764
6865 card->hpa = dev->hpa.start;
6966 card->mmio_region.name = "HP-PB Bus";
....@@ -73,10 +70,11 @@
7370 card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1;
7471
7572 status = ccio_request_resource(dev, &card->mmio_region);
76
- if(status < 0) {
77
- printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
78
- __FILE__, &card->mmio_region);
79
- }
73
+
74
+ pr_info("Found GeckoBoa at %pap, bus space %pR,%s claimed.\n",
75
+ &dev->hpa.start,
76
+ &card->mmio_region,
77
+ (status < 0) ? " not":"" );
8078
8179 return 0;
8280 }