Searched refs:efuse_buf (Results 1 – 6 of 6) sorted by relevance
31 unsigned char *efuse_buf, buf[16]; in rockchip_cpuinfo_probe() local37 efuse_buf = nvmem_cell_read(cell, &len); in rockchip_cpuinfo_probe()39 if (IS_ERR(efuse_buf)) in rockchip_cpuinfo_probe()40 return PTR_ERR(efuse_buf); in rockchip_cpuinfo_probe()43 rockchip_set_cpu((efuse_buf[0] << 8 | efuse_buf[1])); in rockchip_cpuinfo_probe()44 kfree(efuse_buf); in rockchip_cpuinfo_probe()49 efuse_buf = nvmem_cell_read(cell, &len); in rockchip_cpuinfo_probe()51 if (IS_ERR(efuse_buf)) in rockchip_cpuinfo_probe()52 return PTR_ERR(efuse_buf); in rockchip_cpuinfo_probe()54 if ((len == 1) && (efuse_buf[0] > rockchip_get_cpu_version())) in rockchip_cpuinfo_probe()[all …]
88 unsigned char *efuse_buf; in rk630_phy_t22_get_tx_level_from_efuse() local97 efuse_buf = nvmem_cell_read(cell, &len); in rk630_phy_t22_get_tx_level_from_efuse()99 if (!IS_ERR(efuse_buf)) { in rk630_phy_t22_get_tx_level_from_efuse()100 if (len == 2 && efuse_buf[0] > 0 && efuse_buf[1] > 0) { in rk630_phy_t22_get_tx_level_from_efuse()101 tx_level_100M = efuse_buf[1]; in rk630_phy_t22_get_tx_level_from_efuse()102 tx_level_10M = efuse_buf[0]; in rk630_phy_t22_get_tx_level_from_efuse()104 kfree(efuse_buf); in rk630_phy_t22_get_tx_level_from_efuse()
525 unsigned char *efuse_buf; in tve_read_otp_by_name() local531 efuse_buf = nvmem_cell_read(cell, &len); in tve_read_otp_by_name()533 if (!IS_ERR(efuse_buf)) { in tve_read_otp_by_name()534 *val = efuse_buf[0]; in tve_read_otp_by_name()535 kfree(efuse_buf); in tve_read_otp_by_name()638 unsigned char *efuse_buf; in tve_parse_dt_legacy() local689 efuse_buf = nvmem_cell_read(cell, &len); in tve_parse_dt_legacy()691 if (IS_ERR(efuse_buf)) in tve_parse_dt_legacy()692 return PTR_ERR(efuse_buf); in tve_parse_dt_legacy()694 getdac = efuse_buf[0]; in tve_parse_dt_legacy()[all …]
971 unsigned char *efuse_buf; in inno_hdmi_phy_rk3328_init() local998 efuse_buf = nvmem_cell_read(cell, &len); in inno_hdmi_phy_rk3328_init()1001 if (IS_ERR(efuse_buf)) in inno_hdmi_phy_rk3328_init()1004 inno->chip_version = efuse_buf[0] + 1; in inno_hdmi_phy_rk3328_init()1005 kfree(efuse_buf); in inno_hdmi_phy_rk3328_init()
802 unsigned char *efuse_buf; in inno_hdmi_phy_rk3228_init() local835 efuse_buf = nvmem_cell_read(cell, &len); in inno_hdmi_phy_rk3228_init()838 inno->efuse_flag = efuse_buf[0] ? true : false; in inno_hdmi_phy_rk3228_init()839 kfree(efuse_buf); in inno_hdmi_phy_rk3228_init()
2522 unsigned char *efuse_buf; in rk_gmac_setup() local2552 efuse_buf = nvmem_cell_read(cell, &len); in rk_gmac_setup()2554 if (!IS_ERR(efuse_buf)) { in rk_gmac_setup()2556 bsp_priv->otp_data = efuse_buf[0]; in rk_gmac_setup()2557 kfree(efuse_buf); in rk_gmac_setup()