|
@@ -2095,6 +2095,49 @@ static struct omap_hwmod omap3xxx_counter_32k_hwmod = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 'gpmc' class
|
|
|
+ * general purpose memory controller
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class_sysconfig omap3xxx_gpmc_sysc = {
|
|
|
+ .rev_offs = 0x0000,
|
|
|
+ .sysc_offs = 0x0010,
|
|
|
+ .syss_offs = 0x0014,
|
|
|
+ .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
|
|
|
+ SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
|
|
|
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
|
|
|
+ .sysc_fields = &omap_hwmod_sysc_type1,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_class omap3xxx_gpmc_hwmod_class = {
|
|
|
+ .name = "gpmc",
|
|
|
+ .sysc = &omap3xxx_gpmc_sysc,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod_irq_info omap3xxx_gpmc_irqs[] = {
|
|
|
+ { .irq = 20 },
|
|
|
+ { .irq = -1 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_hwmod omap3xxx_gpmc_hwmod = {
|
|
|
+ .name = "gpmc",
|
|
|
+ .class = &omap3xxx_gpmc_hwmod_class,
|
|
|
+ .clkdm_name = "core_l3_clkdm",
|
|
|
+ .mpu_irqs = omap3xxx_gpmc_irqs,
|
|
|
+ .main_clk = "gpmc_fck",
|
|
|
+ /*
|
|
|
+ * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
|
|
|
+ * block. It is not being added due to any known bugs with
|
|
|
+ * resetting the GPMC IP block, but rather because any timings
|
|
|
+ * set by the bootloader are not being correctly programmed by
|
|
|
+ * the kernel from the board file or DT data.
|
|
|
+ * HWMOD_INIT_NO_RESET should be removed ASAP.
|
|
|
+ */
|
|
|
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET |
|
|
|
+ HWMOD_NO_IDLEST),
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* interfaces
|
|
|
*/
|
|
@@ -3320,6 +3363,15 @@ static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs[] = {
|
|
|
{ }
|
|
|
};
|
|
|
|
|
|
+static struct omap_hwmod_addr_space omap3xxx_gpmc_addrs[] = {
|
|
|
+ {
|
|
|
+ .pa_start = 0x6e000000,
|
|
|
+ .pa_end = 0x6e000fff,
|
|
|
+ .flags = ADDR_TYPE_RT
|
|
|
+ },
|
|
|
+ { }
|
|
|
+};
|
|
|
+
|
|
|
static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k = {
|
|
|
.master = &omap3xxx_l4_wkup_hwmod,
|
|
|
.slave = &omap3xxx_counter_32k_hwmod,
|
|
@@ -3429,6 +3481,14 @@ static struct omap_hwmod_ocp_if am35xx_l4_core__emac = {
|
|
|
.user = OCP_USER_MPU,
|
|
|
};
|
|
|
|
|
|
+static struct omap_hwmod_ocp_if omap3xxx_l3_main__gpmc = {
|
|
|
+ .master = &omap3xxx_l3_main_hwmod,
|
|
|
+ .slave = &omap3xxx_gpmc_hwmod,
|
|
|
+ .clk = "core_l3_ick",
|
|
|
+ .addr = omap3xxx_gpmc_addrs,
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
|
|
|
&omap3xxx_l3_main__l4_core,
|
|
|
&omap3xxx_l3_main__l4_per,
|
|
@@ -3474,6 +3534,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
|
|
|
&omap34xx_l4_core__mcspi3,
|
|
|
&omap34xx_l4_core__mcspi4,
|
|
|
&omap3xxx_l4_wkup__counter_32k,
|
|
|
+ &omap3xxx_l3_main__gpmc,
|
|
|
NULL,
|
|
|
};
|
|
|
|