Lines Matching +full:ctrl +full:- +full:module
1 // SPDX-License-Identifier: GPL-2.0+
3 * Ethernet specific code for CompuLab CL-SOM-AM57x module
59 * cl_som_am57x_efuse_read_mac_addr() - read Ethernet port MAC address.
69 mac_lo = readl((*ctrl)->control_core_mac_id_1_lo); in cl_som_am57x_efuse_read_mac_addr()
70 mac_hi = readl((*ctrl)->control_core_mac_id_1_hi); in cl_som_am57x_efuse_read_mac_addr()
72 mac_lo = readl((*ctrl)->control_core_mac_id_0_lo); in cl_som_am57x_efuse_read_mac_addr()
73 mac_hi = readl((*ctrl)->control_core_mac_id_0_hi); in cl_som_am57x_efuse_read_mac_addr()
85 * cl_som_am57x_handle_mac_address() - set MAC address in the U-Boot
89 * @env_name: U-Boot environment name.
108 return -1; in cl_som_am57x_handle_mac_address()
112 printf("cl-som-am57x: Failed to set Eth port %d MAC address\n", in cl_som_am57x_handle_mac_address()
127 * cl_som_am57x_rgmii_clk_delay() - Set RGMII clock delay.
164 /* SB-SOM-AM57x primary Eth (P21) is routed to RGMII1 */ in board_eth_init()
169 return -1; in board_eth_init()
172 ctrl_val = readl((*ctrl)->control_core_control_io1) & (~0x33); in board_eth_init()
174 writel(ctrl_val, (*ctrl)->control_core_control_io1); in board_eth_init()