board: tizen_tm1: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / board / spreadtrum / tizen_tm1 / openphone.c
index 5dfcb0a..2a92d48 100644 (file)
@@ -19,10 +19,18 @@ extern void ADI_init (void);
 extern int LDO_Init(void);
 extern void ADC_Init(void);
 extern int sound_init(void);
+extern void misc_init(void);
+extern int pin_init(void);
+extern void sprd_eic_init(void);
+extern void init_ldo_sleep_gr(void);
+extern int sprd_gpio_request(struct gpio_chip *chip, unsigned offset);
+extern int sprd_gpio_direction_input(struct gpio_chip *chip, unsigned offset);
+extern int sprd_gpio_get(struct gpio_chip *chip, unsigned offset);
+extern void sprd_gpio_free(struct gpio_chip *chip, unsigned offset);
 
 #ifdef CONFIG_GENERIC_MMC
 int mv_sdh_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks);
-int mmc_sdcard_init();
+int mmc_sdcard_init(void);
 
 int board_mmc_init(bd_t *bd)
 {
@@ -39,7 +47,7 @@ int board_mmc_init(bd_t *bd)
 extern struct eic_gpio_resource sprd_gpio_resource[];
 
 /*enable aon timer2 for udelay functions*/
-void aon_26M_timer2_enable()
+void aon_26M_timer2_enable(void)
 {
        REG32(REG_AON_APB_APB_EB0) |= BIT_AON_TMR_EB;
 }
@@ -64,7 +72,16 @@ int get_hw_rev(void)
        return hw_revision;
 }
 
-int board_init()
+void check_smpl(void)
+{
+#ifdef CONFIG_SMPL_MODE
+        if(is_real_battery() == 0){
+                sci_adi_write_fast(ANA_REG_GLB_SMPL_CTRL0,0x0,1);
+        }
+#endif
+}
+
+int board_init(void)
 {
        gd->bd->bi_arch_number = 0x7df;
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x02000100;
@@ -88,15 +105,6 @@ int board_init()
        return 0;
 }
 
-void check_smpl(void)
-{
-#ifdef CONFIG_SMPL_MODE
-        if(is_real_battery() == 0){
-                sci_adi_write_fast(ANA_REG_GLB_SMPL_CTRL0,0x0,1);
-        }
-#endif
-}
-
 int dram_init(void)
 {
        gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,