int board_init(void) { DECLARE_GLOBAL_DATA_PTR; u32 reg; dm9000_pre_init(); /* set GPIO for Display Controller */ reg = readl(MIFPCON); reg &= ~(1 << 3); writel(reg, MIFPCON); reg = readl(SPCON); reg &= ~(3 << 0); writel(reg | 0x1, SPCON); writel(0xaaaaaaaa, GPICON); writel(0xaaaaaa, GPJCON); gd->bd->bi_arch_number = MACH_TYPE; gd->bd->bi_boot_params = (PHYS_SDRAM_1+0x100); #if 0 icache_enable(); dcache_enable(); #endif return 0; }
int board_init(void) { unsigned int tmp; DECLARE_GLOBAL_DATA_PTR; #if defined(CONFIG_A8388_V1) || defined(CONFIG_S9) || defined(CONFIG_A8388_V2) || defined(CONFIG_A9) //内部上拉串口 tmp = readl(GPA1PUD); tmp &= ~(0xf); tmp |= 0xa; writel(tmp,GPA1PUD); #ifndef CONFIG_AUTO_SDFUSE power_init_off(); #endif #endif /* CONFIG_A8388_V1 CONFIG_S9 CONFIG_A8388_V2*/ resume_system = check_resume_key(); sdfuse_system = check_sdfuse_key(); #ifdef CONFIG_DRIVER_SMC911X smc9115_pre_init(); #endif #ifdef CONFIG_DRIVER_DM9000 dm9000_pre_init(); #endif gd->bd->bi_arch_number = MACH_TYPE; gd->bd->bi_boot_params = (PHYS_SDRAM_1+0x100); return 0; }
static int __init init_amcore(void) { #if IS_ENABLED(CONFIG_DM9000) dm9000_pre_init(); #endif /* Add i2c RTC Dallas chip supprt */ i2c_register_board_info(0, amcore_i2c_info, ARRAY_SIZE(amcore_i2c_info)); platform_add_devices(amcore_devices, ARRAY_SIZE(amcore_devices)); return 0; }
int board_init(void) { DECLARE_GLOBAL_DATA_PTR; dm9000_pre_init(); gd->bd->bi_arch_number = MACH_TYPE; gd->bd->bi_boot_params = (PHYS_SDRAM_1+0x100); #if 0 icache_enable(); dcache_enable(); #endif return 0; }
int board_init(void) { DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_DRIVER_SMC911X smc9115_pre_init(); #endif #ifdef CONFIG_DRIVER_DM9000 dm9000_pre_init(); #endif gd->bd->bi_arch_number = MACH_TYPE; gd->bd->bi_boot_params = (PHYS_SDRAM_1+0x100); return 0; }
int board_init(void) { /* Set Initial global variables */ s5pc110_gpio = (struct s5pc110_gpio *)S5PC110_GPIO_BASE; pwm_pre_init(); #ifdef CONFIG_DRIVER_DM9000 dm9000_pre_init(); #endif gd->bd->bi_arch_number = CONFIG_MACH_TYPE; gd->bd->bi_boot_params = (PHYS_SDRAM_1+0x100); return 0; }