Skip to content

Commit 86964bb

Browse files
committed
bus: brcmstb_gisb: Added support for 74165 register layout
BCM74165 introduces a new register layout which is different from previously taped out chips, match the documented compatible and use the appropriate table of register offsets. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]>
1 parent d9b3869 commit 86964bb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/bus/brcmstb_gisb.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ static const int gisb_offsets_bcm7400[] = {
9696
[ARB_ERR_CAP_MASTER] = 0x0d8,
9797
};
9898

99+
static const int gisb_offsets_bcm74165[] = {
100+
[ARB_TIMER] = 0x008,
101+
[ARB_BP_CAP_CLR] = 0x044,
102+
[ARB_BP_CAP_HI_ADDR] = -1,
103+
[ARB_BP_CAP_ADDR] = 0x048,
104+
[ARB_BP_CAP_STATUS] = 0x058,
105+
[ARB_BP_CAP_MASTER] = 0x05c,
106+
[ARB_ERR_CAP_CLR] = 0x038,
107+
[ARB_ERR_CAP_HI_ADDR] = -1,
108+
[ARB_ERR_CAP_ADDR] = 0x020,
109+
[ARB_ERR_CAP_STATUS] = 0x030,
110+
[ARB_ERR_CAP_MASTER] = 0x034,
111+
};
112+
99113
static const int gisb_offsets_bcm7435[] = {
100114
[ARB_TIMER] = 0x00c,
101115
[ARB_BP_CAP_CLR] = 0x014,
@@ -393,6 +407,7 @@ static const struct of_device_id brcmstb_gisb_arb_of_match[] = {
393407
{ .compatible = "brcm,bcm7400-gisb-arb", .data = gisb_offsets_bcm7400 },
394408
{ .compatible = "brcm,bcm7278-gisb-arb", .data = gisb_offsets_bcm7278 },
395409
{ .compatible = "brcm,bcm7038-gisb-arb", .data = gisb_offsets_bcm7038 },
410+
{ .compatible = "brcm,bcm74165-gisb-arb", .data = gisb_offsets_bcm74165 },
396411
{ },
397412
};
398413

0 commit comments

Comments
 (0)