diff options
author | Paul Walmsley <paul@pwsan.com> | 2008-10-06 08:49:17 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-10-06 08:49:17 -0400 |
commit | fd1dc87ded0f29c1ba1e8da62f03ab0d591d9bdd (patch) | |
tree | 97829327b6ebcd947f9a1c71a4bcb2933688bac7 /arch/arm/plat-omap/include/mach | |
parent | 2351872c44be50c27001bbfa91d6e14e3cee8b88 (diff) |
ARM: OMAP2: Fix sparse, checkpatch warnings fro GPMC code, use ioremap
Fix sparse, checkpatch warnings fro GPMC code.
Also change to use ioremap, and add missing function prototypes
to gpmc.h.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/mach')
-rw-r--r-- | arch/arm/plat-omap/include/mach/gpmc.h | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/omap24xx.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/mach/gpmc.h b/arch/arm/plat-omap/include/mach/gpmc.h index 6a8e07ffc2d0..4258e00c6577 100644 --- a/arch/arm/plat-omap/include/mach/gpmc.h +++ b/arch/arm/plat-omap/include/mach/gpmc.h | |||
@@ -11,6 +11,9 @@ | |||
11 | #ifndef __OMAP2_GPMC_H | 11 | #ifndef __OMAP2_GPMC_H |
12 | #define __OMAP2_GPMC_H | 12 | #define __OMAP2_GPMC_H |
13 | 13 | ||
14 | /* Maximum Number of Chip Selects */ | ||
15 | #define GPMC_CS_NUM 8 | ||
16 | |||
14 | #define GPMC_CS_CONFIG1 0x00 | 17 | #define GPMC_CS_CONFIG1 0x00 |
15 | #define GPMC_CS_CONFIG2 0x04 | 18 | #define GPMC_CS_CONFIG2 0x04 |
16 | #define GPMC_CS_CONFIG3 0x08 | 19 | #define GPMC_CS_CONFIG3 0x08 |
@@ -81,6 +84,7 @@ struct gpmc_timings { | |||
81 | }; | 84 | }; |
82 | 85 | ||
83 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); | 86 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); |
87 | extern unsigned int gpmc_ticks_to_ns(unsigned int ticks); | ||
84 | extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns); | 88 | extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns); |
85 | extern unsigned long gpmc_get_fclk_period(void); | 89 | extern unsigned long gpmc_get_fclk_period(void); |
86 | 90 | ||
@@ -92,5 +96,6 @@ extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); | |||
92 | extern void gpmc_cs_free(int cs); | 96 | extern void gpmc_cs_free(int cs); |
93 | extern int gpmc_cs_set_reserved(int cs, int reserved); | 97 | extern int gpmc_cs_set_reserved(int cs, int reserved); |
94 | extern int gpmc_cs_reserved(int cs); | 98 | extern int gpmc_cs_reserved(int cs); |
99 | extern void gpmc_init(void); | ||
95 | 100 | ||
96 | #endif | 101 | #endif |
diff --git a/arch/arm/plat-omap/include/mach/omap24xx.h b/arch/arm/plat-omap/include/mach/omap24xx.h index bb8319d66e9f..556f0eb4d55c 100644 --- a/arch/arm/plat-omap/include/mach/omap24xx.h +++ b/arch/arm/plat-omap/include/mach/omap24xx.h | |||
@@ -48,6 +48,7 @@ | |||
48 | #define OMAP2420_PRM_BASE OMAP2420_CM_BASE | 48 | #define OMAP2420_PRM_BASE OMAP2420_CM_BASE |
49 | #define OMAP2420_SDRC_BASE (L3_24XX_BASE + 0x9000) | 49 | #define OMAP2420_SDRC_BASE (L3_24XX_BASE + 0x9000) |
50 | #define OMAP2420_SMS_BASE 0x68008000 | 50 | #define OMAP2420_SMS_BASE 0x68008000 |
51 | #define OMAP2420_GPMC_BASE 0x6800a000 | ||
51 | 52 | ||
52 | #define OMAP2430_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) | 53 | #define OMAP2430_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) |
53 | #define OMAP2430_PRCM_BASE (L4_WK_243X_BASE + 0x6000) | 54 | #define OMAP2430_PRCM_BASE (L4_WK_243X_BASE + 0x6000) |