Lines Matching +full:cpsw +full:- +full:switch
6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
8 * SPDX-License-Identifier: GPL-2.0+
34 #include <cpsw.h>
45 /* GPIO that controls power to DDR on EVM-SK */
246 /* break into full u-boot on 'c' */ in spl_start_uboot()
301 switch (freq) { in get_dpll_mpu_params()
347 switch (freq) { in scale_vcores_bone()
420 * 1.10V. For MPU voltage we need to switch based on in scale_vcores_generic()
430 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic()
619 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
636 * Both ports can be set as RMII-CPSW or MII-PRU-ETH using in board_init()
640 * after bootstrap (power-up/reset), we need to sample in board_init()
658 printf("ETH0, CPSW\n"); in board_init()
669 printf("ETH1, CPSW\n"); in board_init()
739 mac_lo = readl(&cdev->macid0l); in board_late_init()
740 mac_hi = readl(&cdev->macid0h); in board_late_init()
749 printf("<ethaddr> not set. Validating first E-fuse MAC\n"); in board_late_init()
755 mac_lo = readl(&cdev->macid1l); in board_late_init()
756 mac_hi = readl(&cdev->macid1h); in board_late_init()
830 * - SPL with either CPSW or USB ethernet support
831 * - Full U-Boot, with either CPSW or USB ethernet
833 * when we build an SPL that has neither option but full U-Boot will.
845 * both CPSW and USB ethernet will never be active at the same time in board_eth_init()
847 mac_lo = readl(&cdev->macid0l); in board_eth_init()
848 mac_hi = readl(&cdev->macid0h); in board_eth_init()
864 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
868 writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); in board_eth_init()
874 writel((RGMII_MODE_ENABLE | RGMII_INT_DELAY), &cdev->miisel); in board_eth_init()
881 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
888 * CPSW RGMII Internal Delay Mode is not supported in all PVT in board_eth_init()
891 * device in U-Boot, we only do this for the first instance. in board_eth_init()
928 if (board_is_gp_evm() && !strcmp(name, "am335x-evm")) in board_fit_config_name_match()
930 else if (board_is_bone() && !strcmp(name, "am335x-bone")) in board_fit_config_name_match()
932 else if (board_is_bone_lt() && !strcmp(name, "am335x-boneblack")) in board_fit_config_name_match()
934 else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk")) in board_fit_config_name_match()
936 else if (board_is_bbg1() && !strcmp(name, "am335x-bonegreen")) in board_fit_config_name_match()
938 else if (board_is_icev2() && !strcmp(name, "am335x-icev2")) in board_fit_config_name_match()
941 return -1; in board_fit_config_name_match()