]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Add fields to GPMC for OMAP3
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 6 Aug 2008 06:56:51 +0000 (09:56 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Aug 2008 08:35:28 +0000 (11:35 +0300)
Add fields wr_access and wr_data_mux_bus.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c
include/asm-arm/arch-omap/gpmc.h

index 5282c6bdfe7b5269efa259ca8a83df5067310c08..11f19ff7225beb4525ef2ff2ef4e476547785f97 100644 (file)
@@ -220,6 +220,11 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t)
 
        GPMC_SET_ONE(GPMC_CS_CONFIG5, 24, 27, page_burst_access);
 
+       if (cpu_is_omap34xx()) {
+               GPMC_SET_ONE(GPMC_CS_CONFIG6, 16, 19, wr_data_mux_bus);
+               GPMC_SET_ONE(GPMC_CS_CONFIG6, 24, 28, wr_access);
+       }
+
        /* caller is expected to have initialized CONFIG1 to cover
         * at least sync vs async
         */
index a3df76a6b0590e2c9cca4ad04427138074d63e8f..921b16532ff55c4e28301cb5bcce975de546a70b 100644 (file)
@@ -84,6 +84,10 @@ struct gpmc_timings {
        u16 access;             /* Start-cycle to first data valid delay */
        u16 rd_cycle;           /* Total read cycle time */
        u16 wr_cycle;           /* Total write cycle time */
+
+       /* The following are only on OMAP3430 */
+       u16 wr_access;          /* WRACCESSTIME */
+       u16 wr_data_mux_bus;    /* WRDATAONADMUXBUS */
 };
 
 extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);