Lines Matching +full:anatop +full:- +full:reg +full:- +full:offset

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2013-2015 Freescale Semiconductor, Inc.
4 * Copyright 2017-2018 NXP.
35 static struct regmap *anatop; variable
39 u32 reg, val; in imx_anatop_enable_weak2p5() local
41 regmap_read(anatop, ANADIG_ANA_MISC0, &val); in imx_anatop_enable_weak2p5()
44 reg = ANADIG_REG_2P5; in imx_anatop_enable_weak2p5()
45 reg += (enable && (val & BM_ANADIG_ANA_MISC0_STOP_MODE_CONFIG) == 0) ? in imx_anatop_enable_weak2p5()
47 regmap_write(anatop, reg, BM_ANADIG_REG_2P5_ENABLE_WEAK_LINREG); in imx_anatop_enable_weak2p5()
52 regmap_write(anatop, ANADIG_REG_CORE + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_fet_odrive()
58 regmap_write(anatop, ANADIG_REG_2P5 + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_2p5_pulldown()
64 regmap_write(anatop, ANADIG_ANA_MISC0 + (enable ? REG_SET : REG_CLR), in imx_anatop_disconnect_high_snvs()
100 u16 offset = ANADIG_DIGPROG; in imx_init_revision_from_anatop() local
103 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop"); in imx_init_revision_from_anatop()
106 if (of_device_is_compatible(np, "fsl,imx6sl-anatop")) in imx_init_revision_from_anatop()
107 offset = ANADIG_DIGPROG_IMX6SL; in imx_init_revision_from_anatop()
108 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) in imx_init_revision_from_anatop()
109 offset = ANADIG_DIGPROG_IMX7D; in imx_init_revision_from_anatop()
110 digprog = readl_relaxed(anatop_base + offset); in imx_init_revision_from_anatop()
117 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) { in imx_init_revision_from_anatop()
138 "fsl,imx6ul-src"); in imx_init_revision_from_anatop()
160 anatop = syscon_regmap_lookup_by_compatible("fsl,imx6q-anatop"); in imx_anatop_init()
161 if (IS_ERR(anatop)) in imx_anatop_init()
162 pr_err("%s: failed to find imx6q-anatop regmap!\n", __func__); in imx_anatop_init()