|
@@ -1819,3 +1819,76 @@ static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
|
|
|
};
|
|
|
|
|
|
/* kbd */
|
|
|
+static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
|
|
|
+ { .irq = 120 + OMAP44XX_IRQ_GIC_START },
|
|
|
+ { .irq = -1 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap44xx_kbd_hwmod = {
|
|
|
+ .name = "kbd",
|
|
|
+ .class = &omap44xx_kbd_hwmod_class,
|
|
|
+ .clkdm_name = "l4_wkup_clkdm",
|
|
|
+ .mpu_irqs = omap44xx_kbd_irqs,
|
|
|
+ .main_clk = "kbd_fck",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
|
|
|
+ .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * 'mailbox' class
|
|
|
+ * mailbox module allowing communication between the on-chip processors using a
|
|
|
+ * queued mailbox-interrupt mechanism.
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
|
|
|
+ .rev_offs = 0x0000,
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
+ .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
|
|
|
+ SYSC_HAS_SOFTRESET),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type2,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
|
|
|
+ .name = "mailbox",
|
|
|
+ .sysc = &omap44xx_mailbox_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+/* mailbox */
|
|
|
+static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
|
|
|
+ { .irq = 26 + OMAP44XX_IRQ_GIC_START },
|
|
|
+ { .irq = -1 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap44xx_mailbox_hwmod = {
|
|
|
+ .name = "mailbox",
|
|
|
+ .class = &omap44xx_mailbox_hwmod_class,
|
|
|
+ .clkdm_name = "l4_cfg_clkdm",
|
|
|
+ .mpu_irqs = omap44xx_mailbox_irqs,
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
|
|
|
+ .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * 'mcasp' class
|
|
|
+ * multi-channel audio serial port controller
|
|
|
+ */
|
|
|
+
|
|
|
+/* The IP is not compliant to type1 / type2 scheme */
|
|
|
+static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
|
|
|
+ .sidle_shift = 0,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
|
|
|
+ .sysc_offs = 0x0004,
|
|
|
+ .sysc_flags = SYSC_HAS_SIDLEMODE,
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
|