Home
last modified time | relevance | path

Searched refs:strap2 (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/arch/arm/mach-aspeed/ast2500/
H A Dscu_info.c75 u32 strap2 = readl(ASPEED_HW_STRAP2); in aspeed_get_mac_phy_interface() local
94 if(strap2 & BIT(0)) { in aspeed_get_mac_phy_interface()
101 if(strap2 & BIT(1)) { in aspeed_get_mac_phy_interface()
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/
H A Dscu_info.c55 u32 strap2 = readl(ASPEED_HW_STRAP2); in aspeed_get_mac_phy_interface() local
74 if(strap2 & BIT(0)) { in aspeed_get_mac_phy_interface()
81 if(strap2 & BIT(1)) { in aspeed_get_mac_phy_interface()
/openbmc/u-boot/cmd/aspeed/nettest/
H A Dmactest.c703 hw_strap2_t strap2; in setup_running() local
707 strap2.w = 0; in setup_running()
709 strap2.b.mac3_interface = 1; in setup_running()
711 strap2.b.mac4_interface = 1; in setup_running()
713 SCU_WR(strap2.w, 0x514); in setup_running()
714 while (SCU_RD(0x510) & strap2.w); in setup_running()
903 hw_strap2_t strap2; in setup_interface() local
906 strap2.w = SCU_RD(0x510); in setup_interface()
910 p_eng->env.is_1g_valid[2] = strap2.b.mac3_interface; in setup_interface()
911 p_eng->env.is_1g_valid[3] = strap2.b.mac4_interface; in setup_interface()