/* * Out of reset, the low-level assembly code calls this routine to * initialize the mcf5206e for this board. A temporary stack has been * setup in the internal SRAM, and the stack pointer will be changed * to point to DRAM once this routine returns. */ void __initialize_hardware(void) { /******************************************************* * Out of reset, the low-level assembly code calls this * routine to initialize the MCF52221 modules for the * M522223EVB board. ********************************************************/ asm { /* Initialize IPSBAR */ move.l #__IPSBAR,d0 andi.l #0xC0000000,d0 // need to mask add.l #0x1,d0 move.l d0,0x40000000 /* Initialize FLASHBAR */ move.l #__FLASHBAR,d0 andi.l #0xFFF80000,d0 // need to mask add.l #0x61,d0 movec d0,FLASHBAR } /* Set real time clock freq */ MCF_CLOCK_RTCDR = 48000000; pll_init(); scm_init(); initialize_exceptions(); }
static void __init tl7689_pad_ref_init(void) { common_init(); #if 0 ddr_pm_init(); scm_init(); #endif TL7689_PINMUX_INIT(pad_refboard); #if 0 bt_init(); #endif #ifdef CONFIG_BCMDHD extern void wifi_power_init(int); wifi_power_init(WIFI_REG_ON_GPIO); #endif #ifdef CONFIG_SND_SOC_ALC5631 rt5631_gpio_ref_init(); #endif soc_plat_register_devices(plat_devs, ARRAY_SIZE(plat_devs)); ext_i2c_register_devices(extend_i2c_devs,ARRAY_SIZE(extend_i2c_devs)); //tl7689_system_pm_init(); printk("on2_base = 0x%x, on2_size = 0x%x\n lcd_base = 0x%x, \ lcd_size = 0x%x\n gpu_size = 0x%x, ump_size = 0x%x\n",\ nusmart_on2_base(), nusmart_on2_len(), nusmart_lcd_base(), nusmart_lcd_len(), nusmart_mali_len(), nusmart_mali_ump_len()); }
void __initialize_hardware(void) { /******************************************************* * Out of reset, the low-level assembly code calls this * routine to initialize the MCF52259 modules. ********************************************************/ asm { /* Initialize IPSBAR */ move.l #__IPSBAR,d0 andi.l #0xC0000000,d0 // need to mask add.l #0x1,d0 move.l d0,0x40000000 /* Initialize FLASHBAR */ move.l #__FLASHBAR,d0 andi.l #0xFFF80000,d0 // need to mask add.l #0x61,d0 movec d0,FLASHBAR } pll_init(); scm_init(); initialize_exceptions(); }
static void __init ns2816_yc_init(void) { common_init(); ddr_pm_init(); scm_init(); /*pinmux init *for emmc */ //pinmux_init(2, 2); soc_plat_register_devices(plat_devs, ARRAY_SIZE(plat_devs)); soc_amba_register_devices(amba_devs, ARRAY_SIZE(amba_devs)); ext_i2c_register_devices(extend_i2c_devs,ARRAY_SIZE(extend_i2c_devs)); ns2816_system_pm_init(); printk("on2_base =0x%x, on2_size = 0x%x \nlcdc base = 0x%x,lcd_size = 0x%x \npmem_base = 0x%x, pmem_size = 0x%x \ngpu_size =0x%x, ump_size = 0x%x\n", nusmart_on2_base(), nusmart_on2_len(), nusmart_lcd_base(), nusmart_lcd_len(), nusmart_pmem_base(), nusmart_pmem_len(), nusmart_mali_len(), nusmart_mali_ump_len()); }
static void __init ns115_pad_prototype_init(void) { common_init(); #if 0 ddr_pm_init(); scm_init(); #endif NS115_PINMUX_INIT(pad_prototypeboard); bt_init(); /*set bt_fm_switch to high and get fm in from BT module */ bt_fm_switch(1); #ifdef CONFIG_BCMDHD extern void wifi_power_init(int); wifi_power_init(WIFI_REG_ON_GPIO); #endif #ifdef CONFIG_SND_SOC_ALC5631 rt5631_gpio_ref_init(); #endif soc_plat_register_devices(plat_devs, ARRAY_SIZE(plat_devs)); ext_i2c_register_devices(extend_i2c_devs, ARRAY_SIZE(extend_i2c_devs)); ns115_system_pm_init(); printk("on2_base = 0x%x, on2_size = 0x%x\n lcd_base = 0x%x, \ lcd_size = 0x%x\n gpu_size = 0x%x, ump_size = 0x%x\n", nusmart_on2_base(), nusmart_on2_len(), nusmart_lcd_base(), nusmart_lcd_len(), nusmart_mali_len(), nusmart_mali_ump_len()); }
void platform_early_init(void) { board_init(); platform_clock_init(); qgic_init(); qtimer_init(); scm_init(); }
asmlinkage void __init sysinit(void) { sys_clk_khz = clock_pll(0, 0); sys_clk_mhz = sys_clk_khz/1000; wtm_init(); scm_init(); gpio_init(); fbcs_init(); sdramc_init(); }
void lib_init() { clock_allocator = fixed_allocator_make(sizeof(struct Clock_), MAX_NUM_CLOCKS, "clock_allocator"); image_resource_allocator = fixed_allocator_make(sizeof(struct ImageResource_), MAX_NUM_IMAGES, "image_resource_allocator"); frame_allocator = stack_allocator_make(1024 * 1024, "frame_allocator"); command_allocator = fixed_allocator_make(sizeof(struct Command_), MAX_NUM_COMMANDS, "command_allocator"); render_queue = queue_make(); render_barrier = threadbarrier_make(2); native_init(); renderer_running = 1; pthread_create(&renderer_thread, NULL, renderer_exec, NULL); // let the renderer finish init renderer_enqueue_sync(renderer_init, NULL); // kick off the audio system audio_init(); scm_init(); }
void __initialize_hardware(void) { /******************************************************* * Out of reset, the low-level assembly code calls this * routine to initialize the MCF52233 modules for the * M52233DEMO board. ********************************************************/ asm { /* Initialize IPSBAR */ move.l #__IPSBAR,d0 andi.l #0xC0000000,d0 // need to mask add.l #0x1,d0 move.l d0,0x40000000 /* Initialize FLASHBAR */ move.l #__FLASHBAR,d0 andi.l #0xFFF80000,d0 // need to mask add.l #0x61,d0 movec d0,FLASHBAR } /* * Allow interrupts from ABORT, SW1, SW2, and SW3 (IRQ[1,4,7,11]) */ /* Enable IRQ signals on the port */ MCF_GPIO_PNQPAR = 0 | MCF_GPIO_PNQPAR_IRQ1_IRQ1 | MCF_GPIO_PNQPAR_IRQ4_IRQ4 | MCF_GPIO_PNQPAR_IRQ7_IRQ7; MCF_GPIO_PGPPAR = 0 | MCF_GPIO_PGPPAR_IRQ11_IRQ11; /* Set EPORT to look for rising edges */ MCF_EPORT0_EPPAR = 0 | MCF_EPORT_EPPAR_EPPA1_RISING | MCF_EPORT_EPPAR_EPPA4_RISING | MCF_EPORT_EPPAR_EPPA7_RISING; MCF_EPORT1_EPPAR = 0 | MCF_EPORT_EPPAR_EPPA11_RISING; /* Clear any currently triggered events on the EPORT */ MCF_EPORT0_EPIER = 0 | MCF_EPORT_EPIER_EPIE1 | MCF_EPORT_EPIER_EPIE4 | MCF_EPORT_EPIER_EPIE7; MCF_EPORT1_EPIER = 0 | MCF_EPORT_EPIER_EPIE11; /* Enable interrupts in the interrupt controller */ MCF_INTC0_IMRL &= ~(0 | MCF_INTC_IMRL_INT_MASK1 | MCF_INTC_IMRL_INT_MASK4 | MCF_INTC_IMRL_INT_MASK7 | MCF_INTC_IMRL_MASKALL); MCF_INTC1_IMRH &= ~(0 | MCF_INTC_IMRH_INT_MASK35); MCF_INTC1_ICR35 = MCF_INTC_ICR_IL(4); MCF_GPIO_PDDPAR = 0x0F; /* Set real time clock freq */ MCF_CLOCK_RTCDR = 25000000; /* Set GPIO for UART0 */ MCF_GPIO_PUAPAR = 0 | MCF_GPIO_PUAPAR_URXD0_URXD0 | MCF_GPIO_PUAPAR_UTXD0_UTXD0; wtm_init(); pll_init(); scm_init(); initialize_exceptions(); }