1. 07 Aug, 2011 5 commits
    • Florian Tobias Schandinat's avatar
      viafb: get rid of the remaining modetable structure assumptions · 5dd72f12
      Florian Tobias Schandinat authored
      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: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      5dd72f12
    • Florian Tobias Schandinat's avatar
      viafb: eliminate modetable dependancy of LCD modesetting · bfe7d5f9
      Florian Tobias Schandinat authored
      This patch removes the need for knowing the modetable structure
      within the LCD modesetting function. The magic 60Hz refresh rate was
      already there as always the first entry for a resolution was choosen
      based on the ascending refresh rate ordering in the modetable.
      For all but one this is at least 60Hz, if only higher frequencies
      available we choose those like the code before did. The exception is
      OLPC but that resolution has only one frequency so we get the same
      behaviour there as well.
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      bfe7d5f9
    • Florian Tobias Schandinat's avatar
      viafb: seperate hardware initialization · 4fbf4bfe
      Florian Tobias Schandinat authored
      This patch splits the hardware initialization out of the modesetting
      function which will make it easier to make it conditional and not
      require starting from scratch for every mode change, which is
      especially annoying in dual framebuffer mode.
      This required some minor reordering but it should not influence its
      functionality.
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      4fbf4bfe
    • Florian Tobias Schandinat's avatar
      viafb: use information in var for modesetting · ebb29fb4
      Florian Tobias Schandinat authored
      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: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      ebb29fb4
    • Florian Tobias Schandinat's avatar
      viafb: eliminate viafb_get_pixclock · 42edcb16
      Florian Tobias Schandinat authored
      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: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      42edcb16
  2. 06 Aug, 2011 2 commits
  3. 05 Aug, 2011 6 commits
  4. 17 Jul, 2011 1 commit
  5. 27 May, 2011 1 commit
  6. 11 May, 2011 1 commit
  7. 26 Apr, 2011 1 commit
  8. 25 Apr, 2011 1 commit
  9. 24 Apr, 2011 4 commits
  10. 23 Apr, 2011 3 commits
    • Florian Tobias Schandinat's avatar
      viafb: add X server compatibility mode · 2946294f
      Florian Tobias Schandinat authored
      This patch adds a config option to be compatible with X servers like
      OpenChrome. This is required as for example the X server does not
      handle things like disabled IGAs/PLLs resulting in a potential
      freeze on X startup. With this option disabled we can provide some
      nice features like power management and not reinitializing the
      hardware on every mode switch (taking long time, causing flickering).
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      2946294f
    • Florian Tobias Schandinat's avatar
      viafb: reduce OLPC refresh a bit · c5a4e6d7
      Florian Tobias Schandinat authored
      When allowing some PLL calculation we get a frequency that seems to
      be a bit higher than what the OLPC DCON likes resulting in a still
      readable but not so good image. We don't really know whether this is
      a problem with the calculation formula or the OLPC but as other
      displays seem to be happy with the other modes adjusting the OLPC
      refresh looks like the better thing. This patch prevents a
      regression when dynamic PLL calculation is allowed.
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      c5a4e6d7
    • Florian Tobias Schandinat's avatar
      viafb: fix OLPC XO 1.5 device connection · 32fab7bc
      Florian Tobias Schandinat authored
      This patch fixes the devices connected on OLPC. The OLPC panel seems
      to be connected to DVP1 and LVDS2 for some reasons and if not both
      are handled correct the display does not work correct or not at all.
      This patch prevents regressions on the OLPC where it worked by
      accident but would break in future as the driver did not know the
      correct devices connected. This might also fix hardware scaling.
      Hopefully the OLPC is the only device with such a requirement but it
      will be certainly better to actually know what devices are actually
      connected and to not work by accident.
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      32fab7bc
  11. 15 Apr, 2011 1 commit
    • Florian Tobias Schandinat's avatar
      viafb: fix OLPC DCON refresh rate · b4ce6a28
      Florian Tobias Schandinat authored
      This patch fixes a regression introduced by
      	fd3cc698a
      	"viafb: remove duplicated clock storage"
      caused by an incosistent mode which pretended to have a higher
      refresh rate than it actually had. The wrong refresh rate resulted
      in a calculated higher pixclock which the OLPC DCON could not handle.
      By reducing the refresh rate to 50Hz we get close to the old
      pixclock which makes the OLPC display usable again.
      Minor other adjustments are needed as 60Hz is assumed to be a safe
      value which is not true for OLPC DCON. This is no problem as we only
      support 1200x900 on the OLPC.
      Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Reported-by: default avatarDaniel Drake <dsd@laptop.org>
      b4ce6a28
  12. 01 Apr, 2011 1 commit
  13. 27 Mar, 2011 2 commits
  14. 26 Mar, 2011 2 commits
  15. 24 Mar, 2011 3 commits
  16. 23 Mar, 2011 5 commits
  17. 21 Mar, 2011 1 commit