Home
last modified time | relevance | path

Searched refs:efuse (Results 1 – 25 of 219) sorted by relevance

123456789

/linux-6.1.9/drivers/nvmem/
Dsprd-efuse.c83 static int sprd_efuse_lock(struct sprd_efuse *efuse) in sprd_efuse_lock() argument
87 mutex_lock(&efuse->mutex); in sprd_efuse_lock()
89 ret = hwspin_lock_timeout_raw(efuse->hwlock, in sprd_efuse_lock()
92 dev_err(efuse->dev, "timeout get the hwspinlock\n"); in sprd_efuse_lock()
93 mutex_unlock(&efuse->mutex); in sprd_efuse_lock()
100 static void sprd_efuse_unlock(struct sprd_efuse *efuse) in sprd_efuse_unlock() argument
102 hwspin_unlock_raw(efuse->hwlock); in sprd_efuse_unlock()
103 mutex_unlock(&efuse->mutex); in sprd_efuse_unlock()
106 static void sprd_efuse_set_prog_power(struct sprd_efuse *efuse, bool en) in sprd_efuse_set_prog_power() argument
108 u32 val = readl(efuse->base + SPRD_EFUSE_PW_SWT); in sprd_efuse_set_prog_power()
[all …]
Dmeson-mx-efuse.c51 static void meson_mx_efuse_mask_bits(struct meson_mx_efuse *efuse, u32 reg, in meson_mx_efuse_mask_bits() argument
56 data = readl(efuse->base + reg); in meson_mx_efuse_mask_bits()
60 writel(data, efuse->base + reg); in meson_mx_efuse_mask_bits()
63 static int meson_mx_efuse_hw_enable(struct meson_mx_efuse *efuse) in meson_mx_efuse_hw_enable() argument
67 err = clk_prepare_enable(efuse->core_clk); in meson_mx_efuse_hw_enable()
72 meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, in meson_mx_efuse_hw_enable()
75 meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL4, in meson_mx_efuse_hw_enable()
81 static void meson_mx_efuse_hw_disable(struct meson_mx_efuse *efuse) in meson_mx_efuse_hw_disable() argument
83 meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, in meson_mx_efuse_hw_disable()
87 clk_disable_unprepare(efuse->core_clk); in meson_mx_efuse_hw_disable()
[all …]
Dsc27xx-efuse.c84 static int sc27xx_efuse_lock(struct sc27xx_efuse *efuse) in sc27xx_efuse_lock() argument
88 mutex_lock(&efuse->mutex); in sc27xx_efuse_lock()
90 ret = hwspin_lock_timeout_raw(efuse->hwlock, in sc27xx_efuse_lock()
93 dev_err(efuse->dev, "timeout to get the hwspinlock\n"); in sc27xx_efuse_lock()
94 mutex_unlock(&efuse->mutex); in sc27xx_efuse_lock()
101 static void sc27xx_efuse_unlock(struct sc27xx_efuse *efuse) in sc27xx_efuse_unlock() argument
103 hwspin_unlock_raw(efuse->hwlock); in sc27xx_efuse_unlock()
104 mutex_unlock(&efuse->mutex); in sc27xx_efuse_unlock()
107 static int sc27xx_efuse_poll_status(struct sc27xx_efuse *efuse, u32 bits) in sc27xx_efuse_poll_status() argument
112 ret = regmap_read_poll_timeout(efuse->regmap, in sc27xx_efuse_poll_status()
[all …]
Drockchip-efuse.c58 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()
79 RK3288_STROBE, efuse->base + REG_EFUSE_CTRL); in rockchip_rk3288_efuse_read()
[all …]
Djz4780-efuse.c72 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()
142 struct jz4780_efuse *efuse; in jz4780_efuse_probe() local
151 efuse = devm_kzalloc(dev, sizeof(*efuse), GFP_KERNEL); in jz4780_efuse_probe()
152 if (!efuse) in jz4780_efuse_probe()
159 efuse->map = devm_regmap_init_mmio(dev, regs, in jz4780_efuse_probe()
161 if (IS_ERR(efuse->map)) in jz4780_efuse_probe()
[all …]
DMakefile23 nvmem_jz4780_efuse-y := jz4780-efuse.o
33 nvmem_meson_efuse-y := meson-efuse.o
35 nvmem_meson_mx_efuse-y := meson-mx-efuse.o
38 obj-$(CONFIG_NVMEM_MTK_EFUSE) += nvmem_mtk-efuse.o
39 nvmem_mtk-efuse-y := mtk-efuse.o
51 nvmem_rockchip_efuse-y := rockchip-efuse.o
54 obj-$(CONFIG_NVMEM_SC27XX_EFUSE) += nvmem-sc27xx-efuse.o
55 nvmem-sc27xx-efuse-y := sc27xx-efuse.o
61 nvmem_sprd_efuse-y := sprd-efuse.o
70 obj-$(CONFIG_NVMEM_UNIPHIER_EFUSE) += nvmem-uniphier-efuse.o
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/fuse/
Dnvidia,tegra20-fuse.yaml17 - 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-6.1.9/Documentation/devicetree/bindings/nvmem/
Dmediatek,efuse.yaml4 $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
22 pattern: "^efuse@[0-9a-f]+$"
28 - mediatek,mt7622-efuse
29 - mediatek,mt7623-efuse
30 - mediatek,mt8173-efuse
31 - mediatek,mt8183-efuse
32 - mediatek,mt8186-efuse
33 - mediatek,mt8188-efuse
[all …]
Drockchip-efuse.yaml4 $id: http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml#
18 - rockchip,rk3066a-efuse
19 - rockchip,rk3188-efuse
20 - rockchip,rk3228-efuse
21 - rockchip,rk3288-efuse
22 - rockchip,rk3328-efuse
23 - rockchip,rk3368-efuse
24 - rockchip,rk3399-efuse
27 - rockchip,rockchip-efuse
42 rockchip,efuse-size:
[all …]
Damlogic-meson-mx-efuse.txt1 Amlogic Meson6/Meson8/Meson8b efuse
5 - "amlogic,meson6-efuse"
6 - "amlogic,meson8-efuse"
7 - "amlogic,meson8b-efuse"
8 - reg: base address and size of the efuse registers
9 - clocks: a reference to the efuse core gate clock
17 efuse: nvmem@0 {
18 compatible = "amlogic,meson8-efuse";
Dsc27xx-efuse.txt5 "sprd,sc2720-efuse"
6 "sprd,sc2721-efuse"
7 "sprd,sc2723-efuse"
8 "sprd,sc2730-efuse"
9 "sprd,sc2731-efuse"
10 - reg: Specify the address offset of efuse controller.
29 efuse@380 {
30 compatible = "sprd,sc2731-efuse";
Dingenic,jz4780-efuse.yaml4 $id: http://devicetree.org/schemas/nvmem/ingenic,jz4780-efuse.yaml#
18 - ingenic,jz4780-efuse
24 # Handle for the ahb for the efuse.
38 efuse@134100d0 {
39 compatible = "ingenic,jz4780-efuse";
Dsocionext,uniphier-efuse.yaml4 $id: http://devicetree.org/schemas/nvmem/socionext,uniphier-efuse.yaml#
21 const: socionext,uniphier-efuse
42 efuse@100 {
43 compatible = "socionext,uniphier-efuse";
47 efuse@200 {
48 compatible = "socionext,uniphier-efuse";
Damlogic-efuse.txt4 - compatible: should be "amlogic,meson-gxbb-efuse"
5 - clocks: phandle to the efuse peripheral clock provided by the
15 efuse: efuse {
16 compatible = "amlogic,meson-gxbb-efuse";
/linux-6.1.9/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8192c.c348 struct rtl8192cu_efuse *efuse = &priv->efuse_wifi.efuse8192; in rtl8192cu_parse_efuse() local
351 if (efuse->rtl_id != cpu_to_le16(0x8129)) in rtl8192cu_parse_efuse()
354 ether_addr_copy(priv->mac_addr, efuse->mac_addr); in rtl8192cu_parse_efuse()
357 efuse->cck_tx_power_index_A, in rtl8192cu_parse_efuse()
358 sizeof(efuse->cck_tx_power_index_A)); in rtl8192cu_parse_efuse()
360 efuse->cck_tx_power_index_B, in rtl8192cu_parse_efuse()
361 sizeof(efuse->cck_tx_power_index_B)); in rtl8192cu_parse_efuse()
364 efuse->ht40_1s_tx_power_index_A, in rtl8192cu_parse_efuse()
365 sizeof(efuse->ht40_1s_tx_power_index_A)); in rtl8192cu_parse_efuse()
367 efuse->ht40_1s_tx_power_index_B, in rtl8192cu_parse_efuse()
[all …]
Drtl8xxxu_8723a.c134 struct rtl8723au_efuse *efuse = &priv->efuse_wifi.efuse8723; in rtl8723au_parse_efuse() local
136 if (efuse->rtl_id != cpu_to_le16(0x8129)) in rtl8723au_parse_efuse()
139 ether_addr_copy(priv->mac_addr, efuse->mac_addr); in rtl8723au_parse_efuse()
142 efuse->cck_tx_power_index_A, in rtl8723au_parse_efuse()
143 sizeof(efuse->cck_tx_power_index_A)); in rtl8723au_parse_efuse()
145 efuse->cck_tx_power_index_B, in rtl8723au_parse_efuse()
146 sizeof(efuse->cck_tx_power_index_B)); in rtl8723au_parse_efuse()
149 efuse->ht40_1s_tx_power_index_A, in rtl8723au_parse_efuse()
150 sizeof(efuse->ht40_1s_tx_power_index_A)); in rtl8723au_parse_efuse()
152 efuse->ht40_1s_tx_power_index_B, in rtl8723au_parse_efuse()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/regulator/
Dti-abb-regulator.txt35 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-6.1.9/drivers/phy/mediatek/
Dphy-mtk-pcie.c77 struct mtk_pcie_lane_efuse *efuse; member
83 struct mtk_pcie_lane_efuse *data = &pcie_phy->efuse[lane]; in mtk_pcie_efuse_set_lane()
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()
147 ret = nvmem_cell_read_variable_le_u32(dev, efuse_id, &efuse->tx_nmos); in mtk_pcie_efuse_read_for_lane()
152 ret = nvmem_cell_read_variable_le_u32(dev, efuse_id, &efuse->rx_data); in mtk_pcie_efuse_read_for_lane()
156 if (!(efuse->tx_pmos || efuse->tx_nmos || efuse->rx_data)) in mtk_pcie_efuse_read_for_lane()
161 efuse->lane_efuse_supported = true; in mtk_pcie_efuse_read_for_lane()
184 pcie_phy->efuse = devm_kzalloc(dev, pcie_phy->data->num_lanes * in mtk_pcie_read_efuse()
185 sizeof(*pcie_phy->efuse), GFP_KERNEL); in mtk_pcie_read_efuse()
[all …]
/linux-6.1.9/drivers/cpufreq/
Dti-cpufreq.c49 unsigned long efuse);
66 unsigned long efuse) in amx3_efuse_xlate() argument
68 if (!efuse) in amx3_efuse_xlate()
69 efuse = opp_data->soc_data->efuse_fallback; in amx3_efuse_xlate()
71 return ~efuse; in amx3_efuse_xlate()
75 unsigned long efuse) in dra7_efuse_xlate() argument
84 switch (efuse) { in dra7_efuse_xlate()
101 unsigned long efuse) in omap3_efuse_xlate() argument
104 return BIT(efuse); in omap3_efuse_xlate()
213 u32 efuse; in ti_cpufreq_get_efuse() local
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7603/
Deeprom.c67 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-6.1.9/drivers/net/wireless/realtek/rtw88/
Dmain.c1153 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_update_sta_info() local
1183 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info()
1361 wifi_only = !rtwdev->efuse.btcoex; in rtw_power_on()
1502 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_ht_cap() local
1515 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap()
1522 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap()
1538 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_vht_cap() local
1542 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap()
1543 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap()
1570 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap()
[all …]
Defuse.c43 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()
Drtw8821c.c23 static void rtw8821ce_efuse_parsing(struct rtw_efuse *efuse, in rtw8821ce_efuse_parsing() argument
26 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8821ce_efuse_parsing()
38 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8821c_read_efuse() local
44 efuse->rfe_option = map->rfe_option; in rtw8821c_read_efuse()
45 efuse->rf_board_option = map->rf_board_option; in rtw8821c_read_efuse()
46 efuse->crystal_cap = map->xtal_k; in rtw8821c_read_efuse()
47 efuse->pa_type_2g = map->pa_type; in rtw8821c_read_efuse()
48 efuse->pa_type_5g = map->pa_type; in rtw8821c_read_efuse()
49 efuse->lna_type_2g = map->lna_type_2g[0]; in rtw8821c_read_efuse()
50 efuse->lna_type_5g = map->lna_type_5g[0]; in rtw8821c_read_efuse()
[all …]
Dcoex.c117 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()
810 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_update_wl_ch_info() local
824 (efuse->share_ant && center_chan <= 14 && in rtw_coex_update_wl_ch_info()
985 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_btc_wltoggle_table_a() local
993 if (efuse->share_ant) { in rtw_btc_wltoggle_table_a()
1071 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_table() local
1078 if (efuse->share_ant) { in rtw_coex_table()
1200 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_coex_tdma() local
1236 if (efuse->share_ant) { in rtw_coex_tdma()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.c24 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 …]

123456789