Lines Matching full:snvs
3 // Driver for the IMX SNVS ON/OFF Power Key
35 struct regmap *snvs; member
51 regmap_read(pdata->snvs, SNVS_HPSR_REG, &state); in imx_imx_snvs_check_for_events()
78 regmap_read(pdata->snvs, SNVS_LPSR_REG, &lp_status); in imx_snvs_pwrkey_interrupt()
98 regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); in imx_snvs_pwrkey_interrupt()
119 /* Get SNVS register Page */ in imx_snvs_pwrkey_probe()
128 pdata->snvs = syscon_regmap_lookup_by_phandle(np, "regmap"); in imx_snvs_pwrkey_probe()
129 if (IS_ERR(pdata->snvs)) { in imx_snvs_pwrkey_probe()
130 dev_err(&pdev->dev, "Can't get snvs syscon\n"); in imx_snvs_pwrkey_probe()
131 return PTR_ERR(pdata->snvs); in imx_snvs_pwrkey_probe()
141 dev_err(&pdev->dev, "Failed to get snvs clock (%pe)\n", clk); in imx_snvs_pwrkey_probe()
151 regmap_read(pdata->snvs, SNVS_HPVIDR1_REG, &vid); in imx_snvs_pwrkey_probe()
154 regmap_update_bits(pdata->snvs, SNVS_LPCR_REG, SNVS_LPCR_DEP_EN, SNVS_LPCR_DEP_EN); in imx_snvs_pwrkey_probe()
157 regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); in imx_snvs_pwrkey_probe()
168 input->phys = "snvs-pwrkey/input0"; in imx_snvs_pwrkey_probe()
221 MODULE_DESCRIPTION("i.MX snvs power key Driver");