Home
last modified time | relevance | path

Searched refs:mac_lo (Results 1 – 14 of 14) sorted by relevance

/u-boot/board/grinn/chiliboard/
A Dboard.c111 uint32_t mac_hi, mac_lo; in board_late_init() local
114 mac_lo = readl(&cdev->macid0l); in board_late_init()
120 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
121 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
130 mac_lo = readl(&cdev->macid1l); in board_late_init()
136 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
137 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
/u-boot/board/compulab/cm_t335/
A Dcm_t335.c91 uint32_t mac_hi, mac_lo; in get_efuse_mac_addr() local
94 mac_lo = readl(&cdev->macid0l); in get_efuse_mac_addr()
100 enetaddr[4] = mac_lo & 0xFF; in get_efuse_mac_addr()
101 enetaddr[5] = (mac_lo & 0xFF00) >> 8; in get_efuse_mac_addr()
/u-boot/board/ti/ti816x/
A Devm.c40 uint32_t mac_hi, mac_lo; in board_eth_init() local
46 mac_lo = readl(&cdev->macid0l); in board_eth_init()
52 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
53 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
/u-boot/board/tcl/sl50/
A Dboard.c314 uint32_t mac_hi, mac_lo; in board_eth_init() local
317 mac_lo = readl(&cdev->macid0l); in board_eth_init()
323 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
324 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
337 mac_lo = readl(&cdev->macid1l); in board_eth_init()
343 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
344 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
/u-boot/board/isee/igep003x/
A Dboard.c269 uint32_t mac_hi, mac_lo; in board_eth_init() local
273 mac_lo = readl(&cdev->macid0l); in board_eth_init()
279 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
280 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
/u-boot/board/vscom/baltos/
A Dboard.c433 uint32_t mac_hi, mac_lo; in board_eth_init() local
443 mac_lo = readl(&cdev->macid1l); in board_eth_init()
449 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
450 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
/u-boot/drivers/net/
A Daltera_tse.c459 u32 mac_lo, mac_hi; in altera_tse_write_hwaddr() local
461 mac_lo = (hwaddr[3] << 24) | (hwaddr[2] << 16) | in altera_tse_write_hwaddr()
464 debug("Set MAC address to 0x%04x%08x\n", mac_hi, mac_lo); in altera_tse_write_hwaddr()
466 writel(mac_lo, &mac_dev->mac_addr_0); in altera_tse_write_hwaddr()
468 writel(mac_lo, &mac_dev->supp_mac_addr_0_0); in altera_tse_write_hwaddr()
470 writel(mac_lo, &mac_dev->supp_mac_addr_1_0); in altera_tse_write_hwaddr()
472 writel(mac_lo, &mac_dev->supp_mac_addr_2_0); in altera_tse_write_hwaddr()
474 writel(mac_lo, &mac_dev->supp_mac_addr_3_0); in altera_tse_write_hwaddr()
/u-boot/board/siemens/common/
A Dfactoryset.c330 uint32_t mac_hi, mac_lo; in get_mac_from_efuse() local
332 mac_lo = readl(&cdev->macid0l); in get_mac_from_efuse()
339 mac[4] = mac_lo & 0xFF; in get_mac_from_efuse()
340 mac[5] = (mac_lo & 0xFF00) >> 8; in get_mac_from_efuse()
/u-boot/drivers/net/ti/
A Dam65-cpsw-nuss.c146 #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) macro
153 writel(mac_lo(addr), in am65_cpsw_set_sl_mac()
518 u32 mac_hi, mac_lo; in am65_cpsw_read_rom_hwaddr() local
523 mac_lo = readl(common->mac_efuse); in am65_cpsw_read_rom_hwaddr()
527 pdata->enetaddr[2] = (mac_lo >> 24) & 0xff; in am65_cpsw_read_rom_hwaddr()
528 pdata->enetaddr[3] = (mac_lo >> 16) & 0xff; in am65_cpsw_read_rom_hwaddr()
529 pdata->enetaddr[4] = (mac_lo >> 8) & 0xff; in am65_cpsw_read_rom_hwaddr()
530 pdata->enetaddr[5] = mac_lo & 0xff; in am65_cpsw_read_rom_hwaddr()
A Ddavinci_emac.c117 unsigned long mac_lo; in davinci_emac_write_hwaddr() local
129 mac_lo = (pdata->enetaddr[5] << 8) | in davinci_emac_write_hwaddr()
134 writel(mac_lo | EMAC_MAC_ADDR_IS_VALID | EMAC_MAC_ADDR_MATCH, in davinci_emac_write_hwaddr()
137 writel(mac_lo, &adap_emac->MACADDRLO); in davinci_emac_write_hwaddr()
145 writel(mac_lo, &adap_emac->MACSRCADDRLO); in davinci_emac_write_hwaddr()
A Dkeystone_net.c60 #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) macro
528 writel(mac_lo(pdata->enetaddr), in ks2_eth_write_hwaddr()
A Dcpsw.c453 #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) macro
462 writel(mac_lo(pdata->enetaddr), &slave->regs->sa_lo); in cpsw_set_slave_mac()
465 __raw_writel(mac_lo(priv->dev->enetaddr), &slave->regs->sa_lo); in cpsw_set_slave_mac()
/u-boot/board/ti/am335x/
A Dboard.c804 uint32_t mac_hi, mac_lo; in board_late_init() local
841 mac_lo = readl(&cdev->macid0l); in board_late_init()
847 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
848 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
857 mac_lo = readl(&cdev->macid1l); in board_late_init()
863 mac_addr[4] = mac_lo & 0xFF; in board_late_init()
864 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init()
/u-boot/board/ti/am57xx/
A Dboard.c1036 uint32_t mac_hi, mac_lo; in board_eth_init() local
1044 mac_lo = readl((*ctrl)->control_core_mac_id_0_lo); in board_eth_init()
1049 mac_addr[3] = (mac_lo & 0xFF0000) >> 16; in board_eth_init()
1050 mac_addr[4] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
1051 mac_addr[5] = mac_lo & 0xFF; in board_eth_init()
1060 mac_lo = readl((*ctrl)->control_core_mac_id_1_lo); in board_eth_init()
1065 mac_addr[3] = (mac_lo & 0xFF0000) >> 16; in board_eth_init()
1066 mac_addr[4] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
1067 mac_addr[5] = mac_lo & 0xFF; in board_eth_init()

Completed in 20 milliseconds