bus: brcmstb_gisb: update to support new revision
authorDoug Berger <opendmb@gmail.com>
Thu, 30 Mar 2017 00:29:14 +0000 (17:29 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sun, 14 May 2017 03:18:57 +0000 (20:18 -0700)
The 7278 introduces a new version of this core.  This
commit adds support for that revision.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Documentation/devicetree/bindings/bus/brcm,gisb-arb.txt
drivers/bus/brcmstb_gisb.c

index 1eceefb20f01a887933c4c5f58d2583da287f031..8a6c3c2e58fe565c53a0772c143a03c0f8ab2eee 100644 (file)
@@ -3,7 +3,8 @@ Broadcom GISB bus Arbiter controller
 Required properties:
 
 - compatible:
-    "brcm,gisb-arb" or "brcm,bcm7445-gisb-arb" for 28nm chips
+    "brcm,bcm7278-gisb-arb" for V7 28nm chips
+    "brcm,gisb-arb" or "brcm,bcm7445-gisb-arb" for other 28nm chips
     "brcm,bcm7435-gisb-arb" for newer 40nm chips
     "brcm,bcm7400-gisb-arb" for older 40nm chips and all 65nm chips
     "brcm,bcm7038-gisb-arb" for 130nm chips
index 3fbc116e6b956fe3478122b3ecb9ce06ba5fd149..68ac3e93b600766fb1bf6eb308c23bc2d9097bd2 100644 (file)
@@ -56,6 +56,15 @@ static const int gisb_offsets_bcm7038[] = {
        [ARB_ERR_CAP_MASTER]    = -1,
 };
 
+static const int gisb_offsets_bcm7278[] = {
+       [ARB_TIMER]             = 0x008,
+       [ARB_ERR_CAP_CLR]       = 0x7f8,
+       [ARB_ERR_CAP_HI_ADDR]   = -1,
+       [ARB_ERR_CAP_ADDR]      = 0x7e0,
+       [ARB_ERR_CAP_STATUS]    = 0x7f0,
+       [ARB_ERR_CAP_MASTER]    = 0x7f4,
+};
+
 static const int gisb_offsets_bcm7400[] = {
        [ARB_TIMER]             = 0x00c,
        [ARB_ERR_CAP_CLR]       = 0x0c8,
@@ -307,6 +316,7 @@ static const struct of_device_id brcmstb_gisb_arb_of_match[] = {
        { .compatible = "brcm,bcm7445-gisb-arb", .data = gisb_offsets_bcm7445 },
        { .compatible = "brcm,bcm7435-gisb-arb", .data = gisb_offsets_bcm7435 },
        { .compatible = "brcm,bcm7400-gisb-arb", .data = gisb_offsets_bcm7400 },
+       { .compatible = "brcm,bcm7278-gisb-arb", .data = gisb_offsets_bcm7278 },
        { .compatible = "brcm,bcm7038-gisb-arb", .data = gisb_offsets_bcm7038 },
        { },
 };