27 Jun, 2011

1 commit


27 May, 2011

1 commit

  • * 'gpio/next' of git://git.secretlab.ca/git/linux-2.6:
    gpio/via: rename VIA local config struct
    basic_mmio_gpio: split into a gpio library and platform device
    gpio: remove some legacy comments in build files
    gpio: add trace events for setting direction and value
    gpio/pca953x: Use handle_simple_irq instead of handle_edge_irq
    gpiolib: export gpiochip_find
    gpio: remove redundant Kconfig depends on GPIOLIB
    basic_mmio_gpio: convert to non-__raw* accessors
    basic_mmio_gpio: support direction registers
    basic_mmio_gpio: support different input/output registers
    basic_mmio_gpio: detect output method at probe time
    basic_mmio_gpio: request register regions
    basic_mmio_gpio: allow overriding number of gpio
    basic_mmio_gpio: convert to platform_{get,set}_drvdata()
    basic_mmio_gpio: remove runtime width/endianness evaluation

    Linus Torvalds
     

23 May, 2011

1 commit

  • * 'viafb-next' of git://github.com/schandinat/linux-2.6: (24 commits)
    viafb: Automatic OLPC XO-1.5 configuration
    viafb: remove unused CEA mode
    viafb: try to map less memory in case of failure
    viafb: use write combining for video ram
    viafb: add X server compatibility mode
    viafb: reduce OLPC refresh a bit
    viafb: fix OLPC XO 1.5 device connection
    viafb: fix OLPC DCON refresh rate
    viafb: delete clock and PLL initialization
    viafb: replace custom return values
    viafb: some small cleanup for global variables
    viafb: gather common good, old VGA initialization in one place
    viafb: add engine clock support
    viafb: add VIA slapping capability
    viafb: split clock and PLL code to an extra file
    viafb: add primary/secondary clock on/off switches
    viafb: add clock source selection and PLL power management support
    viafb: prepare for PLL separation
    viafb: call viafb_get_clk_value only in viafb_set_vclock
    viafb: remove unused max_hres/vres
    ...

    Linus Torvalds
     

20 May, 2011

1 commit


11 May, 2011

1 commit

  • Currently, a long set of viafb options are needed to get the XO-1.5
    laptop to output video (there is only 1 configuration that works, that
    can't really be autodetected).

    This patch automatically detects and configures viafb for the XO-1.5
    laptop, meaning all that is required for working display is that
    viafb is loaded.

    Signed-off-by: Daniel Drake
    Signed-off-by: Florian Tobias Schandinat

    Daniel Drake
     

26 Apr, 2011

2 commits


25 Apr, 2011

1 commit


24 Apr, 2011

5 commits

  • Conflicts:
    drivers/video/via/viamode.c

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • Florian Tobias Schandinat
     
  • 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: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • 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: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • 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: Florian Tobias Schandinat

    Florian Tobias Schandinat
     

16 Apr, 2011

1 commit

  • This patch fixes a regression introduced by
    fd3cc69848b7e1873e5f12bbcdd572b20277ecf3a
    "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: Florian Tobias Schandinat
    Reported-by: Daniel Drake

    Florian Tobias Schandinat
     

08 Apr, 2011

1 commit

  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    efifb: Add override for 11" Macbook Air 3,1
    efifb: Support overriding fields FW tells us with the DMI data.
    fb: Reduce priority of resource conflict message
    savagefb: Remove obsolete else clause in savage_setup_i2c_bus
    savagefb: Set up I2C based on chip family instead of card id
    savagefb: Replace magic register address with define
    drivers/video/bfin-lq035q1-fb.c: introduce missing kfree
    video: s3c-fb: fix checkpatch errors and warning
    efifb: support AMD Radeon HD 6490
    s3fb: fix Virge/GX2
    fbcon: Remove unused 'display *p' variable from fb_flashcursor()
    fbdev: sh_mobile_lcdcfb: fix module lock acquisition
    fbdev: sh_mobile_lcdcfb: add blanking support
    viafb: initialize margins correct
    viafb: refresh rate bug collection
    sh: mach-ap325rxa: move backlight control code
    sh: mach-ecovec24: support for main lcd backlight

    Linus Torvalds
     

01 Apr, 2011

1 commit


31 Mar, 2011

1 commit


27 Mar, 2011

3 commits


26 Mar, 2011

1 commit


25 Mar, 2011

2 commits


24 Mar, 2011

4 commits


23 Mar, 2011

4 commits

  • As no caller is interested in the result call viafb_get_clk_value
    directly from viafb_set_vclock to encapsulate the hardware dependend
    stuff there.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • This patch removes the max_hres and max_vres which are not used at
    the moment. In general they could be useful but it would be better
    to get them via any standard EDID implementation and not the buggy
    incomplete one currently used which is also removed as far as
    possible.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • This patch allows calculating the pll multiplier within limits based
    on the previous table. All available information supports that it
    should be possible/sane to choose the multiplier free within some
    ranges.
    Storing the multiplier ranges instead of lots of pll configurations
    reduces the memory needed and may as well improve the performance.
    It is also expected to provide better pll values resulting in better
    frequencies for the connected devices.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • 1. simple_strto*() do not contain overflow checks and crufty,
    libc way to indicate failure.
    2. strict_strto*() also do not have overflow checks but the name and
    comments pretend they do.
    3. Both families have only "long long" and "long" variants,
    but users want strtou8()
    4. Both "simple" and "strict" prefixes are wrong:
    Simple doesn't exactly say what's so simple, strict should not exist
    because conversion should be strict by default.

    The solution is to use "k" prefix and add convertors for more types.
    Enter
    kstrtoull()
    kstrtoll()
    kstrtoul()
    kstrtol()
    kstrtouint()
    kstrtoint()

    kstrtou64()
    kstrtos64()
    kstrtou32()
    kstrtos32()
    kstrtou16()
    kstrtos16()
    kstrtou8()
    kstrtos8()

    Include runtime testsuite (somewhat incomplete) as well.

    strict_strto*() become deprecated, stubbed to kstrto*() and
    eventually will be removed altogether.

    Use kstrto*() in code today!

    Note: on some archs _kstrtoul() and _kstrtol() are left in tree, even if
    they'll be unused at runtime. This is temporarily solution,
    because I don't want to hardcode list of archs where these
    functions aren't needed. Current solution with sizeof() and
    __alignof__ at least always works.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

22 Mar, 2011

4 commits


17 Mar, 2011

1 commit


13 Mar, 2011

1 commit


12 Mar, 2011

3 commits

  • This patch splits the pll configs up on pll versions. This allows
    easy adding of other known good pll values. Additionally it made it
    possible to remove invalid configurations resulting in better
    behaviour for such cases. The resulting clocks are no longer stored
    resulting in some computing overhead on each mode change.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • The clocks can be easily recalculated by the timing and refresh value.
    This brings us one step closer to removing VIAs modetable and use
    generic ones and being easier extensible.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat
     
  • Before this patch only clocks that perfectly match were used and if
    none existed this was not handled properly. This patch changes this
    to always use the closest clock supported. This should behave like
    before for clocks that have a perfect match but be much saner for
    clocks which are slightly off.

    Signed-off-by: Florian Tobias Schandinat

    Florian Tobias Schandinat