1. 15 8月, 2008 1 次提交
  2. 06 8月, 2008 1 次提交
  3. 25 7月, 2008 1 次提交
  4. 09 7月, 2008 1 次提交
  5. 05 7月, 2008 1 次提交
    • A
      fsl_diu_fb: fix build with CONFIG_PM=y, plus fix some warnings · 05946bce
      Anton Vorontsov 提交于
      This patch fixes following build error when CONFIG_PM is set.
      
        CC      drivers/video/fsl-diu-fb.o
      drivers/video/fsl-diu-fb.c: In function 'fsl_diu_suspend':
      drivers/video/fsl-diu-fb.c:1327: error: 'ofdev' undeclared (first use in this function)
      drivers/video/fsl-diu-fb.c:1327: error: (Each undeclared identifier is reported only once
      drivers/video/fsl-diu-fb.c:1327: error: for each function it appears in.)
      drivers/video/fsl-diu-fb.c: In function 'fsl_diu_resume':
      drivers/video/fsl-diu-fb.c:1337: error: 'ofdev' undeclared (first use in this function)
      
      While I'm at it, also fix this warning:
      
      drivers/video/fsl-diu-fb.c: In function 'fsl_diu_alloc':
      drivers/video/fsl-diu-fb.c:314: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'phys_addr_t'
      
      And these section mismatches:
      
      ..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb()
      ..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb()
      ..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db
      ..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db
      ..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb()
      ..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb()
      
      Also, some sparse fixes: make two functions static, and use NULL where
      appropriate. There are still a lot of sparse warnings, mainly wrt absence
      of __iomem annotations, but some will require ugly __force stuff. I'll leave
      them for now, since proper fix would be not that trivial as few one-liners
      below.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Cc: Timur Tabi <timur@freescale.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: York Sun <yorksun@freescale.com>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      05946bce
  6. 12 6月, 2008 1 次提交
  7. 28 4月, 2008 1 次提交
    • Y
      fbdev: powerpc: driver for Freescale 8610 and 5121 DIU · 9b53a9e2
      York Sun 提交于
      The following features are supported:
      plane 0 works as a regular frame buffer, can be accessed by /dev/fb0
      plane 1 has two AOIs (area of interest), can be accessed by /dev/fb1 and /dev/fb2
      plane 2 has two AOIs, can be accessed by /dev/fb3 and /dev/fb4
      Special ioctls support AOIs
      
      All /dev/fb* can be used as regular frame buffer devices, except hardware
      change can only be made through /dev/fb0.  Changing pixel clock has no effect
      on other fbs.
      
      Limitation of usage of AOIs:
      AOIs on the same plane can not be horizonally overlapped
      AOIs have horizonal order, i.e. AOI0 should be always on top of AOI1
      AOIs can not beyond phisical display area. Application should check AOI geometry
      before changing physical resolution on /dev/fb0
      
      required command line parameters to preallocate memory for frame buffer diufb.
      
      optional command line parameters to set modes and monitor
      video=fslfb:[resolution][,bpp][,monitor]
      Syntax:
      
      Resolution
      xres x yres-bpp@refresh_rate, the -bpp and @refresh_rate are optional
      eg, 1024x768, 1280x1024, 1280x1024-32, 1280x1024@60, 1280x1024-32@60, 1280x480-32@60
      
      Bpp
      bpp=32, bpp=24, or bpp=16
      
      Monitor
      monitor=0, monitor=1, monitor=2
      0 is DVI
      1 is Single link LVDS
      2 is Double link LVDS
      
      Note: switching monitor is a board feather, not DIU feather. MPC8610HPCD has three
      monitor ports to swtich to. MPC5121ADS doesn't have additional monitor port. So switching
      monirot port for MPC5121ADS has no effect.
      
      If compiled as a module, it takes pamameters mode, bpp, monitor with the same syntax above.
      Signed-off-by: NYork Sun <yorksun@freescale.com>
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9b53a9e2