|
@@ -1064,3 +1064,87 @@ static struct omap_hwmod omap44xx_emif2_hwmod = {
|
|
.context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
|
|
.context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
|
|
.modulemode = MODULEMODE_HWCTRL,
|
|
.modulemode = MODULEMODE_HWCTRL,
|
|
},
|
|
},
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'fdif' class
|
|
|
|
+ * face detection hw accelerator module
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
|
+ /*
|
|
|
|
+ * FDIF needs 100 OCP clk cycles delay after a softreset before
|
|
|
|
+ * accessing sysconfig again.
|
|
|
|
+ * The lowest frequency at the moment for L3 bus is 100 MHz, so
|
|
|
|
+ * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
|
|
|
|
+ *
|
|
|
|
+ * TODO: Indicate errata when available.
|
|
|
|
+ */
|
|
|
|
+ .srst_udelay = 2,
|
|
|
|
+ .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
|
|
|
|
+ SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
|
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
|
|
|
|
+ MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
|
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type2,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
|
|
|
|
+ .name = "fdif",
|
|
|
|
+ .sysc = &omap44xx_fdif_sysc,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* fdif */
|
|
|
|
+static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = {
|
|
|
|
+ { .irq = 69 + OMAP44XX_IRQ_GIC_START },
|
|
|
|
+ { .irq = -1 }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod omap44xx_fdif_hwmod = {
|
|
|
|
+ .name = "fdif",
|
|
|
|
+ .class = &omap44xx_fdif_hwmod_class,
|
|
|
|
+ .clkdm_name = "iss_clkdm",
|
|
|
|
+ .mpu_irqs = omap44xx_fdif_irqs,
|
|
|
|
+ .main_clk = "fdif_fck",
|
|
|
|
+ .prcm = {
|
|
|
|
+ .omap4 = {
|
|
|
|
+ .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
|
|
|
|
+ .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
|
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * 'gpio' class
|
|
|
|
+ * general purpose io module
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
|
|
|
|
+ .rev_offs = 0x0000,
|
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
|
+ .syss_offs = 0x0114,
|
|
|
|
+ .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
|
|
|
|
+ SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
|
|
|
|
+ SYSS_HAS_RESET_STATUS),
|
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
|
|
|
|
+ SIDLE_SMART_WKUP),
|
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
|
|
|
|
+ .name = "gpio",
|
|
|
|
+ .sysc = &omap44xx_gpio_sysc,
|
|
|
|
+ .rev = 2,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* gpio dev_attr */
|
|
|
|
+static struct omap_gpio_dev_attr gpio_dev_attr = {
|
|
|
|
+ .bank_width = 32,
|
|
|
|
+ .dbck_flag = true,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* gpio1 */
|
|
|
|
+static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
|