Lines Matching defs:data

26  * Most of the address and data flow between modules is via OCP-based
46 * build a struct platform_device using omap_hwmod data, and that is
47 * currently how hwmod data is communicated to drivers and to the
60 * | platform_driver data/code) |
68 * ----> | omap_hwmod code/data | <-----
75 * Device drivers should not contain any OMAP-specific code or data in
190 * struct clkctrl_provider - clkctrl provider mapping data
2157 * in device tree while still using legacy hwmod platform data
2160 * Can be removed when all cpsw hwmod platform data has been
2187 * "ti,hwmods" property with just dts data without a need for platform
2188 * data for IO resources. And we don't need all the child IP device
2258 * @data: (unused, caller should pass NULL)
2260 * @np: struct device_node * of the IP block's device node in the DT data
2272 static int __init _init_mpu_rt_base(struct omap_hwmod *oh, void *data,
2330 * _init - initialize internal data for the hwmod @oh
2338 * registers, it simply prepares internal data structures. Returns 0
2342 static int __init _init(struct omap_hwmod *oh, void *data)
2357 pr_debug("omap_hwmod: %s missing dt data\n", oh->name);
2359 pr_warn("omap_hwmod: %s using broken dt data from %pOFn\n",
2481 * block data and interconnect data is available to the hwmod code, it
2505 * XXX HWMOD_INIT_NO_IDLE does not belong in hwmod data -
2541 static int _setup(struct omap_hwmod *oh, void *data)
2587 * XXX The data should be copied into bootmem, so the original data
2614 * set in the hwmod data, inserted by the autogenerator code.
2652 * XXX The data should be copied into bootmem, so the original data
2749 * @ohri: hardreset line data
2752 * the hwmod @oh and the hardreset line data @ohri. Only intended for
2767 * @ohri: hardreset line data
2770 * the hwmod @oh and the hardreset line data @ohri. Only intended for
2785 * @ohri: hardreset line data
2788 * from the hwmod @oh and the hardreset line data @ohri. Only
2804 * @ohri: hardreset line data
2807 * from the hwmod @oh and the hardreset line data @ohri. Only
2828 * @ohri: hardreset line data
2831 * from the hwmod @oh and the hardreset line data @ohri. Only
2844 pr_err("omap_hwmod: %s: %s: hwmod data error: OMAP4 does not support st_shift\n",
2857 * @ohri: hardreset line data
2860 * extracted from the hwmod @oh and the hardreset line data @ohri.
2900 * @ohri: hardreset line data
2903 * from the hwmod @oh and the hardreset line data @ohri. Only
2991 * @data: void * data to pass to callback function
2993 * Call @fn for each registered omap_hwmod, passing @data to each
3000 int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data),
3001 void *data)
3010 ret = (*fn)(temp_oh, data);
3057 * If the hwmod data corresponding to the MPU subsystem IP block
3116 * @data: module data
3120 const struct ti_sysc_module_data *data,
3123 const struct sysc_regbits *regbits = data->cap->regbits;
3154 * @data: module data
3158 const struct ti_sysc_module_data *data,
3161 switch (data->cap->type) {
3204 return omap_hwmod_check_sysc(dev, data, *sysc_fields);
3210 * @data: module data
3216 const struct ti_sysc_module_data *data,
3224 if (data->offsets[SYSC_REVISION] >= 0)
3225 *rev_offs = data->offsets[SYSC_REVISION];
3227 if (data->offsets[SYSC_SYSCONFIG] >= 0)
3228 *sysc_offs = data->offsets[SYSC_SYSCONFIG];
3230 if (data->offsets[SYSC_SYSSTATUS] >= 0)
3231 *syss_offs = data->offsets[SYSC_SYSSTATUS];
3239 * @data: module data
3243 const struct ti_sysc_module_data *data,
3248 switch (data->cap->type) {
3252 if (data->cfg->sysc_val & SYSC_OMAP2_CLOCKACTIVITY)
3254 if (data->cfg->sysc_val & SYSC_OMAP2_EMUFREE)
3256 if (data->cfg->sysc_val & SYSC_OMAP2_ENAWAKEUP)
3258 if (data->cfg->sysc_val & SYSC_OMAP2_SOFTRESET)
3260 if (data->cfg->sysc_val & SYSC_OMAP2_AUTOIDLE)
3266 if (data->cfg->sysc_val & SYSC_OMAP4_DMADISABLE)
3268 if (data->cfg->sysc_val & SYSC_OMAP4_FREEEMU)
3270 if (data->cfg->sysc_val & SYSC_OMAP4_SOFTRESET)
3276 if (data->cfg->sysc_val & SYSC_OMAP3_SR_ENAWAKEUP)
3280 if (data->cap->regbits->emufree_shift >= 0)
3282 if (data->cap->regbits->enwkup_shift >= 0)
3284 if (data->cap->regbits->srst_shift >= 0)
3286 if (data->cap->regbits->autoidle_shift >= 0)
3291 if (data->cap->regbits->midle_shift >= 0 &&
3292 data->cfg->midlemodes)
3295 if (data->cap->regbits->sidle_shift >= 0 &&
3296 data->cfg->sidlemodes)
3299 if (data->cfg->quirks & SYSC_QUIRK_UNCACHED)
3301 if (data->cfg->quirks & SYSC_QUIRK_RESET_STATUS)
3304 if (data->cfg->syss_mask & 1)
3313 * @data: module data
3317 const struct ti_sysc_module_data *data,
3322 if (data->cfg->midlemodes & BIT(SYSC_IDLE_FORCE))
3324 if (data->cfg->midlemodes & BIT(SYSC_IDLE_NO))
3326 if (data->cfg->midlemodes & BIT(SYSC_IDLE_SMART))
3328 if (data->cfg->midlemodes & BIT(SYSC_IDLE_SMART_WKUP))
3331 if (data->cfg->sidlemodes & BIT(SYSC_IDLE_FORCE))
3333 if (data->cfg->sidlemodes & BIT(SYSC_IDLE_NO))
3335 if (data->cfg->sidlemodes & BIT(SYSC_IDLE_SMART))
3337 if (data->cfg->sidlemodes & BIT(SYSC_IDLE_SMART_WKUP))
3344 * omap_hwmod_check_module - check new module against platform data
3347 * @data: new module data
3357 const struct ti_sysc_module_data *data,
3388 if (data->cfg->srst_udelay != oh->class->sysc->srst_udelay)
3390 data->cfg->srst_udelay,
3411 const struct ti_sysc_module_data *data,
3434 sysc->srst_udelay = data->cfg->srst_udelay;
3437 regs = ioremap(data->module_pa,
3438 data->module_size);
3447 if (oh->class->name && strcmp(oh->class->name, data->name)) {
3510 const struct ti_sysc_module_data *data,
3519 if (!strncmp(data->name, quirk->match, quirk->len)) {
3529 const struct ti_sysc_module_data *data)
3532 omap_hwmod_init_reset_quirk(dev, oh, data,
3537 omap_hwmod_init_reset_quirk(dev, oh, data, dra7_reset_quirks,
3540 omap_hwmod_init_reset_quirk(dev, oh, data, omap_reset_quirks,
3547 * @data: module data
3551 const struct ti_sysc_module_data *data,
3560 if (!dev || !data || !data->name || !cookie)
3563 oh = _lookup(data->name);
3569 oh->name = data->name;
3582 omap_hwmod_init_reset_quirks(dev, oh, data);
3584 oh->class->name = data->name;
3590 cookie->data = oh;
3592 error = omap_hwmod_init_regbits(dev, oh, data, &sysc_fields);
3596 error = omap_hwmod_init_reg_offs(dev, data, &rev_offs,
3601 error = omap_hwmod_init_sysc_flags(dev, data, &sysc_flags);
3605 error = omap_hwmod_init_idlemodes(dev, data, &idlemodes);
3609 if (data->cfg->quirks & SYSC_QUIRK_NO_IDLE)
3611 if (data->cfg->quirks & SYSC_QUIRK_NO_IDLE_ON_INIT)
3613 if (data->cfg->quirks & SYSC_QUIRK_NO_RESET_ON_INIT)
3615 if (data->cfg->quirks & SYSC_QUIRK_USE_CLOCKACT)
3617 if (data->cfg->quirks & SYSC_QUIRK_SWSUP_SIDLE)
3619 if (data->cfg->quirks & SYSC_QUIRK_SWSUP_SIDLE_ACT)
3621 if (data->cfg->quirks & SYSC_QUIRK_SWSUP_MSTANDBY)
3623 if (data->cfg->quirks & SYSC_QUIRK_CLKDM_NOAUTO)
3626 error = omap_hwmod_check_module(dev, oh, data, sysc_fields,
3632 return omap_hwmod_allocate_module(dev, oh, data, sysc_fields,
3764 * IP block data retrieval functions
3902 * @user: arbitrary context data to pass to the callback function
3986 * upon success, or zero if no context loss data is available.