net: sun8i-emac: Remove the SoC variant ID
Now that all differences in functionality are covered by individual flags, remove the enumeration of SoC variants. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
parent
3cfb1e6914
commit
93f93fe4cd
1 changed files with 0 additions and 14 deletions
|
@ -127,16 +127,7 @@
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
enum emac_variant_id {
|
|
||||||
A83T_EMAC = 1,
|
|
||||||
H3_EMAC,
|
|
||||||
A64_EMAC,
|
|
||||||
R40_GMAC,
|
|
||||||
H6_EMAC,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct emac_variant {
|
struct emac_variant {
|
||||||
enum emac_variant_id variant;
|
|
||||||
uint syscon_offset;
|
uint syscon_offset;
|
||||||
bool soc_has_internal_phy;
|
bool soc_has_internal_phy;
|
||||||
bool support_rmii;
|
bool support_rmii;
|
||||||
|
@ -895,30 +886,25 @@ static int sun8i_emac_eth_of_to_plat(struct udevice *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct emac_variant emac_variant_a83t = {
|
static const struct emac_variant emac_variant_a83t = {
|
||||||
.variant = A83T_EMAC,
|
|
||||||
.syscon_offset = 0x30,
|
.syscon_offset = 0x30,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct emac_variant emac_variant_h3 = {
|
static const struct emac_variant emac_variant_h3 = {
|
||||||
.variant = H3_EMAC,
|
|
||||||
.syscon_offset = 0x30,
|
.syscon_offset = 0x30,
|
||||||
.soc_has_internal_phy = true,
|
.soc_has_internal_phy = true,
|
||||||
.support_rmii = true,
|
.support_rmii = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct emac_variant emac_variant_r40 = {
|
static const struct emac_variant emac_variant_r40 = {
|
||||||
.variant = R40_GMAC,
|
|
||||||
.syscon_offset = 0x164,
|
.syscon_offset = 0x164,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct emac_variant emac_variant_a64 = {
|
static const struct emac_variant emac_variant_a64 = {
|
||||||
.variant = A64_EMAC,
|
|
||||||
.syscon_offset = 0x30,
|
.syscon_offset = 0x30,
|
||||||
.support_rmii = true,
|
.support_rmii = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct emac_variant emac_variant_h6 = {
|
static const struct emac_variant emac_variant_h6 = {
|
||||||
.variant = H6_EMAC,
|
|
||||||
.syscon_offset = 0x30,
|
.syscon_offset = 0x30,
|
||||||
.support_rmii = true,
|
.support_rmii = true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue