Lines Matching +full:ti +full:- +full:pruss
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * PRU-ICSS Subsystem user interfaces
5 * Copyright (C) 2015-2023 Texas Instruments Incorporated - http://www.ti.com
6 * MD Danish Anwar <danishanwar@ti.com>
50 * pruss_cfg_read() - read a PRUSS CFG sub-module register
51 * @pruss: the pruss instance handle
52 * @reg: register offset within the CFG sub-module
55 * Reads a given register within the PRUSS CFG sub-module and
56 * returns it through the passed-in @val pointer
60 static int pruss_cfg_read(struct pruss *pruss, unsigned int reg, unsigned int *val) in pruss_cfg_read() argument
62 if (IS_ERR_OR_NULL(pruss)) in pruss_cfg_read()
63 return -EINVAL; in pruss_cfg_read()
65 return regmap_read(pruss->cfg_regmap, reg, val); in pruss_cfg_read()
69 * pruss_cfg_update() - configure a PRUSS CFG sub-module register
70 * @pruss: the pruss instance handle
71 * @reg: register offset within the CFG sub-module
75 * Programs a given register within the PRUSS CFG sub-module
79 static int pruss_cfg_update(struct pruss *pruss, unsigned int reg, in pruss_cfg_update() argument
82 if (IS_ERR_OR_NULL(pruss)) in pruss_cfg_update()
83 return -EINVAL; in pruss_cfg_update()
85 return regmap_update_bits(pruss->cfg_regmap, reg, mask, val); in pruss_cfg_update()