Lines Matching +full:eth +full:- +full:mac

1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright 2001 - 2006 Tensilica Inc.
25 #include <linux/clk-provider.h>
95 clk = clk_register_fixed_rate(NULL, np->name, NULL, 0, freq); in xtfpga_clk_setup()
107 CLK_OF_DECLARE(xtfpga_clk, "cdns,xtfpga-clock", xtfpga_clk_setup);
116 macaddr = of_get_property(node, "local-mac-address", &prop_len); in update_local_mac()
124 newmac->value = newmac + 1; in update_local_mac()
125 newmac->length = MAC_LEN; in update_local_mac()
126 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
127 if (newmac->name == NULL) { in update_local_mac()
132 memcpy(newmac->value, macaddr, MAC_LEN); in update_local_mac()
133 ((u8*)newmac->value)[5] = (*(u32*)DIP_SWITCHES_VADDR) & 0x3f; in update_local_mac()
139 struct device_node *eth = NULL; in machine_setup() local
141 if ((eth = of_find_compatible_node(eth, NULL, "opencores,ethoc"))) in machine_setup()
142 update_local_mac(eth); in machine_setup()
143 of_node_put(eth); in machine_setup()
158 /*----------------------------------------------------------------------------
159 * Ethernet -- OpenCores Ethernet MAC (ethoc driver)
165 .end = OETH_REGS_PADDR + OETH_REGS_SIZE - 1,
170 .end = OETH_SRAMBUFF_PADDR + OETH_SRAMBUFF_SIZE - 1,
182 * The MAC address for these boards is 00:50:c2:13:6f:xx.
187 .phy_id = -1,
193 .id = -1,
201 /*----------------------------------------------------------------------------
202 * USB Host/Device -- Cypress CY7C67300
208 .end = C67X00_PADDR + C67X00_SIZE - 1,
225 .id = -1,
233 /*----------------------------------------------------------------------------
276 /* Ethernet MAC address. */ in xtavnet_init()
288 /* ETHOC driver is a bit quiet; at least display Ethernet MAC, so user in xtavnet_init()
291 pr_info("XTFPGA: Ethernet MAC %pM\n", ethoc_pdata.hwaddr); in xtavnet_init()