Lines Matching +full:anatop +full:- +full:enable +full:- +full:bit

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
37 static void imx_anatop_enable_weak2p5(bool enable) in imx_anatop_enable_weak2p5() argument
41 regmap_read(anatop, ANADIG_ANA_MISC0, &val); 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()
50 static void imx_anatop_enable_fet_odrive(bool enable) in imx_anatop_enable_fet_odrive() argument
52 regmap_write(anatop, ANADIG_REG_CORE + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_fet_odrive()
56 static inline void imx_anatop_enable_2p5_pulldown(bool enable) in imx_anatop_enable_2p5_pulldown() argument
58 regmap_write(anatop, ANADIG_REG_2P5 + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_2p5_pulldown()
62 static inline void imx_anatop_disconnect_high_snvs(bool enable) in imx_anatop_disconnect_high_snvs() argument
64 regmap_write(anatop, ANADIG_ANA_MISC0 + (enable ? REG_SET : REG_CLR), in imx_anatop_disconnect_high_snvs()
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()
108 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) in imx_init_revision_from_anatop()
117 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) { in imx_init_revision_from_anatop()
125 * silicon revison bit define. in imx_init_revision_from_anatop()
138 "fsl,imx6ul-src"); in imx_init_revision_from_anatop()
145 /* src_sbmr2 bit 6 is to identify if it is i.MX6ULZ */ 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()