Changeset 40619


Ignore:
Timestamp:
07/10/17 17:47:29 (5 years ago)
Author:
gost
Message:

fix

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/fb.h

    r40613 r40619  
    253253       
    254254#ifdef MIPSEL
     255unsigned long data_phys = 0;
     256data_phys = fix_screeninfo.smem_start;
    255257#ifdef CONFIG_ION
    256258        /* allocate accel memory here... its independent from the framebuffer */
     
    307309                {
    308310                        debug(444,"%dkB available for acceleration surfaces (via ION).", ACCEL_MEM_SIZE);
    309 
    310                         node = addfb(FB, devnr, var_screeninfo.xres, var_screeninfo.yres, var_screeninfo.bits_per_pixel / 8, fd, mmapfb, fix_screeninfo.smem_len, data_phys);
     311                       
     312                        node = addfb(FB, devnr, var_screeninfo.xres, var_screeninfo.yres, var_screeninfo.bits_per_pixel / 8, fd, mmapfb, fix_screeninfo.smem_len, fix_screeninfo.smem_start);
    311313                        skinfb = addfb(SKINFB, 0, getconfigint("skinfbwidth", NULL), getconfigint("skinfbheight", NULL), 4, share_data.fd, lfb, ACCEL_MEM_SIZE, phys_data.addr);
    312                         accelfb = addfb(ACCELFB, 0, (ACCEL_MEM_SIZE-(skinfb->width*skinfb->heidht*4)) / 4, 1, 4, share_data.fd, skinfb->fb + skinfb->varfbsize, ACCEL_MEM_SIZE, skinfb->data_phys + skinfb->varfbsize);
     314                        accelfb = addfb(ACCELFB, 0, (ACCEL_MEM_SIZE-(skinfb->width*skinfb->height*4)) / 4, 1, 4, share_data.fd, skinfb->fb + skinfb->varfbsize, ACCEL_MEM_SIZE, skinfb->data_phys + skinfb->varfbsize);
    313315                }
    314316                else
     
    337339        }
    338340#else
    339         unsigned long data_phys = 0;
    340341        lfb = (unsigned char*)mmap(0, fix_screeninfo.smem_len, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0);
    341342        if (!lfb)
     
    351352                return 0;
    352353        }
    353         data_phys = fix_screeninfo.smem_start;
    354354#endif 
    355355#ifndef CONFIG_ION
  • titan/titan/titan.c

    r40616 r40619  
    839839                        }
    840840                }
     841        }
    841842#endif 
    842843#else
    843                 status.usedirectfb = 0;
    844                 //SetMode();
    845 #endif
    846         }
     844        status.usedirectfb = 0;
     845        //SetMode();
     846#endif
     847       
    847848
    848849        //if(lcdskinfb == NULL) {
Note: See TracChangeset for help on using the changeset viewer.