Skip to content

Commit

Permalink
p9dsu: add slot power limit.
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Yuan <jim.yuan@supermicro.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
jimsmc authored and stewartsmith committed Apr 24, 2018
1 parent 3837226 commit c31cb73
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions platforms/astbmc/p9dsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ static const struct slot_table_entry p9dsu1u_phb0_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot1",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -38,6 +39,7 @@ static const struct slot_table_entry p9dsu1u_phb0_1_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot2",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down Expand Up @@ -83,6 +85,7 @@ static const struct slot_table_entry p9dsu1u_phb8_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot1",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -92,6 +95,7 @@ static const struct slot_table_entry p9dsu1u_phb8_1_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO-R Slot",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -101,6 +105,7 @@ static const struct slot_table_entry p9dsu1u_phb8_2_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot3",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -110,6 +115,7 @@ static const struct slot_table_entry p9dsu1u_phb8_3_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot2",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down Expand Up @@ -174,6 +180,7 @@ static const struct slot_table_entry p9dsu2u_phb0_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot1",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -183,6 +190,7 @@ static const struct slot_table_entry p9dsu2u_phb0_1_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot2",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down Expand Up @@ -228,6 +236,7 @@ static const struct slot_table_entry p9dsu2u_phb8_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot1",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -237,6 +246,7 @@ static const struct slot_table_entry p9dsu2u_phb8_1_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO-R Slot",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -246,6 +256,7 @@ static const struct slot_table_entry p9dsu2u_phb8_2_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot3",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -255,6 +266,7 @@ static const struct slot_table_entry p9dsu2u_phb8_3_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot3",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -264,6 +276,7 @@ static const struct slot_table_entry p9dsu2u_phb8_4_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot2",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down Expand Up @@ -333,11 +346,13 @@ static const struct slot_table_entry p9dsu2uess_uio_plx_down[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0x1,0),
.name = "UIO Slot2",
.power_limit = 75,
},
{
.etype = st_builtin_dev,
.location = ST_LOC_DEVFN(0x8,0),
.name = "PLX switch",
.power_limit = 75,
},
{
.etype = st_builtin_dev,
Expand All @@ -353,6 +368,7 @@ static const struct slot_table_entry p9dsu2uess_uio_plx_up[] = {
.location = ST_LOC_DEVFN(0,0),
.children = p9dsu2uess_uio_plx_down,
.name = "PLX up",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -362,16 +378,19 @@ static const struct slot_table_entry p9dsu2uess_wio_plx_down[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0x1,0),
.name = "WIO Slot1",
.power_limit = 75,
},
{
.etype = st_builtin_dev,
.location = ST_LOC_DEVFN(0x8,0),
.name = "PLX switch",
.power_limit = 75,
},
{
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0x9,0),
.name = "WIO Slot2",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -382,6 +401,7 @@ static const struct slot_table_entry p9dsu2uess_wio_plx_up[] = {
.location = ST_LOC_DEVFN(0,0),
.children = p9dsu2uess_wio_plx_down,
.name = "PLX up",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -391,6 +411,7 @@ static const struct slot_table_entry p9dsu2uess_phb0_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot1",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -401,6 +422,7 @@ static const struct slot_table_entry p9dsu2uess_phb0_1_slot[] = {
.location = ST_LOC_DEVFN(0,0),
.children = p9dsu2uess_uio_plx_up,
.name = "PLX",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -410,6 +432,7 @@ static const struct slot_table_entry p9dsu2uess_phb0_2_slot[] = {
.etype = st_builtin_dev,
.location = ST_LOC_DEVFN(0,0),
.name = "UIO Slot3",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down Expand Up @@ -446,6 +469,7 @@ static const struct slot_table_entry p9dsu2uess_phb8_0_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot3",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -455,6 +479,7 @@ static const struct slot_table_entry p9dsu2uess_phb8_1_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO-R Slot",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -465,6 +490,7 @@ static const struct slot_table_entry p9dsu2uess_phb8_2_slot[] = {
.location = ST_LOC_DEVFN(0,0),
.children = p9dsu2uess_wio_plx_up,
.name = "PLX",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand All @@ -474,6 +500,7 @@ static const struct slot_table_entry p9dsu2uess_phb8_3_slot[] = {
.etype = st_pluggable_slot,
.location = ST_LOC_DEVFN(0,0),
.name = "WIO Slot4",
.power_limit = 75,
},
{ .etype = st_end },
};
Expand Down

0 comments on commit c31cb73

Please sign in to comment.