/linux/drivers/nvmem/ |
H A D | rockchip-efuse.c | 3 * Rockchip eFuse Driver 58 struct rockchip_efuse_chip *efuse = context; in rockchip_rk3288_efuse_read() local 62 ret = clk_prepare_enable(efuse->clk); in rockchip_rk3288_efuse_read() 64 dev_err(efuse->dev, "failed to prepare/enable efuse clk\n"); in rockchip_rk3288_efuse_read() 68 writel(RK3288_LOAD | RK3288_PGENB, efuse->base + REG_EFUSE_CTRL); in rockchip_rk3288_efuse_read() 71 writel(readl(efuse->base + REG_EFUSE_CTRL) & in rockchip_rk3288_efuse_read() 73 efuse->base + REG_EFUSE_CTRL); in rockchip_rk3288_efuse_read() 74 writel(readl(efuse->base + REG_EFUSE_CTRL) | in rockchip_rk3288_efuse_read() 76 efuse->base + REG_EFUSE_CTRL); in rockchip_rk3288_efuse_read() 78 writel(readl(efuse->base + REG_EFUSE_CTRL) | in rockchip_rk3288_efuse_read() [all …]
|
H A D | jz4780-efuse.c | 3 * JZ4780 EFUSE Memory Support driver 10 * Currently supports JZ4780 efuse which has 8K programmable bit. 11 * Efuse is separated into seven segments as below: 72 struct jz4780_efuse *efuse = context; in jz4780_efuse_read() local 87 regmap_update_bits(efuse->map, JZ_EFUCTRL, in jz4780_efuse_read() 94 ret = regmap_read_poll_timeout(efuse->map, JZ_EFUSTATE, in jz4780_efuse_read() 99 dev_err(efuse->dev, "Time out while reading efuse data"); in jz4780_efuse_read() 103 ret = regmap_bulk_read(efuse->map, JZ_EFUDATA(0), in jz4780_efuse_read() 119 .name = "jz4780-efuse", 142 struct jz4780_efuse *efuse; in jz4780_efuse_probe() local [all …]
|
H A D | zynqmp_nvmem.c | 32 * efuse access type 44 * @flag: 0 - represents efuse read and 1- represents efuse write 49 * read/write efuse memory. 64 struct xilinx_efuse *efuse; in zynqmp_efuse_access() local 98 efuse = dma_alloc_coherent(dev, sizeof(struct xilinx_efuse), in zynqmp_efuse_access() 100 if (!efuse) in zynqmp_efuse_access() 112 efuse->flag = EFUSE_WRITE; in zynqmp_efuse_access() 114 efuse->flag = EFUSE_READ; in zynqmp_efuse_access() 117 efuse->src = dma_buf; in zynqmp_efuse_access() 118 efuse->size = words; in zynqmp_efuse_access() [all …]
|
H A D | mtk-efuse.c | 113 { .compatible = "mediatek,mt8173-efuse", .data = &mtk_efuse_pdata }, 114 { .compatible = "mediatek,mt8186-efuse", .data = &mtk_mt8186_efuse_pdata }, 115 { .compatible = "mediatek,efuse", .data = &mtk_efuse_pdata }, 132 .name = "mediatek,efuse", 143 pr_err("Failed to register efuse driver\n"); in mtk_efuse_init() 159 MODULE_DESCRIPTION("Mediatek EFUSE driver");
|
/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | mediatek,efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# 7 title: MediaTek efuse 10 MediaTek's efuse is used for storing calibration data, it can be accessed 23 pattern: "^efuse@[0-9a-f]+$" 29 - mediatek,mt7622-efuse 30 - mediatek,mt7623-efuse 31 - mediatek,mt7981-efuse 32 - mediatek,mt7986-efuse 33 - mediatek,mt7988-efuse 34 - mediatek,mt8173-efuse [all …]
|
H A D | rockchip-efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml# 7 title: Rockchip eFuse 19 - rockchip,rk3066a-efuse 20 - rockchip,rk3188-efuse 21 - rockchip,rk3228-efuse 22 - rockchip,rk3288-efuse 23 - rockchip,rk3328-efuse 24 - rockchip,rk3368-efuse 25 - rockchip,rk3399-efuse 28 - rockchip,rockchip-efuse [all …]
|
H A D | amlogic,meson6-efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/amlogic,meson6-efuse.yaml# 7 title: Amlogic Meson6 eFuse 20 - amlogic,meson6-efuse 21 - amlogic,meson8-efuse 22 - amlogic,meson8b-efuse 43 efuse: efuse@0 { 44 compatible = "amlogic,meson6-efuse";
|
H A D | amlogic,meson-gxbb-efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/amlogic,meson-gxbb-efuse.yaml# 7 title: Amlogic Meson GX eFuse 19 - const: amlogic,meson-gxbb-efuse 21 - const: amlogic,meson-gx-efuse 22 - const: amlogic,meson-gxbb-efuse 43 efuse: efuse { 44 compatible = "amlogic,meson-gxbb-efuse";
|
H A D | ingenic,jz4780-efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/ingenic,jz4780-efuse.yaml# 7 title: Ingenic JZ EFUSE driver 18 - ingenic,jz4780-efuse 24 # Handle for the ahb for the efuse. 38 efuse@134100d0 { 39 compatible = "ingenic,jz4780-efuse";
|
H A D | socionext,uniphier-efuse.yaml | 4 $id: http://devicetree.org/schemas/nvmem/socionext,uniphier-efuse.yaml# 7 title: Socionext UniPhier eFuse 19 const: socionext,uniphier-efuse 32 efuse@100 { 33 compatible = "socionext,uniphier-efuse"; 37 efuse@200 { 38 compatible = "socionext,uniphier-efuse";
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | ti-abb-regulator.txt | 35 efuse: (see Optional properties) 36 RBB enable efuse Mask: (See Optional properties) 37 FBB enable efuse Mask: (See Optional properties) 38 Vset value efuse Mask: (See Optional properties) 47 - "efuse-address" - Contains efuse base address used to pick up ABB info. 49 "efuse-address" is required for this. 55 efuse: Mandatory if 'efuse-address' register is defined. Provides offset 56 from efuse-address to pick up ABB characteristics. Set to 0 if 57 'efuse-address' is not defined. 58 RBB enable efuse Mask: Optional if 'efuse-address' register is defined. [all …]
|
/linux/Documentation/devicetree/bindings/fuse/ |
H A D | nvidia,tegra20-fuse.yaml | 17 - nvidia,tegra20-efuse 18 - nvidia,tegra30-efuse 19 - nvidia,tegra114-efuse 20 - nvidia,tegra124-efuse 21 - nvidia,tegra210-efuse 22 - nvidia,tegra186-efuse 23 - nvidia,tegra194-efuse 24 - nvidia,tegra234-efuse 27 - const: nvidia,tegra132-efuse 28 - const: nvidia,tegra124-efuse [all …]
|
/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-pcie.c | 36 * struct mtk_pcie_lane_efuse - eFuse data for each lane 40 * @lane_efuse_supported: software eFuse data is supported for this lane 52 * @sw_efuse_supported: support software to load eFuse data 65 * @sw_efuse_en: software eFuse enable status 67 * @efuse: pointer to eFuse data for each lane 77 struct mtk_pcie_lane_efuse *efuse; member 83 struct mtk_pcie_lane_efuse *data = &pcie_phy->efuse[lane]; in mtk_pcie_efuse_set_lane() 106 * Initialize the phy by setting the efuse data. 136 struct mtk_pcie_lane_efuse *efuse = &pcie_phy->efuse[lane]; in mtk_pcie_efuse_read_for_lane() local 142 ret = nvmem_cell_read_variable_le_u32(dev, efuse_id, &efuse->tx_pmos); in mtk_pcie_efuse_read_for_lane() [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | efuse.c | 8 #include "efuse.h" 31 /* efuse header format 43 u32 physical_size = rtwdev->efuse.physical_size; in rtw_dump_logical_efuse_map() 44 u32 protect_size = rtwdev->efuse.protect_size; in rtw_dump_logical_efuse_map() 45 u32 logical_size = rtwdev->efuse.logical_size; in rtw_dump_logical_efuse_map() 90 u32 size = rtwdev->efuse.physical_size; in rtw_dump_physical_efuse_map() 149 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_parse_efuse_map() local 150 u32 phy_size = efuse->physical_size; in rtw_parse_efuse_map() 151 u32 log_size = efuse->logical_size; in rtw_parse_efuse_map() 165 rtw_err(rtwdev, "failed to dump efuse physical map\n"); in rtw_parse_efuse_map() [all …]
|
H A D | main.c | 16 #include "efuse.h" 1001 WARN(1, "invalid hw configuration from efuse\n"); in rtw_hw_config_rf_ant_num() 1215 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_update_sta_info() local 1245 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info() 1424 wifi_only = !rtwdev->efuse.btcoex; in rtw_power_on() 1567 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_ht_cap() local 1580 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap() 1587 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap() 1603 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_vht_cap() local 1607 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap() [all …]
|
H A D | coex.c | 117 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_freerun_check() local 124 if (efuse->share_ant || ant_distance <= 5 || !coex_stat->wl_gl_busy) in rtw_coex_freerun_check() 827 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_update_wl_ch_info() local 841 (efuse->share_ant && center_chan <= 14 && in rtw_coex_update_wl_ch_info() 1008 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_btc_wltoggle_table_a() local 1016 if (efuse->share_ant) { in rtw_btc_wltoggle_table_a() 1094 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_table() local 1101 if (efuse->share_ant) { in rtw_coex_table() 1223 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_tdma() local 1259 if (efuse->share_ant) { in rtw_coex_tdma() [all …]
|
H A D | rtw8822b.c | 23 static void rtw8822be_efuse_parsing(struct rtw_efuse *efuse, in rtw8822be_efuse_parsing() argument 26 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8822be_efuse_parsing() 29 static void rtw8822bu_efuse_parsing(struct rtw_efuse *efuse, in rtw8822bu_efuse_parsing() argument 32 ether_addr_copy(efuse->addr, map->u.mac_addr); in rtw8822bu_efuse_parsing() 35 static void rtw8822bs_efuse_parsing(struct rtw_efuse *efuse, in rtw8822bs_efuse_parsing() argument 38 ether_addr_copy(efuse->addr, map->s.mac_addr); in rtw8822bs_efuse_parsing() 43 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_read_efuse() local 49 efuse->usb_mode_switch = u8_get_bits(map->usb_mode, BIT(7)); in rtw8822b_read_efuse() 50 efuse->rfe_option = map->rfe_option; in rtw8822b_read_efuse() 51 efuse->rf_board_option = map->rf_board_option; in rtw8822b_read_efuse() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | eeprom.c | 67 mt7603_has_cal_free_data(struct mt7603_dev *dev, u8 *efuse) in mt7603_has_cal_free_data() argument 69 if (!efuse[MT_EE_TEMP_SENSOR_CAL]) in mt7603_has_cal_free_data() 72 if (get_unaligned_le16(efuse + MT_EE_TX_POWER_0_START_2G) == 0) in mt7603_has_cal_free_data() 75 if (get_unaligned_le16(efuse + MT_EE_TX_POWER_1_START_2G) == 0) in mt7603_has_cal_free_data() 78 if (!efuse[MT_EE_CP_FT_VERSION]) in mt7603_has_cal_free_data() 81 if (!efuse[MT_EE_XTAL_FREQ_OFFSET]) in mt7603_has_cal_free_data() 84 if (!efuse[MT_EE_XTAL_WF_RFCAL]) in mt7603_has_cal_free_data() 91 mt7603_apply_cal_free_data(struct mt7603_dev *dev, u8 *efuse) in mt7603_apply_cal_free_data() argument 112 if (!mt7603_has_cal_free_data(dev, efuse)) in mt7603_apply_cal_free_data() 121 eeprom[offset] = efuse[offset]; in mt7603_apply_cal_free_data()
|
/linux/Documentation/devicetree/bindings/opp/ |
H A D | ti,omap-opp-supply.yaml | 10 OMAP5, DRA7, and AM57 families of SoCs have Class 0 AVS eFuse 37 - description: OMAP5+ optimized voltages in efuse(Class 0) VDD along with 40 - description: OMAP5+ optimized voltages in efuse(class0) VDD but no VBB 52 ti,efuse-settings: 54 optimized efuse configuration. 63 - description: efuse offset where the optimized voltage is located 81 - ti,efuse-settings 95 ti,efuse-settings =
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | eeprom.c | 24 mt76x2_has_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) in mt76x2_has_cal_free_data() argument 26 u16 *efuse_w = (u16 *)efuse; in mt76x2_has_cal_free_data() 50 mt76x2_apply_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) in mt76x2_apply_cal_free_data() argument 94 if (!mt76x2_has_cal_free_data(dev, efuse)) in mt76x2_apply_cal_free_data() 100 eeprom[offset] = efuse[offset]; in mt76x2_apply_cal_free_data() 103 if (!(efuse[MT_EE_TX_POWER_0_START_5G] | in mt76x2_apply_cal_free_data() 104 efuse[MT_EE_TX_POWER_0_START_5G + 1])) in mt76x2_apply_cal_free_data() 106 if (!(efuse[MT_EE_TX_POWER_1_START_5G] | in mt76x2_apply_cal_free_data() 107 efuse[MT_EE_TX_POWER_1_START_5G + 1])) in mt76x2_apply_cal_free_data() 110 val = get_unaligned_le16(efuse + MT_EE_BT_RCAL_RESULT); in mt76x2_apply_cal_free_data() [all …]
|
/linux/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | 8723a.c | 192 struct rtl8723au_efuse *efuse = &priv->efuse_wifi.efuse8723; in rtl8723au_parse_efuse() local 194 if (efuse->rtl_id != cpu_to_le16(0x8129)) in rtl8723au_parse_efuse() 197 ether_addr_copy(priv->mac_addr, efuse->mac_addr); in rtl8723au_parse_efuse() 200 efuse->cck_tx_power_index_A, in rtl8723au_parse_efuse() 201 sizeof(efuse->cck_tx_power_index_A)); in rtl8723au_parse_efuse() 203 efuse->cck_tx_power_index_B, in rtl8723au_parse_efuse() 204 sizeof(efuse->cck_tx_power_index_B)); in rtl8723au_parse_efuse() 207 efuse->ht40_1s_tx_power_index_A, in rtl8723au_parse_efuse() 208 sizeof(efuse->ht40_1s_tx_power_index_A)); in rtl8723au_parse_efuse() 210 efuse->ht40_1s_tx_power_index_B, in rtl8723au_parse_efuse() [all …]
|
H A D | 8192c.c | 416 struct rtl8192cu_efuse *efuse = &priv->efuse_wifi.efuse8192; in rtl8192cu_parse_efuse() local 418 if (efuse->rtl_id != cpu_to_le16(0x8129)) in rtl8192cu_parse_efuse() 421 ether_addr_copy(priv->mac_addr, efuse->mac_addr); in rtl8192cu_parse_efuse() 424 efuse->cck_tx_power_index_A, in rtl8192cu_parse_efuse() 425 sizeof(efuse->cck_tx_power_index_A)); in rtl8192cu_parse_efuse() 427 efuse->cck_tx_power_index_B, in rtl8192cu_parse_efuse() 428 sizeof(efuse->cck_tx_power_index_B)); in rtl8192cu_parse_efuse() 431 efuse->ht40_1s_tx_power_index_A, in rtl8192cu_parse_efuse() 432 sizeof(efuse->ht40_1s_tx_power_index_A)); in rtl8192cu_parse_efuse() 434 efuse->ht40_1s_tx_power_index_B, in rtl8192cu_parse_efuse() [all …]
|
/linux/drivers/opp/ |
H A D | ti-opp-supply.c | 28 * @optimized_uv: Optimized voltage from efuse 56 * @efuse_voltage_mask: mask required for efuse register representing voltage 57 * @efuse_voltage_uv: Are the efuse entries in micro-volts? if not, assume 73 * Picks up efuse based optimized voltages for VDD unique per device and 90 /* pick up Efuse based voltages */ in _store_optimized_voltages() 100 dev_err(dev, "Unable to map Efuse registers\n"); in _store_optimized_voltages() 105 /* Fetch efuse-settings. */ in _store_optimized_voltages() 106 prop = of_find_property(dev->of_node, "ti,efuse-settings", NULL); in _store_optimized_voltages() 108 dev_err(dev, "No 'ti,efuse-settings' property found\n"); in _store_optimized_voltages() 117 dev_err(dev, "Invalid 'ti,efuse-settings'\n"); in _store_optimized_voltages() [all …]
|
/linux/Documentation/devicetree/bindings/edac/ |
H A D | apm-xgene-edac.txt | 18 - regmap-efuse : Regmap of the PMD efuse resource. 66 efuse: efuse@1054a000 { 67 compatible = "apm,xgene-efuse", "syscon"; 84 regmap-efuse = <&efuse>;
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | sprd,sc2731.yaml | 68 "^efuse@[0-9a-f]+$": 74 - sprd,sc2720-efuse 75 - sprd,sc2721-efuse 76 - sprd,sc2723-efuse 77 - sprd,sc2730-efuse 78 - sprd,sc2731-efuse 180 efuse@380 { 181 compatible = "sprd,sc2731-efuse";
|