aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-18 14:01:42 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-18 14:01:42 +1100
commit578a86a887b609d0314dc660d4968469b2aa58de (patch)
treebaab9bcb933cd8c8218acd60ca40e857deade95e /hdata
parent0baf63f38757d356de3436ac0ab47511f98b8723 (diff)
downloadskiboot-578a86a887b609d0314dc660d4968469b2aa58de.zip
skiboot-578a86a887b609d0314dc660d4968469b2aa58de.tar.gz
skiboot-578a86a887b609d0314dc660d4968469b2aa58de.tar.bz2
Remove missed bit of p5ioc code
Probably due to bad merge by me Fixes: 0baf63f38757 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/iohub.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/hdata/iohub.c b/hdata/iohub.c
index d599a05..7676adf 100644
--- a/hdata/iohub.c
+++ b/hdata/iohub.c
@@ -130,58 +130,6 @@ static void io_get_loc_code(const void *sp_iohubs, struct dt_node *hn, const cha
}
}
-static struct dt_node *io_add_p5ioc2(const struct cechub_io_hub *hub,
- const void *sp_iohubs)
-{
- struct dt_node *hn;
- uint64_t reg[2];
-
- const void *kwvpd;
- unsigned int kwvpd_sz;
-
- prlog(PR_DEBUG, " GX#%d BUID_Ext = 0x%x\n",
- be32_to_cpu(hub->gx_index),
- be32_to_cpu(hub->buid_ext));
- prlog(PR_DEBUG, " GX BAR 0 = 0x%016"PRIx64"\n",
- be64_to_cpu(hub->gx_ctrl_bar0));
- prlog(PR_DEBUG, " GX BAR 1 = 0x%016"PRIx64"\n",
- be64_to_cpu(hub->gx_ctrl_bar1));
- prlog(PR_DEBUG, " GX BAR 2 = 0x%016"PRIx64"\n",
- be64_to_cpu(hub->gx_ctrl_bar2));
- prlog(PR_DEBUG, " GX BAR 3 = 0x%016"PRIx64"\n",
- be64_to_cpu(hub->gx_ctrl_bar3));
- prlog(PR_DEBUG, " GX BAR 4 = 0x%016"PRIx64"\n",
- be64_to_cpu(hub->gx_ctrl_bar4));
-
- /* We assume SBAR == GX0 + some hard coded offset */
- reg[0] = cleanup_addr(be64_to_cpu(hub->gx_ctrl_bar0) + P5IOC2_REGS_OFFSET);
- reg[1] = 0x2000000;
-
- hn = dt_new_addr(dt_root, "io-hub", reg[0]);
- if (!hn)
- return NULL;
-
- dt_add_property(hn, "reg", reg, sizeof(reg));
- dt_add_property_strings(hn, "compatible", "ibm,p5ioc2");
-
- kwvpd = HDIF_get_idata(sp_iohubs, CECHUB_ASCII_KEYWORD_VPD, &kwvpd_sz);
- if (kwvpd && kwvpd != sp_iohubs) {
- /*
- * XX We don't know how to properly find the LXRn
- * record so for now we'll just try LXR0 and if not
- * found, we try LXR1
- */
- if (!io_get_lx_info(kwvpd, kwvpd_sz, 0, hn))
- io_get_lx_info(kwvpd, kwvpd_sz, 1, hn);
- } else
- prlog(PR_DEBUG, "CEC: P5IOC2 Keywords not found.\n");
-
- /* Get slots base loc code */
- io_get_loc_code(sp_iohubs, hn, "ibm,io-base-loc-code");
-
- return hn;
-}
-
static struct dt_node *io_add_p7ioc(const struct cechub_io_hub *hub,
const void *sp_iohubs)
{