Ignore:
Timestamp:
Sep 18, 2010, 5:04:46 PM (14 years ago)
Author:
choichil
Message:

Platform with DMA and FB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/dsx/v1_1cluster_phys_dma/cluster.py

    r93 r95  
    4646                                                    wti_count = 4,
    4747                                                    irq_count = 4)
    48         dma = self.create_dma( addr = 0xd1200000, burst_size = 16)
     48        dma = self.create_dma( addr = 0xd1200000, burst_size = 64)
     49        fb  = self.create_fb( addr = 0xe2200000, width = 320,
     50                                                 height = 200,
     51                                                 subsampling = 422)
    4952
    5053        tty.irq[0] // xicu.hwi[0]
     
    5255            self.cpu[i].irq[0] // xicu.irq[i]
    5356        dma.irq // xicu.hwi[1]
     57       
    5458
    5559    def create_dma(self, addr, burst_size):
     
    6165        return dma
    6266
     67    def create_fb(self, addr, width, height, subsampling):
     68        name = 'fb%d'%self.cluster_no
     69        fb = self.pf.create('caba:vci_framebuffer', name, width = width,
     70                                                       height = height,
     71                                                       subsampling = subsampling)
     72        self.ringp.to_target.new() // fb.vci
     73        fb.addSegment(name, address = addr, size = width * height * 2, cacheable = False)
     74        return fb
    6375
    6476    def create_tty(self, addr, tty_count = 1):
Note: See TracChangeset for help on using the changeset viewer.