1. 24 1月, 2013 1 次提交
  2. 04 1月, 2013 1 次提交
    • G
      Drivers: video: remove __dev* attributes. · 48c68c4f
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      48c68c4f
  3. 09 3月, 2012 1 次提交
    • F
      viafb: modetable conversion · 9864ca20
      Florian Tobias Schandinat 提交于
      This patch converts the modetables used in viafb to
      - remove the strange thing that sync_end and blanking_end contained
        the length and not the absolute value
      - remove hundreds of useless defines
      - use fb_videomode and not our own definition so modes defined in
        the subsystem and received via EDID are compatible with ours
      
      As the modes are now stored in a flat structure and no longer in a
      tree like thing the lookup time was increased but as it is a rare
      event anyway it shouldn't matter. Otherwise the behaviour should be
      the same as before.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      9864ca20
  4. 04 3月, 2012 1 次提交
  5. 11 2月, 2012 1 次提交
  6. 07 8月, 2011 4 次提交
    • F
      viafb: get rid of the remaining modetable structure assumptions · 5dd72f12
      Florian Tobias Schandinat 提交于
      This patch removes the remaining places where assumptions about the
      structure of the modetable were made. Aside from some places where
      assumptions are made that certain modes are in the modetable the
      only code dealing with the modetable and not just a single mode is
      in viamode. This will allow chaniging the modetable and use other
      sources for videomodes like the subsystem or EDID.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      5dd72f12
    • F
      viafb: use information in var for modesetting · ebb29fb4
      Florian Tobias Schandinat 提交于
      This patch starts to use the information in var for modesetting for
      CRT and DVI devices. This is the right thing as it allows us to use
      more generic modes than the ones predefined by VIA. We do not yet
      allow more generic modes as check_var still limits them to the
      predefined ones but with this patch applied it would be really easy
      to do so. A problem was VIAs SAMM mode as it has 2 different modes
      but just one frame buffer device. This is solved by creating a
      pseudo var which contains enough information to use it for
      modesetting. Hopefully one day we can use information in var for all
      modes that do not involve hardware scaling.
      Well I'd like to say that the chance of regressions is low but it is
      quite likely that the behaviour in some cases changed especially
      when SAMM is involved. I hope we made it better than before in
      particular the DVI frequency check was probably broken before and
      hopefully works better now.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      ebb29fb4
    • F
      viafb: eliminate viafb_get_pixclock · 42edcb16
      Florian Tobias Schandinat 提交于
      As there is only one user we can just insert the formula where
      needed. Avoids one lookup in the modetable and
      viafb_fill_var_timing_info does no longer depend on the modetable.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      42edcb16
    • F
      viafb: add new funcions to select a single mode · 94715ba9
      Florian Tobias Schandinat 提交于
      This patch introduces 2 new functions for selecting a single mode
      based on hres, vres and refresh rate and changes some uses to use
      those. The advantage is that it is less error prone than doing the
      selection based on refresh rate everywhere and allows replacing the
      modetable structure. This includes a little change that users may
      notice: If a refresh rate was given as module parameters but does
      not exist in the modetable prior to this patch a refresh rate of 60
      was assumed and after this patch the closest supported refresh rate
      to the one provided by the user is used.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      94715ba9
  7. 05 8月, 2011 2 次提交
  8. 27 3月, 2011 1 次提交
  9. 24 3月, 2011 1 次提交
  10. 23 3月, 2011 2 次提交
  11. 17 3月, 2011 1 次提交
  12. 12 3月, 2011 1 次提交
  13. 24 10月, 2010 1 次提交
    • F
      viafb: add initial VX900 support · 51f4332b
      Florian Tobias Schandinat 提交于
      This patch adds basic support for the new VX900 IGP. Almost everything
      that was implemented for other IGPs is expected to work also on VX900
      after this patch. The only known issue is that on the CRT output mode
      setting does not always work.
      It is clear that the possibility for regressions is zero.
      
      A big thanks to VIA Technologies for making this possible and
      supporting this work.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      Cc: Jonathan Corbet <corbet@lwn.net>
      51f4332b
  14. 24 9月, 2010 7 次提交
    • F
      viafb: rename output devices · a2aa9f9f
      Florian Tobias Schandinat 提交于
      Now it looks like we finally know enough about the output devices to give
      them proper names. As VIA_96 is often referred to as DVP0 rename it to
      VIA_DVP0. As VIA_6C and VIA_93 seem to exist only on CLE266 and "replace"
      DVP0 and DVP1 there rename them to VIA_LDVP0 and VIA_LDVP1 (L as legacy).
      The proc names were changed accordingly which should be harmless as they
      were just introduced and not beyond RFC state.
      This patch should make things a bit more comfortable and less scary.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Acked-by: NJonathan Corbet <corbet@lwn.net>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      a2aa9f9f
    • F
      viafb: add function to change sync polarity per device · 7f0e153e
      Florian Tobias Schandinat 提交于
      At the moment only the sync polarity for CRT is handled but there are
      also bits for controlling the sync polarity for other output devices.
      Add a function to change those similar to the other output device
      functions.
      There is no runtime change yet as the code still handles only CRT.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      7f0e153e
    • F
      viafb: introduce per output device power management · 6f9422d4
      Florian Tobias Schandinat 提交于
      This patch moves common parts of dvi.c, lcd.c and vt1636.c to hw.c to
      start a per output device power management. There should be no runtime
      changes aside that this patch enables the proc interface to enable/disable
      devices when needed which greatly increases the chances that changes to
      the output device configuration will work. However the power management is
      not yet complete so it might fail on some configurations. As this area is
      quite complex and touches undocumented things there is a slight chance of
      regressions.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      6f9422d4
    • F
      viafb: add interface for output device configuration · 2a918392
      Florian Tobias Schandinat 提交于
      This patch extends the proc entry to contain a possibility to view and
      change the output devices for each IGA. This is useful for debugging
      output problems as it provides a reliable way to query which low level
      devices are active after VIAs output device configuration nightmare
      happended. It's as well suitable for daily use as one can change the
      output configuration on the fly for example to connect a projector.
      At the moment it's still unstable. The reason is that we have to handle
      a bunch of undocumented output devices (those without a proper name) and
      that this patch is the first step to collect and verify the needed
      information. Basically the only configuration change that is expected to
      work at the moment is switching output devices between IGA1 and IGA2.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Acked-by: NJonathan Corbet <corbet@lwn.net>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      2a918392
    • F
      viafb: merge the remaining output path with enable functions · cd7e9103
      Florian Tobias Schandinat 提交于
      This patch merges the remaining functionality of the output path
      function in the associated enabling functions. This is very natural as
      most of the remaining code does actually enable the device.
      Just some more or less intelligent code merge. If no stupid mistakes
      occured there should be no regressions.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      cd7e9103
    • F
      viafb: add new output device management · 18d9dc08
      Florian Tobias Schandinat 提交于
      This patch adds a new output device management that stores for each
      IGA which output devices are routed to it and a compatiblity layer
      that converts the old per-output device values in the new format.
      Bounding the output devices to each IGA is a central idea of the
      cleanup. Doing it this way should be easier and make much more sense
      than the old format which happily mixed different output devices
      together and did not even take into account that some devices are no
      longer available on newer chipsets.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      18d9dc08
    • F
      viafb: propagate __init and __devinit · f4ab2f7a
      Florian Tobias Schandinat 提交于
      There are a lot of init functions which are not marked as such.
      Fix this.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      f4ab2f7a
  15. 23 7月, 2010 1 次提交
    • F
      viafb: PLL value cleanup · 1f844350
      Florian Tobias Schandinat 提交于
      viafb: PLL value cleanup
      
      This is a big change of how PLL values are handled on the road to
      dynamic PLL value generation. The table was converted automatically in
      the relevant parameters for frequency generation. Sadly there were some
      bits set whose meaning is unknown. Those differences are documented
      but ignored as the unichrome code implies that they are not important
      (a big thanks to Luc for his amazing work).
      The PLL values for 31490000 and 133308000 are deleted as they were more
      than 5% off and not used anyway. The values for CX700@60466000 and
      VX855@153920000 are corrected as they were wrong and easily correctable
      as enough correct values was available because CX700 and VX855 support
      the same values only with a little difference in hardware format.
      All remaining values are not more than 2% off.
      Additionally the surrounding code is changed as needed especially the
      byte order of the values written to hardware to allow nicer conversion
      functions.
      This is mostly a change preparing for dynamic PLL generation and the two
      corrected values aside no runtime change is expected.
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Joseph Chan <JosephChan@via.com.tw>
      1f844350
  16. 12 5月, 2010 1 次提交
  17. 08 5月, 2010 4 次提交
  18. 21 4月, 2010 1 次提交
    • H
      viafb: use proper pci config API · b72a5070
      Harald Welte 提交于
      This patch alters viafb to use the proper Linux in-kernel API to access
      PCI configuration space, rather than poking at I/O ports by itself.
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: NHarald Welte <HaraldWelte@viatech.com>
      b72a5070
  19. 13 3月, 2010 4 次提交
  20. 23 9月, 2009 4 次提交