Lines Matching full:hwmod

32  * OMAP hwmod provides a consistent way to describe the on-chip
35 * hardware database. OMAP hwmod provides a standard, consistent API
37 * hwmod provides a way for other core code, such as the Linux device
41 * Using hwmod
43 * Drivers won't call hwmod functions directly. That is done by the
47 * currently how hwmod data is communicated to drivers and to the
51 * From a layering perspective, here is where the OMAP hwmod code
82 * The OMAP hwmod code also will attempt to reset and idle all on-chip
91 * The hwmod code considers modules to be in one of several activity
93 * are registered via the hwmod code, proceed to the REGISTERED state.
97 * is entered. The hwmod code will then place the module into either
120 * XXX add tests at the beginning of each function to ensure the hwmod is
169 /* Name of the OMAP hwmod for the MPU */
257 /* inited: set to true once the hwmod code is initialized */
266 * Load the current value of the hwmod OCP_SYSCONFIG register into the
267 * struct omap_hwmod for later use. Returns -EINVAL if the hwmod has no
273 WARN(1, "omap_hwmod: %s: cannot read OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name); in _update_sysc_cache()
298 WARN(1, "omap_hwmod: %s: cannot write OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name); in _write_sysconfig()
329 * the @oh hwmod. Does not write to the hardware. Returns -EINVAL
363 * hwmod. Does not write to the hardware. Returns -EINVAL upon error
396 * @oh hwmod. Used for additional powersaving on some modules. Does
428 * Set the SOFTRESET bit in @v for hwmod @oh. Returns -EINVAL upon
456 * Clear the SOFTRESET bit in @v for hwmod @oh. Returns -EINVAL upon
522 * Set the DMADISABLE bit in @v for hwmod @oh. Returns -EINVAL upon
563 * hwmod. The autoidle bit controls whether the module can gate
621 /* XXX test pwrdm_get_wken for this hwmod's subsystem */ in _enable_wakeup()
817 * _init_main_clk - get a struct clk * for the hwmod's main functional clk
821 * functional clock pointer) if a clock matching the hwmod name is found,
867 * _init_interface_clks - get a struct clk * for the hwmod's interface clks
906 * _init_opt_clk - get a struct clk * for the hwmod's optional clocks
973 * _enable_clocks - enable hwmod main clock and interface clocks
977 * on the hwmod @oh. Returns 0.
1032 * _disable_clocks - disable hwmod main clock and interface clocks
1035 * Disables the hwmod @oh main functional and interface clocks. Returns 0.
1065 * Enables the PRCM module mode related to the hwmod @oh.
1119 * Intended to be called during hwmod registration only. No return
1399 * _init_clocks - clk_get() all clocks associated with this hwmod. Retrieve as
1402 * @np: device_node mapped to this hwmod
1405 * Resolves all clock names embedded in the hwmod. Returns 0 on
1433 * _lookup_hardreset - fill register bit info for this hwmod/reset line
1435 * @name: name of the reset line in the context of this hwmod
1464 * contained in the hwmod module.
1497 * in the hwmod module.
1566 * contained in the hwmod module
1648 * Disable the PRCM module mode related to the hwmod @oh.
1683 * Resets an omap_hwmod @oh via the OCP_SYSCONFIG bit. hwmod must be
1684 * enabled for this to work. Returns -ENOENT if the hwmod cannot be
1685 * reset this way, -EINVAL if the hwmod is in the wrong state,
1785 * custom reset function - these must return -EINVAL if the hwmod
1786 * cannot be reset this way or if the hwmod is in the wrong state,
1825 * _omap4_update_context_lost - increment hwmod context loss counter if
1826 * hwmod context was lost, and clear hardware context loss reg
1827 * @oh: hwmod to check for context loss
1829 * If the PRCM indicates that the hwmod @oh lost context, increment
1850 * _omap4_get_context_lost - get context loss counter for a hwmod
1851 * @oh: hwmod to get context loss counter for
1853 * Returns the in-memory context loss counter for a hwmod.
1864 * Enables an omap_hwmod @oh such that the MPU can access the hwmod's
1865 * register target. Returns -EINVAL if the hwmod is in the wrong
1961 * Idles an omap_hwmod @oh. This should be called once the hwmod has
1962 * no further work. Returns -EINVAL if the hwmod is in the wrong
2022 * used for the hwmod is removed or unloaded or if the driver is not
2023 * used by the system. Returns -EINVAL if the hwmod is in the wrong
2099 pr_debug("omap_hwmod: dt %pOFn[%i] uses hwmod %s\n", in of_dev_find_hwmod()
2109 * of_dev_hwmod_lookup - look up needed hwmod from dt blob
2115 * Parse the dt blob and find out needed hwmod. Recursive function is
2161 * in device tree while still using legacy hwmod platform data
2164 * Can be removed when all cpsw hwmod platform data has been
2260 * _init_mpu_rt_base - populate the virtual address for a hwmod
2273 * Returns 0 on success, -EINVAL if an invalid hwmod is passed, and
2334 * _init - initialize internal data for the hwmod @oh
2339 * registers belonging to the hwmod @oh. @oh must already be
2341 * hwmod initialization. Code called here does not touch any hardware
2343 * upon success or if the hwmod isn't registered or if the hwmod's
2431 * Reset the IP block corresponding to the hwmod @oh during the setup
2485 * block data and interconnect data is available to the hwmod code, it
2509 * XXX HWMOD_INIT_NO_IDLE does not belong in hwmod data - in _setup_postsetup()
2523 WARN(1, "hwmod: %s: unknown postsetup state %d! defaulting to enabled\n", in _setup_postsetup()
2541 * two phases for hwmod initialization. Code called here generally
2554 WARN(r, "hwmod: %s: setup: failed to enable parent hwmod %s\n", in _setup()
2573 WARN(1, "hwmod: %s: unknown postsetup state %d! defaulting to enabled\n", in _setup()
2618 * set in the hwmod data, inserted by the autogenerator code. in _register()
2751 * _omap2_assert_hardreset - call OMAP2 PRM hardreset fn with hwmod args
2756 * the hwmod @oh and the hardreset line data @ohri. Only intended for
2769 * _omap2_deassert_hardreset - call OMAP2 PRM hardreset fn with hwmod args
2774 * the hwmod @oh and the hardreset line data @ohri. Only intended for
2787 * _omap2_is_hardreset_asserted - call OMAP2 PRM hardreset fn with hwmod args
2792 * from the hwmod @oh and the hardreset line data @ohri. Only
2806 * _omap4_assert_hardreset - call OMAP4 PRM hardreset fn with hwmod args
2811 * from the hwmod @oh and the hardreset line data @ohri. Only
2830 * _omap4_deassert_hardreset - call OMAP4 PRM hardreset fn with hwmod args
2835 * from the hwmod @oh and the hardreset line data @ohri. Only
2848 pr_err("omap_hwmod: %s: %s: hwmod data error: OMAP4 does not support st_shift\n", in _omap4_deassert_hardreset()
2859 * _omap4_is_hardreset_asserted - call OMAP4 PRM hardreset fn with hwmod args
2864 * extracted from the hwmod @oh and the hardreset line data @ohri.
2884 * _omap4_disable_direct_prcm - disable direct PRCM control for hwmod
2887 * Disables direct PRCM clkctrl done by hwmod core. Instead, the hwmod
2902 * _am33xx_deassert_hardreset - call AM33XX PRM hardreset fn with hwmod args
2907 * from the hwmod @oh and the hardreset line data @ohri. Only
3023 * omap_hwmod_register_links - register an array of hwmod links
3058 * _ensure_mpu_hwmod_is_setup - ensure the MPU SS hwmod is init'ed and set up
3059 * @oh: pointer to the hwmod currently being set up (usually not the MPU)
3061 * If the hwmod data corresponding to the MPU subsystem IP block
3070 pr_err("omap_hwmod: %s: MPU initiator hwmod %s not yet registered\n", in _ensure_mpu_hwmod_is_setup()
3077 * omap_hwmod_setup_one - set up a single hwmod
3078 * @oh_name: const char * name of the already-registered hwmod to set up
3080 * Initialize and set up a single hwmod. Intended to be used for a
3084 * registered omap_hwmod. Also calls _setup() on each hwmod. Returns
3095 WARN(1, "omap_hwmod: %s: hwmod not yet registered\n", oh_name); in omap_hwmod_setup_one()
3637 * Enable DEBUG_OMAPUART_FLAGS for uart hwmod that is being used as
3638 * early concole so that hwmod core doesn't reset and keep it in idle
3673 * Initialize and set up all IP blocks registered with the hwmod code.
3676 * calls _setup() on each hwmod. Returns 0 upon success.
3845 * contained in the hwmod module.
3872 * contained in the hwmod module.
3898 * omap_hwmod_for_each_by_class - call @fn for each hwmod of class @classname
3900 * @fn: callback function pointer to call for each hwmod in class @classname
3941 * omap_hwmod_set_postsetup_state - set the post-_setup() state for this hwmod
3943 * @state: state that _setup() should leave the hwmod in
3945 * Sets the hwmod state that @oh will enter at the end of _setup()
3948 * -EINVAL if there is a problem with the arguments or if the hwmod is
3987 * On OMAP4, this queries the per-hwmod context loss register,
4007 * omap_hwmod_init - initialize the hwmod code
4009 * Sets up some function pointers needed by the hwmod code to operate on the