Lines Matching +full:opp +full:- +full:800 +full:m
6 * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
8 * SPDX-License-Identifier: GPL-2.0+
32 #include <dwc3-uboot.h>
33 #include <dwc3-omap-uboot.h>
34 #include <ti-usb-phy-uboot.h>
56 {125, 3, 2, -1, -1, -1, -1}, /* OPP 50 */
57 {-1, -1, -1, -1, -1, -1, -1}, /* OPP RESERVED */
58 {125, 3, 1, -1, -1, -1, -1}, /* OPP 100 */
59 {150, 3, 1, -1, -1, -1, -1}, /* OPP 120 */
60 {125, 2, 1, -1, -1, -1, -1}, /* OPP TB */
61 {625, 11, 1, -1, -1, -1, -1} /* OPP NT */
64 {300, 23, 1, -1, -1, -1, -1}, /* OPP 50 */
65 {-1, -1, -1, -1, -1, -1, -1}, /* OPP RESERVED */
66 {600, 23, 1, -1, -1, -1, -1}, /* OPP 100 */
67 {720, 23, 1, -1, -1, -1, -1}, /* OPP 120 */
68 {800, 23, 1, -1, -1, -1, -1}, /* OPP TB */
69 {1000, 23, 1, -1, -1, -1, -1} /* OPP NT */
72 {300, 24, 1, -1, -1, -1, -1}, /* OPP 50 */
73 {-1, -1, -1, -1, -1, -1, -1}, /* OPP RESERVED */
74 {600, 24, 1, -1, -1, -1, -1}, /* OPP 100 */
75 {720, 24, 1, -1, -1, -1, -1}, /* OPP 120 */
76 {800, 24, 1, -1, -1, -1, -1}, /* OPP TB */
77 {1000, 24, 1, -1, -1, -1, -1} /* OPP NT */
80 {300, 25, 1, -1, -1, -1, -1}, /* OPP 50 */
81 {-1, -1, -1, -1, -1, -1, -1}, /* OPP RESERVED */
82 {600, 25, 1, -1, -1, -1, -1}, /* OPP 100 */
83 {720, 25, 1, -1, -1, -1, -1}, /* OPP 120 */
84 {800, 25, 1, -1, -1, -1, -1}, /* OPP TB */
85 {1000, 25, 1, -1, -1, -1, -1} /* OPP NT */
90 {625, 11, -1, -1, 10, 8, 4}, /* 19.2 MHz */
91 {1000, 23, -1, -1, 10, 8, 4}, /* 24 MHz */
92 {1000, 24, -1, -1, 10, 8, 4}, /* 25 MHz */
93 {1000, 25, -1, -1, 10, 8, 4} /* 26 MHz */
97 {400, 7, 5, -1, -1, -1, -1}, /* 19.2 MHz */
98 {400, 9, 5, -1, -1, -1, -1}, /* 24 MHz */
99 {384, 9, 5, -1, -1, -1, -1}, /* 25 MHz */
100 {480, 12, 5, -1, -1, -1, -1} /* 26 MHz */
104 {665, 47, 1, -1, 4, -1, -1}, /*19.2*/
105 {133, 11, 1, -1, 4, -1, -1}, /* 24 MHz */
106 {266, 24, 1, -1, 4, -1, -1}, /* 25 MHz */
107 {133, 12, 1, -1, 4, -1, -1} /* 26 MHz */
111 50, 2, 1, -1, 2, -1, -1};
114 400, 23, 1, -1, 2, -1, -1
338 * Returns the index for safest OPP of the device to boot.
339 * max_off: Index of the MAX OPP in DEV ATTRIBUTE register.
340 * min_off: Index of the MIN OPP in DEV ATTRIBUTE register.
341 * This data is read from dev_attribute register which is e-fused.
342 * A'1' in bit indicates OPP disabled and not available, a '0' indicates
343 * OPP available. Lowest OPP starts with min_off. So returning the
349 int opp, offset, i; in get_opp_offset() local
352 opp = readl(&ctrl->dev_attr) & ~0xFFFFF000; in get_opp_offset()
354 for (i = max_off; i >= min_off; i--) { in get_opp_offset()
355 offset = opp & (1 << i); in get_opp_offset()
365 int opp = get_opp_offset(DEV_ATTR_MAX_OFFSET, DEV_ATTR_MIN_OFFSET); in get_dpll_mpu_params() local
368 return &dpll_mpu[ind][opp]; in get_dpll_mpu_params()
385 void scale_vcores_generic(u32 m) in scale_vcores_generic() argument
392 switch (m) { in scale_vcores_generic()
396 case 800: in scale_vcores_generic()
434 void scale_vcores_idk(u32 m) in scale_vcores_idk() argument
441 switch (m) { in scale_vcores_idk()
445 case 800: in scale_vcores_idk()
493 scale_vcores_idk(mpu_params->m); in scale_vcores()
495 scale_vcores_generic(mpu_params->m); in scale_vcores()
580 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
584 mreqprio_0 = readl(&cdev->mreqprio_0) & MREQPRIO_0_SAB_INIT1_MASK & in board_init()
587 mreqprio_1 = readl(&cdev->mreqprio_1) & MREQPRIO_1_DSS_MASK; in board_init()
589 modena_init0_bw_fractional = readl(&bwlimiter->modena_init0_bw_fractional) & in board_init()
592 modena_init0_bw_integer = readl(&bwlimiter->modena_init0_bw_integer) & in board_init()
595 modena_init0_watermark_0 = readl(&bwlimiter->modena_init0_watermark_0) & in board_init()
608 writel(mreqprio_0, &cdev->mreqprio_0); in board_init()
609 writel(mreqprio_1, &cdev->mreqprio_1); in board_init()
611 writel(modena_init0_bw_fractional, &bwlimiter->modena_init0_bw_fractional); in board_init()
612 writel(modena_init0_bw_integer, &bwlimiter->modena_init0_bw_integer); in board_init()
613 writel(modena_init0_watermark_0, &bwlimiter->modena_init0_watermark_0); in board_init()
785 mac_lo = readl(&cdev->macid0l); in board_eth_init()
786 mac_hi = readl(&cdev->macid0h); in board_eth_init()
795 puts("<ethaddr> not set. Validating first E-fuse MAC\n"); in board_eth_init()
800 mac_lo = readl(&cdev->macid1l); in board_eth_init()
801 mac_hi = readl(&cdev->macid1h); in board_eth_init()
815 writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); in board_eth_init()
819 writel(RGMII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
824 writel(RGMII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
828 writel(RGMII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
853 if (board_is_evm() && !strcmp(name, "am437x-gp-evm")) in board_fit_config_name_match()
855 else if (board_is_sk() && !strcmp(name, "am437x-sk-evm")) in board_fit_config_name_match()
857 else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm")) in board_fit_config_name_match()
859 else if (board_is_idk() && !strcmp(name, "am437x-idk-evm")) in board_fit_config_name_match()
862 return -1; in board_fit_config_name_match()