• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-omap2/

Lines Matching refs:omap_hwmod

18 #include <plat/omap_hwmod.h>
34 static struct omap_hwmod *mpu_oh;
44 * @oh: struct omap_hwmod *
47 * struct omap_hwmod for later use. Returns -EINVAL if the hwmod has no
50 static int _update_sysc_cache(struct omap_hwmod *oh)
53 WARN(1, "omap_hwmod: %s: cannot read OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name);
69 * @oh: struct omap_hwmod *
74 static void _write_sysconfig(u32 v, struct omap_hwmod *oh)
77 WARN(1, "omap_hwmod: %s: cannot write OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name);
90 * @oh: struct omap_hwmod *
98 static int _set_master_standbymode(struct omap_hwmod *oh, u8 standbymode,
109 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
124 * @oh: struct omap_hwmod *
132 static int _set_slave_idlemode(struct omap_hwmod *oh, u8 idlemode, u32 *v)
142 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
157 * @oh: struct omap_hwmod *
166 static int _set_clockactivity(struct omap_hwmod *oh, u8 clockact, u32 *v)
176 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
191 * @oh: struct omap_hwmod *
197 static int _set_softreset(struct omap_hwmod *oh, u32 *v)
206 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
219 * @oh: struct omap_hwmod *
230 static int _set_module_autoidle(struct omap_hwmod *oh, u8 autoidle,
241 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
256 * @oh: struct omap_hwmod *
261 static int _enable_wakeup(struct omap_hwmod *oh)
270 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
288 * @oh: struct omap_hwmod *
293 static int _disable_wakeup(struct omap_hwmod *oh)
302 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
320 * @oh: struct omap_hwmod *
330 static int _add_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
340 * @oh: struct omap_hwmod *
350 static int _del_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
360 * @oh: struct omap_hwmod *
366 static int _init_main_clk(struct omap_hwmod *oh)
375 pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
381 pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n",
389 * @oh: struct omap_hwmod *
394 static int _init_interface_clks(struct omap_hwmod *oh)
411 pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
423 * @oh: struct omap_hwmod *
428 static int _init_opt_clks(struct omap_hwmod *oh)
438 pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
450 * @oh: struct omap_hwmod *
455 static int _enable_clocks(struct omap_hwmod *oh)
459 pr_debug("omap_hwmod: %s: enabling clocks\n", oh->name);
481 * @oh: struct omap_hwmod *
485 static int _disable_clocks(struct omap_hwmod *oh)
489 pr_debug("omap_hwmod: %s: disabling clocks\n", oh->name);
511 * @oh: struct omap_hwmod *
516 static int _find_mpu_port_index(struct omap_hwmod *oh)
534 pr_debug("omap_hwmod: %s: MPU OCP slave port ID %d\n",
537 pr_debug("omap_hwmod: %s: no MPU OCP slave port found\n",
545 * @oh: struct omap_hwmod *
550 static void __iomem *_find_mpu_rt_base(struct omap_hwmod *oh, u8 index)
573 pr_err("omap_hwmod: %s: Could not ioremap\n", oh->name);
576 pr_debug("omap_hwmod: %s: MPU register target at va %p\n",
579 pr_debug("omap_hwmod: %s: no MPU register target found\n",
588 * @oh: struct omap_hwmod *
595 static void _sysc_enable(struct omap_hwmod *oh)
634 * @oh: struct omap_hwmod *
641 static void _sysc_idle(struct omap_hwmod *oh)
669 * @oh: struct omap_hwmod *
674 static void _sysc_shutdown(struct omap_hwmod *oh)
698 * _lookup - find an omap_hwmod by name
699 * @name: find an omap_hwmod by name
701 * Return a pointer to an omap_hwmod by name, or NULL if not found.
704 static struct omap_hwmod *_lookup(const char *name)
706 struct omap_hwmod *oh, *temp_oh;
722 * @oh: struct omap_hwmod *
727 * with omap_hwmod_mutex held. Returns -EINVAL if the omap_hwmod
731 static int _init_clocks(struct omap_hwmod *oh, void *data)
738 pr_debug("omap_hwmod: %s: looking up clocks\n", oh->name);
752 * @oh: struct omap_hwmod *
759 static int _wait_target_ready(struct omap_hwmod *oh)
791 * _reset - reset an omap_hwmod
792 * @oh: struct omap_hwmod *
794 * Resets an omap_hwmod @oh via the OCP_SYSCONFIG bit. hwmod must be
800 static int _reset(struct omap_hwmod *oh)
812 WARN(1, "omap_hwmod: %s: reset can only be entered from "
817 pr_debug("omap_hwmod: %s: resetting\n", oh->name);
830 WARN(1, "omap_hwmod: %s: failed to reset in %d usec\n",
833 pr_debug("omap_hwmod: %s: reset in %d usec\n", oh->name, c);
840 * _omap_hwmod_enable - enable an omap_hwmod
841 * @oh: struct omap_hwmod *
843 * Enables an omap_hwmod @oh such that the MPU can access the hwmod's
848 int _omap_hwmod_enable(struct omap_hwmod *oh)
855 WARN(1, "omap_hwmod: %s: enabled state can only be entered "
860 pr_debug("omap_hwmod: %s: enabling\n", oh->name);
877 pr_debug("omap_hwmod: %s: _wait_target_ready: %d\n",
885 * _idle - idle an omap_hwmod
886 * @oh: struct omap_hwmod *
888 * Idles an omap_hwmod @oh. This should be called once the hwmod has
892 int _omap_hwmod_idle(struct omap_hwmod *oh)
895 WARN(1, "omap_hwmod: %s: idle state can only be entered from "
900 pr_debug("omap_hwmod: %s: idling\n", oh->name);
913 * _shutdown - shutdown an omap_hwmod
914 * @oh: struct omap_hwmod *
916 * Shut down an omap_hwmod @oh. This should be called when the driver
921 static int _shutdown(struct omap_hwmod *oh)
925 WARN(1, "omap_hwmod: %s: disabled state can only be entered "
930 pr_debug("omap_hwmod: %s: disabling\n", oh->name);
944 * _setup - do initial configuration of omap_hwmod
945 * @oh: struct omap_hwmod *
955 static int _setup(struct omap_hwmod *oh, void *data)
985 pr_warning("omap_hwmod: %s: cannot be enabled (%d)\n",
1007 u32 omap_hwmod_readl(struct omap_hwmod *oh, u16 reg_offs)
1012 void omap_hwmod_writel(u32 v, struct omap_hwmod *oh, u16 reg_offs)
1017 int omap_hwmod_set_slave_idlemode(struct omap_hwmod *oh, u8 idlemode)
1034 int omap_hwmod_register(struct omap_hwmod *oh)
1044 pr_debug("omap_hwmod: %s: registering\n", oh->name);
1071 * omap_hwmod_lookup - look up a registered omap_hwmod by name
1072 * @name: name of the omap_hwmod to look up
1074 * Given a @name of an omap_hwmod, return a pointer to the registered
1075 * struct omap_hwmod *, or NULL upon error.
1077 struct omap_hwmod *omap_hwmod_lookup(const char *name)
1079 struct omap_hwmod *oh;
1092 * omap_hwmod_for_each - call function for each registered omap_hwmod
1096 * Call @fn for each registered omap_hwmod, passing @data to each
1103 int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data),
1106 struct omap_hwmod *temp_oh;
1125 * omap_hwmod_init - init omap_hwmod code and register hwmods
1133 int omap_hwmod_init(struct omap_hwmod **ohs)
1135 struct omap_hwmod *oh;
1150 WARN(r, "omap_hwmod: %s: omap_hwmod_register returned "
1164 * to struct clk pointers for each registered omap_hwmod. Also calls
1172 WARN(r, "omap_hwmod: omap_hwmod_late_init(): _init_clocks failed\n");
1175 WARN(!mpu_oh, "omap_hwmod: could not find MPU initiator hwmod %s\n",
1179 pr_debug("omap_hwmod: will leave hwmods enabled during setup\n");
1186 int omap_hwmod_unregister(struct omap_hwmod *oh)
1191 pr_debug("omap_hwmod: %s: unregistering\n", oh->name);
1202 * omap_hwmod_enable - enable an omap_hwmod
1203 * @oh: struct omap_hwmod *
1208 int omap_hwmod_enable(struct omap_hwmod *oh)
1224 * omap_hwmod_idle - idle an omap_hwmod
1225 * @oh: struct omap_hwmod *
1230 int omap_hwmod_idle(struct omap_hwmod *oh)
1243 * omap_hwmod_shutdown - shutdown an omap_hwmod
1244 * @oh: struct omap_hwmod *
1250 int omap_hwmod_shutdown(struct omap_hwmod *oh)
1264 * @oh: struct omap_hwmod *oh
1268 int omap_hwmod_enable_clocks(struct omap_hwmod *oh)
1279 * @oh: struct omap_hwmod *oh
1283 int omap_hwmod_disable_clocks(struct omap_hwmod *oh)
1292 void omap_hwmod_ocp_barrier(struct omap_hwmod *oh)
1311 * @oh: struct omap_hwmod *
1317 int omap_hwmod_reset(struct omap_hwmod *oh)
1333 int omap_hwmod_count_resources(struct omap_hwmod *oh)
1347 * @oh: struct omap_hwmod *
1351 * omap_hwmod @oh. Intended to be called by code that registers
1355 int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res)
1394 struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh)
1418 * @oh: struct omap_hwmod *
1425 void __iomem *omap_hwmod_get_mpu_rt_va(struct omap_hwmod *oh)
1439 int omap_hwmod_add_initiator_dep(struct omap_hwmod *oh,
1440 struct omap_hwmod *init_oh)
1446 int omap_hwmod_del_initiator_dep(struct omap_hwmod *oh,
1447 struct omap_hwmod *init_oh)
1454 * @oh: struct omap_hwmod *
1464 int omap_hwmod_enable_wakeup(struct omap_hwmod *oh)
1479 * @oh: struct omap_hwmod *
1489 int omap_hwmod_disable_wakeup(struct omap_hwmod *oh)
1508 * For each omap_hwmod of class @classname, call @fn. Takes
1516 int (*fn)(struct omap_hwmod *oh,
1520 struct omap_hwmod *temp_oh;
1526 pr_debug("omap_hwmod: %s: looking for modules of class %s\n",
1533 pr_debug("omap_hwmod: %s: %s: calling callback fn\n",
1544 pr_debug("omap_hwmod: %s: iterator terminated early: %d\n",