Lines Matching +full:system +full:- +full:controller
1 /* SPDX-License-Identifier: GPL-2.0+ */
14 * struct syscon_uc_info - Information stored by the syscon UCLASS_UCLASS
16 * @regmap: Register map for this controller
26 #define syscon_get_ops(dev) ((struct syscon_ops *)(dev)->driver->ops)
30 * We don't support 64-bit machines. If they are so resource-contrained that
34 * Update: 64-bit is now supported and we have an education crisis.
42 * syscon_get_regmap() - Get access to a register map
46 * @return 0 if OK, -ve on error
51 * syscon_get_regmap_by_driver_data() - Look up a controller by its ID
53 * Each system controller can be accessed by its driver data, which is
54 * assumed to be unique through the scope of all system controllers that
55 * are in use. This function looks up the controller given this driver data.
58 * @devp: Returns the controller correponding to @driver_data
59 * @return 0 on success, -ENODEV if the ID was not found, or other -ve error
65 * syscon_get_regmap_by_driver_data() - Look up a controller by its ID
67 * Each system controller can be accessed by its driver data, which is
68 * assumed to be unique through the scope of all system controllers that
72 * @return register map correponding to @driver_data, or -ve error code
77 * syscon_regmap_lookup_by_phandle() - Look up a controller by a phandle
80 * tree property) of the device using the system controller.
82 * @dev: Device using the system controller
83 * @name: Name of property referring to the system controller
84 * @return A pointer to the regmap if found, ERR_PTR(-ve) on error
90 * syscon_get_first_range() - get the first memory range from a syscon regmap
94 * -ve error code
99 * syscon_node_to_regmap - get regmap from syscon