X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Fspreadtrum%2Ftizen_tm1%2Fopenphone.c;h=2a92d488be74fd3e6a119717ee3db289c73784f0;hb=873f878d0a0bf77bc599c7c857eb78bf9a811992;hp=5dfcb0aa35240fa06e57dc3adb2a9fd6b68af591;hpb=2b427c722a66bd4766e19a897c1ce81b184d41e8;p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git diff --git a/board/spreadtrum/tizen_tm1/openphone.c b/board/spreadtrum/tizen_tm1/openphone.c index 5dfcb0a..2a92d48 100644 --- a/board/spreadtrum/tizen_tm1/openphone.c +++ b/board/spreadtrum/tizen_tm1/openphone.c @@ -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,