aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-02-12 14:22:17 -0500
committerJon Hunter <jon-hunter@ti.com>2013-04-01 15:53:35 -0400
commit3fc089e7c5ff914b2660a6e91a8d032498c1e301 (patch)
tree52fd19c75124442a7480a717cf4bee8b0c929a6d /arch/arm/mach-omap2
parentc9fb80942444e57c75fb26c27fd77961f9ba2570 (diff)
ARM: omap2: gpmc: Mark local scoped functions static
This patch marks a bunch of functions that are local to gpmc.c file only as static. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Jon Hunter <jon-hunter@ti.com> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/gpmc.c14
-rw-r--r--arch/arm/mach-omap2/gpmc.h7
2 files changed, 7 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 98c5d413209e..0837621788ab 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -181,7 +181,7 @@ void gpmc_cs_write_reg(int cs, int idx, u32 val)
181 __raw_writel(val, reg_addr); 181 __raw_writel(val, reg_addr);
182} 182}
183 183
184u32 gpmc_cs_read_reg(int cs, int idx) 184static u32 gpmc_cs_read_reg(int cs, int idx)
185{ 185{
186 void __iomem *reg_addr; 186 void __iomem *reg_addr;
187 187
@@ -190,7 +190,7 @@ u32 gpmc_cs_read_reg(int cs, int idx)
190} 190}
191 191
192/* TODO: Add support for gpmc_fck to clock framework and use it */ 192/* TODO: Add support for gpmc_fck to clock framework and use it */
193unsigned long gpmc_get_fclk_period(void) 193static unsigned long gpmc_get_fclk_period(void)
194{ 194{
195 unsigned long rate = clk_get_rate(gpmc_l3_clk); 195 unsigned long rate = clk_get_rate(gpmc_l3_clk);
196 196
@@ -205,7 +205,7 @@ unsigned long gpmc_get_fclk_period(void)
205 return rate; 205 return rate;
206} 206}
207 207
208unsigned int gpmc_ns_to_ticks(unsigned int time_ns) 208static unsigned int gpmc_ns_to_ticks(unsigned int time_ns)
209{ 209{
210 unsigned long tick_ps; 210 unsigned long tick_ps;
211 211
@@ -215,7 +215,7 @@ unsigned int gpmc_ns_to_ticks(unsigned int time_ns)
215 return (time_ns * 1000 + tick_ps - 1) / tick_ps; 215 return (time_ns * 1000 + tick_ps - 1) / tick_ps;
216} 216}
217 217
218unsigned int gpmc_ps_to_ticks(unsigned int time_ps) 218static unsigned int gpmc_ps_to_ticks(unsigned int time_ps)
219{ 219{
220 unsigned long tick_ps; 220 unsigned long tick_ps;
221 221
@@ -230,7 +230,7 @@ unsigned int gpmc_ticks_to_ns(unsigned int ticks)
230 return ticks * gpmc_get_fclk_period() / 1000; 230 return ticks * gpmc_get_fclk_period() / 1000;
231} 231}
232 232
233unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns) 233static unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns)
234{ 234{
235 unsigned long ticks = gpmc_ns_to_ticks(time_ns); 235 unsigned long ticks = gpmc_ns_to_ticks(time_ns);
236 236
@@ -448,7 +448,7 @@ static int gpmc_cs_mem_enabled(int cs)
448 return l & GPMC_CONFIG7_CSVALID; 448 return l & GPMC_CONFIG7_CSVALID;
449} 449}
450 450
451int gpmc_cs_set_reserved(int cs, int reserved) 451static int gpmc_cs_set_reserved(int cs, int reserved)
452{ 452{
453 if (cs > GPMC_CS_NUM) 453 if (cs > GPMC_CS_NUM)
454 return -ENODEV; 454 return -ENODEV;
@@ -459,7 +459,7 @@ int gpmc_cs_set_reserved(int cs, int reserved)
459 return 0; 459 return 0;
460} 460}
461 461
462int gpmc_cs_reserved(int cs) 462static int gpmc_cs_reserved(int cs)
463{ 463{
464 if (cs > GPMC_CS_NUM) 464 if (cs > GPMC_CS_NUM)
465 return -ENODEV; 465 return -ENODEV;
diff --git a/arch/arm/mach-omap2/gpmc.h b/arch/arm/mach-omap2/gpmc.h
index f79cbde76738..697ff4225d5d 100644
--- a/arch/arm/mach-omap2/gpmc.h
+++ b/arch/arm/mach-omap2/gpmc.h
@@ -198,20 +198,13 @@ extern int gpmc_calc_timings(struct gpmc_timings *gpmc_t,
198extern void gpmc_update_nand_reg(struct gpmc_nand_regs *reg, int cs); 198extern void gpmc_update_nand_reg(struct gpmc_nand_regs *reg, int cs);
199extern int gpmc_get_client_irq(unsigned irq_config); 199extern int gpmc_get_client_irq(unsigned irq_config);
200 200
201extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);
202extern unsigned int gpmc_ps_to_ticks(unsigned int time_ps);
203extern unsigned int gpmc_ticks_to_ns(unsigned int ticks); 201extern unsigned int gpmc_ticks_to_ns(unsigned int ticks);
204extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns);
205extern unsigned long gpmc_get_fclk_period(void);
206 202
207extern void gpmc_cs_write_reg(int cs, int idx, u32 val); 203extern void gpmc_cs_write_reg(int cs, int idx, u32 val);
208extern u32 gpmc_cs_read_reg(int cs, int idx);
209extern int gpmc_calc_divider(unsigned int sync_clk); 204extern int gpmc_calc_divider(unsigned int sync_clk);
210extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t); 205extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t);
211extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); 206extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base);
212extern void gpmc_cs_free(int cs); 207extern void gpmc_cs_free(int cs);
213extern int gpmc_cs_set_reserved(int cs, int reserved);
214extern int gpmc_cs_reserved(int cs);
215extern void omap3_gpmc_save_context(void); 208extern void omap3_gpmc_save_context(void);
216extern void omap3_gpmc_restore_context(void); 209extern void omap3_gpmc_restore_context(void);
217extern int gpmc_cs_configure(int cs, int cmd, int wval); 210extern int gpmc_cs_configure(int cs, int cmd, int wval);