Ignore:
Timestamp:
Jul 17, 2012, 2:39:10 PM (12 years ago)
Author:
alain
Message:

Introducing support for FBDMA (Frame Buffer using DMA)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/kernel_init.c

    r167 r169  
    542542in_kinit void _kernel_peripherals_init()
    543543{
    544     // IOC peripheral initialisation
     544    /////////////////////
     545    // IOC peripheral
    545546    // we simply activate the IOC interrupts...
    546     unsigned int*       ioc_address = (unsigned int*)&seg_ioc_base;
    547 
    548     ioc_address[BLOCK_DEVICE_IRQ_ENABLE] = 1;
     547    if ( NB_IOC )
     548    {
     549        unsigned int*   ioc_address = (unsigned int*)&seg_ioc_base;
     550        ioc_address[BLOCK_DEVICE_IRQ_ENABLE] = 1;
     551    }
    549552   
     553    /////////////////////
     554    // FBDMA peripheral
     555    // we simply activate the DMA interrupts...
     556    if ( NB_DMAS )
     557    {
     558        unsigned int*   dma_address = (unsigned int*)&seg_dma_base;
     559        dma_address[DMA_IRQ_DISABLE] = 0;
     560    }
     561
     562    /////////////////////
    550563    // IOB peripheral
     564    // must be initialised in case of IOMMU
    551565    if ( GIET_IOMMU_ACTIVE )
    552566    {
     
    560574        // activate IOMMU
    561575        iob_address[IOB_IOMMU_ACTIVE] = 1;   
    562     }
     576    } 
    563577
    564578    _puts("\n[INIT] Peripherals initialisation completed at cycle ");
Note: See TracChangeset for help on using the changeset viewer.