static int setup_openiboot() { arm_setup(); mmu_setup(); tasks_setup(); setup_devices(); LeaveCriticalSection(); clock_set_sdiv(0); aes_setup(); nor_setup(); images_setup(); nvram_setup(); lcd_setup(); framebuffer_setup(); audiohw_init(); camera_setup(); return 0; }
void pcm_play_dma_init(void) { freq_ent = pcm_freq_parms[pcm_fsel]; AUDIOGLOB = AUDIOGLOB_DEFPARM; DIVR0 = 54; /* DMA0 is mapped into vector 54 in system.c */ and_l(0xffffff00, &DMAROUTE); or_l(DMA0_REQ_AUDIO_1, &DMAROUTE); DMACONFIG = 1; /* DMA0Req = PDOR3, DMA1Req = PDIR2 */ BCR0 = 0; /* No bytes waiting */ ICR6 = (6 << 2); /* Enable interrupt at level 6, priority 0 */ /* Setup Coldfire I2S before initializing hardware or changing other settings. */ or_l(IIS_FIFO_RESET, &IIS_PLAY); IIS_PLAY = IIS_PLAY_DEFPARM | IIS_FIFO_RESET; audio_set_output_source(AUDIO_SRC_PLAYBACK); /* Initialize default register values. */ audiohw_init(); audio_input_mux(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); audiohw_set_frequency(pcm_fsel); coldfire_set_pllcr_audio_bits(PLLCR_SET_AUDIO_BITS_DEFPARM); #if defined(HAVE_SPDIF_REC) || defined(HAVE_SPDIF_OUT) spdif_init(); #endif } /* pcm_play_dma_init */
static int setup_openiboot() { arm_setup(); mmu_setup(); tasks_setup(); setup_devices(); LeaveCriticalSection(); #ifndef CONFIG_IPHONE_4 clock_set_sdiv(0); aes_setup(); nor_setup(); syscfg_setup(); images_setup(); nvram_setup(); lcd_setup(); framebuffer_setup(); audiohw_init(); #endif isMultitouchLoaded = 0; return 0; }
void pcm_play_dma_init(void) { IO_CLK_O1DIV = 3; /* Set GIO25 to CLKOUT1A */ IO_GIO_FSEL2 |= 3; sleep(5); audiohw_init(); audiohw_set_frequency(HW_FREQ_DEFAULT); /* init DSP */ // dsp_init(); }
void platform_init() { arm_setup(); mmu_setup(); tasks_setup(); // Basic prerequisites for everything else miu_setup(); power_setup(); clock_setup(); // Need interrupts for everything afterwards interrupt_setup(); gpio_setup(); // For scheduling/sleeping niceties timer_setup(); event_setup(); wdt_setup(); // Other devices uart_setup(); i2c_setup(); dma_setup(); spi_setup(); LeaveCriticalSection(); clock_set_sdiv(0); aes_setup(); lcd_setup(); framebuffer_setup(); audiohw_init(); framebuffer_setdisplaytext(TRUE); }