@@ -45,6 +45,8 @@ extern void sam9_smc_configure(int id, int cs, struct sam9_smc_config *config);
extern void sam9_smc_read(int id, int cs, struct sam9_smc_config *config);
extern void sam9_smc_read_mode(int id, int cs, struct sam9_smc_config *config);
extern void sam9_smc_write_mode(int id, int cs, struct sam9_smc_config *config);
+extern void sam9_smc_cs_read(void __iomem *, struct sam9_smc_config *config);
+extern void sam9_smc_cs_configure(void __iomem *, struct sam9_smc_config *cfg);
#endif
#define AT91_SMC_SETUP 0x00 /* Setup Register for CS n */
@@ -37,7 +37,7 @@ void sam9_smc_write_mode(int id, int cs,
sam9_smc_cs_write_mode(AT91_SMC_CS(id, cs), config);
}
-static void sam9_smc_cs_configure(void __iomem *base,
+void sam9_smc_cs_configure(void __iomem *base,
struct sam9_smc_config *config)
{
@@ -85,7 +85,7 @@ void sam9_smc_read_mode(int id, int cs,
sam9_smc_cs_read_mode(AT91_SMC_CS(id, cs), config);
}
-static void sam9_smc_cs_read(void __iomem *base,
+void sam9_smc_cs_read(void __iomem *base,
struct sam9_smc_config *config)
{
u32 val;
This patch makes sam9_smc_cs_read and sam9_smc_cs_configure available to the rest of the kernel (though not to modules). Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com> --- arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 ++ arch/arm/mach-at91/sam9_smc.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)