|
@@ -1985,3 +1985,97 @@ static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = {
|
|
* Errata: USB host EHCI may stall when entering smart-standby mode
|
|
* Errata: USB host EHCI may stall when entering smart-standby mode
|
|
* Id: i571
|
|
* Id: i571
|
|
*
|
|
*
|
|
|
|
+ * Description:
|
|
|
|
+ * When the USBHOST module is set to smart-standby mode, and when it is
|
|
|
|
+ * ready to enter the standby state (i.e. all ports are suspended and
|
|
|
|
+ * all attached devices are in suspend mode), then it can wrongly assert
|
|
|
|
+ * the Mstandby signal too early while there are still some residual OCP
|
|
|
|
+ * transactions ongoing. If this condition occurs, the internal state
|
|
|
|
+ * machine may go to an undefined state and the USB link may be stuck
|
|
|
|
+ * upon the next resume.
|
|
|
|
+ *
|
|
|
|
+ * Workaround:
|
|
|
|
+ * Don't use smart standby; use only force standby,
|
|
|
|
+ * hence HWMOD_SWSUP_MSTANDBY
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * During system boot; If the hwmod framework resets the module
|
|
|
|
+ * the module will have smart idle settings; which can lead to deadlock
|
|
|
|
+ * (above Errata Id:i660); so, dont reset the module during boot;
|
|
|
|
+ * Use HWMOD_INIT_NO_RESET.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
|
|
|
|
+ HWMOD_INIT_NO_RESET,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'usb_tll_hs' class
|
|
|
|
+ * usb_tll_hs module is the adapter on the usb_host_hs ports
|
|
|
|
+ */
|
|
|
|
+static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc = {
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
|
+ .syss_offs = 0x0014,
|
|
|
|
+ .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
|
|
|
|
+ SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
|
|
|
|
+ SYSC_HAS_AUTOIDLE),
|
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class = {
|
|
|
|
+ .name = "usb_tll_hs",
|
|
|
|
+ .sysc = &omap3xxx_usb_tll_hs_sysc,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = {
|
|
|
|
+ { .name = "tll-irq", .irq = 78 + OMAP_INTC_START, },
|
|
|
|
+ { .irq = -1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = {
|
|
|
|
+ .name = "usb_tll_hs",
|
|
|
|
+ .class = &omap3xxx_usb_tll_hs_hwmod_class,
|
|
|
|
+ .clkdm_name = "l3_init_clkdm",
|
|
|
|
+ .mpu_irqs = omap3xxx_usb_tll_hs_irqs,
|
|
|
|
+ .main_clk = "usbtll_fck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap2 = {
|
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
|
+ .prcm_reg_id = 3,
|
|
|
|
+ .module_bit = OMAP3430ES2_EN_USBTLL_SHIFT,
|
|
|
|
+ .idlest_reg_id = 3,
|
|
|
|
+ .idlest_idle_bit = OMAP3430ES2_ST_USBTLL_SHIFT,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod omap3xxx_hdq1w_hwmod = {
|
|
|
|
+ .name = "hdq1w",
|
|
|
|
+ .mpu_irqs = omap2_hdq1w_mpu_irqs,
|
|
|
|
+ .main_clk = "hdq_fck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap2 = {
|
|
|
|
+ .module_offs = CORE_MOD,
|
|
|
|
+ .prcm_reg_id = 1,
|
|
|
|
+ .module_bit = OMAP3430_EN_HDQ_SHIFT,
|
|
|
|
+ .idlest_reg_id = 1,
|
|
|
|
+ .idlest_idle_bit = OMAP3430_ST_HDQ_SHIFT,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ .class = &omap2_hdq1w_class,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* SAD2D */
|
|
|
|
+static struct omap_hwmod_rst_info omap3xxx_sad2d_resets[] = {
|
|
|
|
+ { .name = "rst_modem_pwron_sw", .rst_shift = 0 },
|
|
|
|
+ { .name = "rst_modem_sw", .rst_shift = 1 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class omap3xxx_sad2d_class = {
|
|
|
|
+ .name = "sad2d",
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod omap3xxx_sad2d_hwmod = {
|